ZHANGYUXUAN-zR commited on
Commit
51169ad
·
verified ·
1 Parent(s): 67635c6

Add files using upload-large-folder tool

Browse files
parse/train/S1enmaVFvS/S1enmaVFvS.md ADDED
@@ -0,0 +1,365 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DATA-DRIVEN APPROACH TO ENCODING AND DECODING 3-D CRYSTAL STRUCTURES
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Generative models have achieved impressive results in many domains including image and text generation. In the natural sciences, generative models have lead to rapid progress in automated drug discovery. Many of the current methods focus on either 1-D or 2-D representations of typically small, drug-like molecules. However, many molecules require 3-D descriptors and exceed the chemical complexity of commonly used datasets. We present a method to encode and decode the position of atoms in 3-D molecules along with a dataset of nearly 50,000 stable crystal unit cells that vary from containing 1 to over 100 atoms. We construct a smooth and continuous 3-D density representation of each crystal based on the positions of different atoms. Two different neural networks were trained on a dataset of over 120,000 three-dimensional samples of single and repeating crystal structures. The first, an Encoder-Decoder pair, constructs a compressed latent space representation of each molecule and then decodes this description into an accurate reconstruction of the input. The second network segments the resulting output into atoms and assigns each atom an atomic number. By generating compressed, continuous latent spaces representations of molecules we are able to decode random samples, interpolate between two molecules, and alter known molecules.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Generative models have recently seen tremendous success in generating 2-D images of every day objects (Kingma & Welling, 2013; Goodfellow et al., 2014; Brock et al., 2018; Razavi et al., 2019). The size and accuracy of generated results has greatly improved to the point where samples from the latent space decode to photo-realistic samples (Brock et al., 2018; Razavi et al., 2019). A very exciting and important future avenue for generative models is the generation of 3-D structures, like in the world around us. Adversarial networks and autoencoders have been extended into 3-D and have shown they are able to encode useful representations of everyday objects (Wu et al., 2016; Zhu et al., 2018; Brock et al., 2016; Achlioptas et al., 2017; Valsesia et al., 2018; Meng et al., 2019; Maturana & Scherer, 2015). Representations using point clouds have gained popularity as a way to capture the distribution of different types of objects (Achlioptas et al., 2017; Yang et al., 2019; Wu et al., 2018).
12
+
13
+ As machine learning approaches are able to understand and recreate the underlying distributions for many different types of objects in our world, the application of these tools in the physical sciences is a very exciting direction. A clear field where generative models can have a tremendous impact is in material discovery, which is very important for designing new batteries or carbon capture devices for fighting climate change.
14
+
15
+ One very successful area of applying generative models to the sciences has been the field of drug discovery (Jin et al., 2018; Gómez-Bombarelli et al., 2018; Assouel et al., 2018) (see Schwalbe-Koda & Gómez-Bombarelli (2019) for an excellent summary of many methods). The success of machine learning in this domain has been enormously helpful as a process that was often painstakingly slow has been rapidly accelerated in searching an unimaginably large space of possible drug compounds, estimate to be up to $1 0 ^ { 6 0 }$ (Polishchuk et al., 2013). Additionally, excellent datasets such as QM9 (Ramakrishnan et al., 2014) and ZINC (Irwin et al., 2012) which contain molecules of interest along with their precomputed properties have allowed for comparing different methods and developing state-of-the-art tools.
16
+
17
+ ![](images/e5d0c45c3fd1f05a755aa39ebe59a8974cd4a06889e59019c5f4e54b12ef09f7.jpg)
18
+ Figure 1: Examples of crystal unit cells. Each example shows the unit cell of a crystal. Different colors represent different atomic species. A red, green, and blue line represent the 3 axes of the crystal. Note that they vary in length and angle. Additionally, some unit cells have just one or two atoms while others have nearly 100. Visualizations were made with Mercury (Macrae et al., 2008).
19
+
20
+ By learning a compressed, useful, latent space representation, this enormous space of molecules can be embedded in a simpler latent space that is easier to search Kusner et al. (2017). Using generative models, compounds hypothesized to have specific properties can be rapidly generated and then a targeted subset of these can be experimentally tested. For example, in Gómez-Bombarelli et al. (2018), an auxiliary property prediction task is introduced for a network separate from the encoder/decoder. This allows for optimization of properties in the latent space and then the resulting latent space vector is decoded into a candidate molecule that can undergo more rigorous computational testing before it is experimentally synthesized. Using a graph representation and reinforcement learning, You et al propose a novel method for molecule generation with specific properties You et al. (2018).
21
+
22
+ Most of the work combining generative models with chemical discovery has focused on molecules that can be represented in either 1 dimension (such as a SMILES string (Weininger, 1988)) or by leveraging a 2 dimensional representation of a molecule, such as a graph. While 1-D and 2-D representations have been very successful for many drug compounds, these representations are not sufficient to describe all molecules. For example, it is possible for different molecules, with very different properties, to have identical graphs (Gebauer et al., 2019). Additionally, there are more complex classes of compounds where the 3-D structure is integral to the molecule’s properties. Therefore, in this work we focus on generating representations of molecules where the 3-D information is essential for reconstruction. Generating 3-D structures is still a relatively nascent field, when compared to image and text generation. The data requirements for modeling 3-D structures are larger than their 2-D counterparts and there are fewer standard datasets (Nguyen-Phuoc et al., 2019). Additionally, to measure the properties of inorganic materials (like those considered here), costly DFT calculations are needed which require precise 3-D locations. There is an extra dimension in 3-D problems, providing additional symmetries that often need to be learned (Weiler et al., 2018). New work from generates adjacency matrices which are, by construction, invariant to rotation Hoffmann & Noé (2019). In either case, for the automatic generation of viable complex 3-D structures of inorganic compounds one needs to accurately generate the locations of many atoms in 3-D space.
23
+
24
+ In this work, we focus specifically on proposing an effective 3-D representation for this class of molecules that can not be represented in the same ways as many smaller molecules. We hope to promote work in this still nascent field which has yet to see the same level of success as the generation of smaller molecules. In the Appendix, we have provided a clear comparison with 1-D and 2-D representations. Currently, no direct comparisons are possible.
25
+
26
+ In addition to drug discovery, a promising avenue for molecular design is for minimizing environmental impact through the design of more efficient or more environmentally friendly compounds for a variety of applications. Designing more efficient materials for photo-voltaic panels and more environmentally friendly materials for batteries are both very exciting research directions for using machine learning as a tool towards mitigating climate change (Niu et al., 2015; Tabor et al., 2018; Gebauer et al., 2019; Rolnick et al., 2019). Many of the compounds of interest are crystal structures made of single small sub-units that repeat in all directions. This sub-unit is referred to as a “unit cell” and can vary in size and shape as well as internal arrangement and chemical composition.
27
+
28
+ In this work, we present a method for encoding and decoding a very important set of 3-D molecules that can not be represented using standard methods used for drug-like molecules. We directly encode and decode 3-D volumes of density from two different data representations. In the first, we use single unit cells, as shown in Fig. 1. Each unit cell is centered in the cube, but randomly rotated. In the second representation, we repeat the unit cell along all three axes such that the resulting sampled cube contains repeated unit cells of crystal structures, like those shown in Fig. 2 (and Fig. S6C). Many very interesting and important molecules, such as materials for solar panels or batteries, are composed of crystalline units. We train a variational autoencoder (VAE) and a network to segment the decoded output based on the true locations of atoms in tandem. By coupling these two tasks, we are able to accurately encode and decode 3-D atomic positions and species. As far as we are aware, this is not an explored direction as a means to represent molecules for encoding and decoding their 3-D arrangement. We summarize our contribution as follows:
29
+
30
+ • We propose a method for encoding and decoding 3-D molecules that can not be represented by traditional string or graph based approaches. By jointly training a VAE and a segmentation network on the output of the decoder, we train the entire network in an end-to-end fashion. • We consider two different problems: (1) encoding and decoding single unit cells and (2) encoding and decoding repeated unit cells. In both cases we accurately reconstruct the locations of atoms. We also achieve good results in atomic species identification and future work will improve this front. By sampling from $\mathbf { z } \sim \mathcal { N } ( 0 , 1 )$ , we generate complex structures that have physically realistic spacing between atoms.
31
+
32
+ ![](images/104ee9745a030128516aff01dec068a3c52f5f1e3ae3b5a46ab8a19c21a3981b.jpg)
33
+ Figure 2: Network Architecture. We encode and decode a $3 0 \times 3 0 \times 3 0$ voxel grid representing $1 0 \mathring \mathrm { A }$ on each side. Each voxel contains the value of the density. The output of the decoder is passed into a 3-D U-Net Çiçek et al. (2016). We train the two models in parallel. In the schematic, we show the crystal represented as a repeated unit cell rather than a single unit cell. The black arrows indicate deterministic transformations. From the cif file, the species matrix is constructed. From this, the density matrix is computed.
34
+
35
+ # 2 PRELIMINARIES AND RELATED WORK
36
+
37
+ There are many classes of compounds that are of interest for data-driven discovery. There has been significant work exploring the generation of molecules with potential medicinal properties. These molecules tend to be organic molecules and can be represented efficiently using a string or a graph. A more complex class of molecules are inorganic crystal structures which vary in complexity across many different axes. Crystals are materials that are made up of a repeating pattern of a simpler “unit cell.” Crystal structures are of key interest for many environmental problems, such as materials for solar panels and batteries (Niu et al., 2015).
38
+
39
+ In contrast to problems in drug discovery, many crystals are not composed solely of organic molecules. Crystals commonly contain many heavy (non-Hydrogen) atoms which make various quantum mechanical calculations of their energetic properties very difficult and time consuming. For example, the common benchmark dataset QM9 for predicting quantum mechanical properties includes over 130,000 molecules contains fewer than 9 “heavy” atoms (Ramakrishnan et al., 2014).
40
+
41
+ ![](images/e317eecfd7e520c0280f7a5951d8a0597f0e801dce96c75eea954c4cab6faeda.jpg)
42
+ Figure 3: Single unit cell accuracy. (A) We show the voxel wise reconstruction error (plotted with mean square error) during training. (B) For random molecules in the test set, we plot the number of true atoms and the number of recovered atoms after segmentation. (C) For the reconstructed atoms, we plot the predicted atomic number versus the atomic number of the nearest true atom. (D) We compute the distance from each true atom to the nearest predicted atom and vice-versa (orange and blue, respectively). (E) For three different crystals we plot the predicted versus reconstructed density at each voxel. We also show 2-D slices through the target and prediction, along with the 3-D reconstructions. For plotting, the density on each figure is normalized between 0 and 1 though is not decoded as such.
43
+
44
+ There have been two parallel lines of work applying machine learning to material sciences. The first deals with the prediction of physical properties from a compound without performing a computationally expensive density functional theory (DFT) calculation.
45
+
46
+ Recently, Xie and Grossman introduced crystal graph convolutional networks (CGCNN) for accurate prediction of 8 different DFT-calculated properties of crystal structures (Xie & Grossman, 2018). MatErials Graph Network (MEGNet) uses graph neural networks (Chen et al., 2019) to predict a variety of energetic properties on both the QM9 dataset (Ramakrishnan et al., 2014) as well 69,000 crystal structures from the Materials Project (Jain et al., 2013). Another network, SchNet, uses 3-D spatial information to directly leverage the interactions between separate atoms. They then use a continuous-filter convolution for accurate property prediction (Schütt et al., 2018). These methods, and many more, have all achieved impressive results on many standard benchmark datasets. Cubuk, et al. use transfer learning to search an enormous space of molecules for promising Lithium ion conductors (Cubuk et al., 2019).
47
+
48
+ Another line of work is concerned with generating molecules, often molecules that have specific properties. In the past decade, generative models for drug discovery have achieved impressive results. Typically a representation of a compound, such as a SMILES string (Gómez-Bombarelli et al., 2018; Segler et al., 2017; Alperstein et al., 2019) or a graph (Jin et al., 2018; Assouel et al., 2018; Mansimov et al., 2019) is encoded and decoded. Then, by sampling the resulting latent space, novel molecules can be generated. Either by performing an auxiliary task with the latent space (as done in Gómez-Bombarelli et al. (2018)) and then performing optimization or by conditioning the latent space on desirable properties, novel chemical structures are obtained.
49
+
50
+ One possible representation of drug-like molecules is a SMILES string. However, a difficulty faced using the SMILES representation is ensuring that the decoder decoded a valid SMILES string (Gómez-Bombarelli et al., 2018; Kusner et al., 2017). Additionally, there is not a strong notion of distance between molecules and their SMILES representation (Jin et al., 2018). One approach, ChemTS, uses SMILES strings along with recurrent neural networks and Monte Carlo Tree Search to better ensure generated strings decode to real molecules (Yang et al., 2017). By explicitly penalizing invalid SMILES strings in their reward function they are able to bypass the difficulty in their decoded molecules being non-physical.
51
+
52
+ More recently, graph based methods have proven very successful in generating synthetically attainable molecules. By building a database of molecule fragments (like LEGO bricks), a graph is formed based on the connectivity of different structures (Jin et al., 2018). These methods have far fewer difficulties ensuring that the decoder produces physically valid molecules. For generation of physical molecules, this is a very important consideration, as there are many hard constrains that most be obeyed. Other graph based approaches include flow based models (Madhawa et al., 2019). Also using graph neural networks, E. Manismov and collaborators developed a method to, given a graph, recreate conformations of a 3-D molecule and predict its energetic properties (Mansimov et al., 2019). In Mansimov et al. (2019), the authors propose a graph-based generative method that is able to generate molecules with desired target properties. Impressively, they recover 3-D positional information for the atoms and show they achieve the required accuracy for relaxation.
53
+
54
+ An additional challenge for generative models in the physical sciences is ensuring that samples from the latent space, z, decode into physically plausible objects. The decoded objects need to obey physical constraints and an object that may appear physical is not certain to actually be experimentally realizable. In many domains this is not of specific concern, for example a generated animal is scored on some likelihood based on its visual appearance, not whether or not the generated creature is genetically possible. Recently, there have been generative models leveraging the 3-D nature of the problem. G-SchNet, a generative model for 3-D molecules (Gebauer et al., 2019) leverages the SchNet architecture- a start-of-the-art property prediction network (Schütt et al., 2018). They show they are able to generate molecules, placing atoms in 3-D space in a rotationally invariant manner. By appropriately conditioning the placement of new molecules based on the location and identity of previous molecules, they ensure the symmetries that are required for the molecules to relax in a DFT calculation. They propose expanding G-SchNet to generating crystal structures as a future direction.
55
+
56
+ While there is a rich literature in the generation of organic compounds, recently there has been work in the generation of more complex crystal structures, such as CrystalGAN (Nouira et al., 2018). The authors of CrystalGAN introduce geometric constraints and show that their method is able to produce stable structures compared to methods that do not include such domain knowledge such as DiscoGAN (Kim et al., 2017). CrystalGAN uses a dataset with a much larger selection of elements than much previous work, but they limit themselves to molecules of particular chemical structure, nor do they generate a 3-D arrangement. In this work, we do not limit the generated crystals in this way.
57
+
58
+ # 3 METHODS
59
+
60
+ We use a dataset containing $4 6 { , } 7 4 4 \mathrm { c i f }$ files which contains the information describing the unit cells of properly relaxed crystal structures from the Materials Project (Jain et al., 2013; Xie & Grossman, 2018). We use $80 \%$ of the data for testing and the other $20 \%$ for training. Using the Python library pymatgen we preprocess all of the data into the density 3-D matrices (Ong et al., 2013) described below. The boundary box of a crystal structure is controlled by six different degrees of freedom (see Fig. 1). Each side can have a different length and the angles between the three sides is also variable. Additionally, the internal complexity of each crystal can also vary widely– some unit cells in our dataset contain a single atom while other unit cells can have over one hundred different atoms. This tremendous variability in structure makes a universal representation difficult.
61
+
62
+ ![](images/a14e135fc66f074fa225d5fe0e75e15f44f183476d9b382bb262610b0b8beec6.jpg)
63
+ Figure 4: Species reconstruction and latent space interpolation. (A) For five different randomly selected crystal unit cells we show the target and our reconstruction. Atoms are colored using default atomic colors, atoms with similar atomic number do not necessarily have similar colors. (B) We show the reconstruction of latent space interpolation between two molecules for 3 random sets of targets. For a video, see the Appendix.
64
+
65
+ # 3.1 DATA REPRESENTATION
66
+
67
+ As a first step for the problem of generating novel, physical crystal structures we begin with the simpler problem of encoding and decoding physical locations of atoms in space. We begin by considering a cube with side length $1 0 \mathrm { ~ \AA ~ }$ , which we represent by $M$ . We divide this cube into 30 equally spaced bins, resulting in a $3 0 \times 3 0 \times 3 0$ cube with each voxel representing $0 . 3 3 \mathring { \mathrm { A } }$ on each side (see Fig. 2 and Fig. 3E). In the appendix, we discuss this choice in more detail. This data representation is similar to many computer vision tasks, so we use similar convolution based network architectures.
68
+
69
+ We consider the crystal structures in our dataset where the maximum side length is less than $1 0 \mathring \mathrm { A }$ We consider two different data representations of different complexity. In the first, we shift each single unit cell to the center of our grid, then we randomly rotate it. In this representation, we encode and decode a single unit cell. We randomly sample 3 different rotations for each crystal. In this case, the encoded structures typically have between 1 and 30 atoms, with a few reaching between 50 and 100. In the second representation, we repeat these unit cells in each direction infinitely and randomly sample a cube in space. This means that each cube contains at least one unit cell, but some will contain more than one cell, since in all cases a cube with 10 Åsides is chosen. We choose one representation where a unit cell begins at $( 0 , 0 , 0 )$ and randomly sample 2 other cubes in this space resulting in a dataset of over 100,000 examples. In this representation, we typically encode the locations of between 20 to 100 atoms, with some having over 200. An advantage of our representation is that we are agnostic to the number of atoms that we are encoding and decoding, something that is difficult for other approaches such as graphs.
70
+
71
+ Using both these representations, we compute a density field, where each pixel $( i , j , k )$ is defined to have value
72
+
73
+ $$
74
+ M _ { i , j , k } = \frac { 1 } { \sigma ^ { 3 } ( 2 \pi ) ^ { 3 / 2 } } \sum _ { m } Z _ { m } \mathrm { e x p } \left( - \frac { d ( \vec { Z } _ { m } , ( i , j , k ) ) ^ { 2 } } { 2 \sigma ^ { 2 } } \right)
75
+ $$
76
+
77
+ Where $d ( \cdot , \cdot )$ represents the Euclidean distance between the two arguments. $\vec { Z } _ { m }$ represents the 3-D coordinates of atom $Z _ { m }$ . We set $\sigma$ to $1 . 0 \mathring \mathrm { A }$ . When plotting, we multiply the output by $\sigma ^ { 3 } ( 2 \pi ) ^ { 3 / 2 }$ . We do this because when $\sigma = 1$ this results in the value of $Z$ (the atomic number) being present at its location in space. Because of the structure of this representation, when the density of atoms increases, there are more interactions making it harder to reconstruct the true identity of an atom. Ultimately, our aim is to be able to reconstruct the location and species of the different atoms in this grid. To that end, we also construct a species matrix, $_ { s }$ , where each voxel is either a 0 or equal to the atomic number of an atom that is within $0 . 5 \mathring \mathrm { \mathrm { A } }$ . We construct two neural networks that attempt to learn $M$ and $\pmb { S }$ in parallel. These two networks are trained together and are detailed in the following section.
78
+
79
+ # 3.2 NETWORK ARCHITECTURE
80
+
81
+ We use a variational autoencoder (Kingma & Welling, 2013) to encode and decode our 3-D density maps, $M$ . We use a $\beta$ multiplier on the Kullback-Leibler (KL) loss term to encourage no correlations between different elements of the latent space (Higgins et al., 2017). Our encoder, $E ( \cdot )$ , is a convolutional neural network. The decoder, $D ( \cdot )$ , uses upsampling and convolutions in favor of transposed convolutions (Odena et al., 2016). We use batch normalization (Ioffe & Szegedy, 2015), LeakyReLU activations, and the code is written in Pytorch (Paszke et al., 2017). The optimization is done using the Adam optimizer (Kingma & Ba, 2014). We use a latent space size of 300 for all experiments.
82
+
83
+ Simultaneously with training the VAE, we train a 3-D U-Net segmentation model, $\mathrm { U } _ { \mathrm { n e t } } ( \cdot )$ , with an attention mechanism to segment the output of the decoder (Ronneberger et al., 2015; Oktay et al., 2018). For accurate segmentation, especially in the case of a repeating lattice, it is important to be able to capture the dependencies between different atoms. We found that a U-Net model worked well, though future work will explore sequentially classifying atoms. Ideally, the primary work is done by the VAE and the role of U-Net is to perform the tedious optimization problem of recovering the species identity and locations that is most consistent with the reconstructed density field.
84
+
85
+ We include a weighted (by $\gamma$ ) loss from the segmentation in the loss of the encoder/decoder. In our experiments, we set $\gamma$ to 0.1. We experimented with $\gamma = 0$ and $\gamma = 0 . 3 3$ and found that 0.1 proved an acceptable intermediate. With $\gamma = 0 . 3 3$ we found slightly improved segmentation results but worse density reconstruction results. When we completely removed the effect of the species loss from the density reconstruction, species reconstruction results degraded.This allows us to train the entire network in an end-to-end fashion. The entire model is shown in Fig. 2.
86
+
87
+ We use three terms in the loss function for the VAE with the most weight given to the reconstruction of the density matrices. The segmentation network is only concerned with the final segmentation of the reconstruction from the decoder. Currently, we treat each atom type as a different class, with an additional (most common) class for “no atom.” The loss function used for the VAE is
88
+
89
+ $$
90
+ \mathcal { L } _ { \mathrm { V A E } } = L _ { \mathrm { R E } } ( \hat { M } , M ) + \beta ( D _ { \mathrm { K L } } ( q ( \mathbf { z } | M ) | | p ( \mathbf { z } ) ) ) + \gamma L _ { \mathrm { B C E } } ( \hat { S } , S ) .
91
+ $$
92
+
93
+ The first term is the reconstruction error and the third term is the binary cross entropy loss from the segmentation. The second term is the Kullback-Leibler divergence between the prior (set to $p ( \mathbf { z } ) \stackrel { - } { = } \mathcal { N } ( 0 , 1 ) )$ and $q ( z | M )$ the approximate posterior of the latent vector given input $M$ . We use a loss given by $\mathcal { L } _ { \mathrm { U - N e t } } = L _ { \mathrm { B C E } } ( \hat { S } , S )$ for the segmentation. In the above expression, $M$ is the input density field. $\mathbf { z } = E ( M )$ and $\hat { M } = D ( \pmb { \mathrm { z } } )$ is the reconstructed density field. The variable $_ { s }$ represents a 1-hot species matrix. Lastly, $\hat { \boldsymbol { S } } = \mathrm { U } _ { \mathrm { n e t } } \left( \hat { \boldsymbol { M } } \right)$ represents the probability matrix from the segmentation routine, which will be of shape: [ba $\mathrm { c h } \times \mathrm { c l a s s e s } \times \mathrm { x } \mathrm { - d i m } \times \mathrm { y } \mathrm { - d i m } \times \mathrm { z } \mathrm { - d i m } ]$ .
94
+
95
+ # 4 RESULTS
96
+
97
+ We find that we are able to accurately encode and decode 3-D representations of density fields (see Figs. 3 and S8). Using the segmentation network, we segment the output of the decoder into distinct atoms. Using a trained network, we show that random samples from the latent space decode to samples that obey many of the same statistics as the training distribution (see Fig. 5 and Fig. S7). Additionally, in the case of a repeating unit cell, we alter our training routine to condition the generation of crystals on the largest atomic number present.
98
+
99
+ # 4.1 PLACEMENT OF ATOMS
100
+
101
+ Using the output of the segmentation network, we take the $\tilde { \bf S } = \mathrm { a r g m a x } ( \hat { \bf S } )$ . From this representation, we find the connected components and use majority voting to assign each cluster an atom identity (see Appendix for details). In Fig. 3 (and Fig.S8) we show the accuracy of all top-1 predictions. We compare the results of our segmented matrix, S˜ with the true values, S. From the center of mass of each predicted atom $i$ , we compute the distance to the nearest true atom as follows
102
+
103
+ $$
104
+ \begin{array} { r } { \operatorname* { m i n } _ { j } \ d ( \tilde { \bf S } _ { i } , { \bf S } _ { j } ) \forall \ j \ \mathrm { a n d } \operatorname* { m i n } _ { i } \ d ( \tilde { \bf S } _ { i } , { \bf S } _ { j } ) \ \forall \ i . } \end{array}
105
+ $$
106
+
107
+ Table 1: Location and species reconstruction error. $P$ denotes prediction and $T$ denotes target. Distances in angstrom. For $Z$ reconstruction, we show the percentile at each absolute difference.
108
+ Locations
109
+
110
+ <table><tr><td>Percentile</td><td>P→T(A)</td><td>T→P(A)</td></tr><tr><td>0.</td><td>4.31×10-4</td><td>5.47×10-4</td></tr><tr><td>10.</td><td>5.03 ×10-2</td><td>5.02 × 10-2</td></tr><tr><td>20.</td><td>7.04 × 10-2</td><td>7.05 ×10-2</td></tr><tr><td>30.</td><td>9.12 × 10-2</td><td>9.13 × 10-2</td></tr><tr><td>40.</td><td>1.14 × 10-1</td><td>1.14 × 10-1</td></tr><tr><td>50.</td><td>1.36 × 10-1</td><td>1.37 × 10-1</td></tr><tr><td>60.</td><td>1.60 × 10-1</td><td>1.61 × 10-1 1.94 × 10-1</td></tr><tr><td>70. 80.</td><td>1.94 × 10-1 2.48 × 10-1</td><td>2.50 ×10-1</td></tr><tr><td>90. 100.</td><td>3.94 × 10-1 2.59</td><td>4.03 × 10-1 1.89</td></tr><tr><td>Species Abs.Diff.in Z</td><td>Percent</td><td></td></tr><tr><td>0</td><td>66.8 %</td><td></td></tr><tr><td>1</td><td>25.1 %</td><td></td></tr><tr><td>2</td><td>5.8 %</td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td>&gt;3</td><td>2.2 %</td><td></td></tr></table>
111
+
112
+ Similarly, we can compute the distance from each true atom to the nearest predicted atom. By computing this metric in both directions, we are able to
113
+
114
+ verify that our model is placing atoms in the correct locations but only in those locations.
115
+
116
+ # 4.2 ACCURACY ON A UNIT CELL
117
+
118
+ In Fig. 3 we plot the results of applying our model to single unit cells of crystals (see also Table 1). We find out model is able to very accurately segment the locations of atoms with nearly $9 9 \%$ of atoms placed within $0 . 5 \mathring \mathrm { \mathrm { A } }$ of their true location. Nearly $90 \%$ of unit cells are reconstructed with the correct number of atoms and $9 7 \%$ of unit cells are reconstructed with less than 2 atoms extra or missing. $66 \%$ of species are correctly classified in the test set, with nearly 100 possible classes. When an atom is incorrectly classified, it is usually by one or two atomic numbers (see Table 1). Often adjacent elements (with atomic numbers that differ by 1) have very different chemical properties. We retrained the network to predict atomic group (where elements in the same group tend to have more similar properties) and found $93 \%$ accuracy. We report accuracy on $Z$ as this is a more difficult problem and in both cases we are still unable to reconstruct crystals with the accuracy to relax in a DFT calculation. Missed atoms typically occur near the boundary.
119
+
120
+ Next, we will discuss the same network applied to repeating unit cells. In all cases, the results for single unit cells are improvements over the results of multiple unit cells. For most figures, there are corresponding panels between the single unit cell and repeated cell results.
121
+
122
+ # 4.3 ACCURACY ON REPEATING UNIT CELLS
123
+
124
+ In Fig. S8C we show the percentiles of all pairwise minimum distances in our reconstructed samples. We find that $50 \%$ of all reconstructed atoms are in $0 . 2 \mathring \mathrm { A }$ . For both directions, the $7 5 ^ { \mathrm { t h } }$ percentile error was under $0 . 2 5 \mathring { \mathrm { A } }$ and the $9 0 ^ { \mathrm { t h } }$ percentile of reconstructed atoms were within $0 . 5 \mathring \mathrm { \mathrm { A } }$ . For predicted atoms that are within $0 . 5 \mathring \mathrm { \mathrm { A } }$ of a true atom’s location, we find that $6 5 . 4 \%$ of the time our prediction matches the atomic number exactly Fig. S8E. Again, nearly all errors occur near the boundary.
125
+
126
+ ![](images/400aaa0bcf44c5422a69c5d6e8694c2f1e369a14faa43f642b44c960c6403cd4.jpg)
127
+ Figure 5: Decode random latent space vectors. (A) We look at the spacing between nearest atoms from random draws from the latent space compared to those from real crystal structures. In blue we show the distribution of random reconstructions. In red we show the distribution of true inter-atomic spacing. (B) For 5 different random latent space vectors, we show the reconstructed density field and the resulting segmentation. Notice that in some cases small amounts of density are predicted but are not segmented into an atom (for example, in columns 3 and 4).
128
+
129
+ For 120 randomly selected reconstructed crystals from the test set, we compare the number of atoms after segmentation with the true number (Fig. S8D and Fig. 3B). In Fig. S8E we compare the predicted species compared with the species of the nearest true atom, independent of the distance to the nearest atom. We find that based on the results of Fig. S8, our current model is able to more accurately reconstruct the locations of atoms than obtain their true atomic number. This makes sense, given the enormous number of possible classes. However for repeating unit cells, when an atom is correctly predicted to be within $0 . 3 3 \mathring { \mathrm { A } }$ of a true atom location nearly $70 \%$ of the time the atom is assigned exactly the correct $Z$ value. The correlation between the true and predicted value is 0.98 suggesting that when the network makes an incorrect assessment, it chooses a nearby atomic number.
130
+
131
+ Further improvements in this placement and identification of atoms is necessary in achieving crystals that will appropriately relax in a DFT simulation for the calculation of quantum mechanical properties. However, a very exciting immediate application of this work is in random structure searching Pickard & Needs (2011).
132
+
133
+ # 4.4 LATENT SPACE INTERPOLATION
134
+
135
+ We encode two different true density maps into vectors $\mathbf { z } _ { 1 }$ and $\mathbf { z } _ { 2 }$ , respectively. We then linearly interpolate between these two values in latent space, constructing intermediate vectors $\tilde { \mathbf { z } } _ { i }$ . We decode the resulting latent space vectors which result in predicted density maps, $D ( \tilde { \mathbf { z } } )$ . Passing these into the trained segmentation routine, we find that intermediate results segment into atoms (see results on a single unit cell in Fig. 3 and Fig. 4). See results on a repeating lattice in Figs. S9 and S11)1.
136
+
137
+ # 4.5 RANDOM DRAWS
138
+
139
+ We can randomly sample a latent space vector $\mathbf { z } \sim \mathcal { N } ( 0 , 1 )$ and we then decode the output. We do this for both single unit cells as well as for repeating lattices (see Appendix). Random structure searching is an important area of material science research an exciting direction for this work Pickard & Needs (2011). Using the network trained to encode and decode single unit cells, we decode a $\mathbf { z } \sim \mathcal { N } ( 0 , 1 )$ .
140
+
141
+ In Fig. 5 we show the decoded density fields along with the resulting segmented output. There are a few desirable features: single cells are centered, atoms tend to be of similar atomic number, even in different parts of the reconstructed output, and atoms are not ever too close together.
142
+
143
+ # 5 CONCLUSIONS AND FUTURE WORK
144
+
145
+ The ability to encode and decode 3-D structures is a very interesting direction of recent work and increasingly important in helping create models that can understand the world that we live in. In current material design, a lot of focus has been on molecules where the 3-D structure can be safely ignored. However, in many cases this is not the case. We do not know of an effective data representation for these 3-D molecules and find that by directly utilizing a proxy for density we are able to encode and decode the geometry of these molecules.
146
+
147
+ An important future direction of research is to come up with successful representations for encoding crystal structures such that they can be easily encoded and decoded. Coming up with a representation of crystal unit cells (and 3-D structures in general) so that decoded molecules are physically plausible is an important aspect that needs to be carefully considered.
148
+
149
+ Our approach is currently unable to generate molecules that are physically stable, but there are promising directions in this direction. Using ideas similar to G-SchNet, using the decoded density field, atoms can be placed sequentially, conditioned on the placement of previous atoms (Gebauer et al., 2019). Working towards decoding molecules that are able to relax is a very exciting direction.
150
+
151
+ Another improvement would be to alter the structure of our encoder/decoder. Currently, we use standard 3-D convolutions. However, using SE(3) equivariant kernels from M. Weiler et al. is a promising direction for improved performance (Weiler et al., 2018). We feel that our current approach could be extended beyond the domain of material science, as we are able to encode a 3-D distance map, this approach could be broadly applied to many objects. In essence, we are able to learn a distance transform from an object. This is more general than for encoding and decoding atomic structures. To try to facilitate further research in the creation of 3-D representation of more complex atomic structures, we will release the code shortly.
152
+
153
+ # REFERENCES
154
+
155
+ Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Learning representations and generative models for 3d point clouds. arXiv preprint arXiv:1707.02392, 2017.
156
+
157
+ Zaccary Alperstein, Artem Cherkasov, and Jason Tyler Rolfe. All smiles variational autoencoder, 2019.
158
+
159
+ Rim Assouel, Mohamed Ahmed, Marwin H Segler, Amir Saffari, and Yoshua Bengio. Defactor: Differentiable edge factorization-based probabilistic graph generation. arXiv preprint arXiv:1811.09766, 2018.
160
+
161
+ Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Generative and discriminative voxel modeling with convolutional neural networks. arXiv preprint arXiv:1608.04236, 2016.
162
+
163
+ Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018.
164
+
165
+ Chi Chen, Weike Ye, Yunxing Zuo, Chen Zheng, and Shyue Ping Ong. Graph networks as a universal machine learning framework for molecules and crystals. Chemistry of Materials, 31(9):3564–3572, 2019.
166
+
167
+ Ricky TQ Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in vaes.
168
+
169
+ Xi Chen, Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In D. D. Lee, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances In Neural Information Processing Systems 29, pp. 2172–2180. Curran Associates, Inc., 2016.
170
+
171
+ Özgün Çiçek, Ahmed Abdulkadir, Soeren S Lienkamp, Thomas Brox, and Olaf Ronneberger. 3d u-net: learning dense volumetric segmentation from sparse annotation. In International conference on medical image computing and computer-assisted intervention, pp. 424–432. Springer, 2016.
172
+
173
+ Ekin D Cubuk, Austin D Sendek, and Evan J Reed. Screening billions of candidates for solid lithium-ion conductors: A transfer learning approach for small data. The Journal of chemical physics, 150(21):214701, 2019.
174
+
175
+ Niklas WA Gebauer, Michael Gastegger, and Kristof T Schütt. Symmetry-adapted generation of 3d point sets for the targeted discovery of molecules. arXiv preprint arXiv:1906.00957, 2019.
176
+
177
+ Rafael Gómez-Bombarelli, Jennifer N Wei, David Duvenaud, José Miguel Hernández-Lobato, Benjamín Sánchez-Lengeling, Dennis Sheberla, Jorge Aguilera-Iparraguirre, Timothy D Hirzel, Ryan P Adams, and Alán Aspuru-Guzik. Automatic chemical design using a data-driven continuous representation of molecules. ACS central science, 4(2):268–276, 2018.
178
+
179
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014.
180
+
181
+ Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. ICLR, 2(5):6, 2017.
182
+
183
+ Moritz Hoffmann and Frank Noé. Generating valid euclidean distance matrices, 2019.
184
+
185
+ Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
186
+
187
+ John J Irwin, Teague Sterling, Michael M Mysinger, Erin S Bolstad, and Ryan G Coleman. Zinc: a free tool to discover chemistry for biology. Journal of chemical information and modeling, 52(7): 1757–1768, 2012.
188
+
189
+ Anubhav Jain, Shyue Ping Ong, Geoffroy Hautier, Wei Chen, William Davidson Richards, Stephen Dacek, Shreyas Cholia, Dan Gunter, David Skinner, Gerbrand Ceder, et al. Commentary: The materials project: A materials genome approach to accelerating materials innovation. Apl Materials, 1(1):011002, 2013.
190
+
191
+ Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Junction tree variational autoencoder for molecular graph generation. arXiv preprint arXiv:1802.04364, 2018.
192
+
193
+ Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018.
194
+
195
+ Taeksoo Kim, Moonsu Cha, Hyunsoo Kim, Jung Kwon Lee, and Jiwon Kim. Learning to discover cross-domain relations with generative adversarial networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1857–1865. JMLR. org, 2017.
196
+
197
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
198
+
199
+ Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013.
200
+
201
+ Matt J Kusner, Brooks Paige, and José Miguel Hernández-Lobato. Grammar variational autoencoder. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1945– 1954. JMLR.org, 2017.
202
+
203
+ Clare F Macrae, Ian J Bruno, James A Chisholm, Paul R Edgington, Patrick McCabe, Elna Pidcock, Lucia Rodriguez-Monge, Robin Taylor, J van de Streek, and Peter A Wood. Mercury csd 2.0– new features for the visualization and investigation of crystal structures. Journal of Applied Crystallography, 41(2):466–470, 2008.
204
+
205
+ Kaushalya Madhawa, Katushiko Ishiguro, Kosuke Nakago, and Motoki Abe. Graphnvp: An invertible flow model for generating molecular graphs. arXiv preprint arXiv:1905.11600, 2019.
206
+
207
+ Elman Mansimov, Omar Mahmood, Seokho Kang, and Kyunghyun Cho. Molecular geometry prediction using a deep generative graph neural network. arXiv preprint arXiv:1904.00314, 2019.
208
+
209
+ Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 922–928. IEEE, 2015.
210
+
211
+ Hsien-Yu Meng, Lin Gao, Yu-Kun Lai, and Dinesh Manocha. Vv-net: Voxel vae net with group convolutions for point cloud segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 8500–8508, 2019.
212
+
213
+ Thu Nguyen-Phuoc, Chuan Li, Lucas Theis, Christian Richardt, and Yong-Liang Yang. Hologan: Unsupervised learning of 3d representations from natural images. arXiv preprint arXiv:1904.01326, 2019.
214
+
215
+ Guangda Niu, Xudong Guo, and Liduo Wang. Review of recent progress in chemical stability of perovskite solar cells. Journal of Materials Chemistry A, 3(17):8970–8980, 2015.
216
+
217
+ Asma Nouira, Jean-Claude Crivello, and Nataliya Sokolovska. Crystalgan: Learning to discover crystallographic structures with generative adversarial networks. arXiv preprint arXiv:1810.11203, 2018.
218
+
219
+ Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. Distill, 2016. doi: 10.23915/distill.00003. URL http://distill.pub/2016/ deconv-checkerboard.
220
+
221
+ Ozan Oktay, Jo Schlemper, Loic Le Folgoc, Matthew Lee, Mattias Heinrich, Kazunari Misawa, Kensaku Mori, Steven McDonagh, Nils Y Hammerla, Bernhard Kainz, et al. Attention u-net: Learning where to look for the pancreas. arXiv preprint arXiv:1804.03999, 2018.
222
+
223
+ Shyue Ping Ong, William Davidson Richards, Anubhav Jain, Geoffroy Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent L Chevrier, Kristin A Persson, and Gerbrand Ceder. Python materials genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68:314–319, 2013.
224
+
225
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
226
+
227
+ Chris J Pickard and RJ Needs. Ab initio random structure searching. Journal of Physics: Condensed Matter, 23(5):053201, 2011.
228
+
229
+ Pavel G Polishchuk, Timur I Madzhidov, and Alexandre Varnek. Estimation of the size of drug-like chemical space based on gdb-17 data. Journal of computer-aided molecular design, 27(8):675–679, 2013.
230
+
231
+ Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific data, 1:140022, 2014.
232
+
233
+ Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. arXiv preprint arXiv:1906.00446, 2019.
234
+
235
+ David Rolnick, Priya L Donti, Lynn H Kaack, Kelly Kochanski, Alexandre Lacoste, Kris Sankaran, Andrew Slavin Ross, Nikola Milojevic-Dupont, Natasha Jaques, Anna Waldman-Brown, et al. Tackling climate change with machine learning. arXiv preprint arXiv:1906.05433, 2019.
236
+
237
+ O. Ronneberger, P.Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI), volume 9351 of LNCS, pp. 234–241. Springer, 2015. URL http://lmb.informatik.uni-freiburg. de/Publications/2015/RFB15a. (available on arXiv:1505.04597 [cs.CV]).
238
+
239
+ Kristof T Schütt, Huziel E Sauceda, P-J Kindermans, Alexandre Tkatchenko, and K-R Müller. Schnet–a deep learning architecture for molecules and materials. The Journal of Chemical Physics, 148(24):241722, 2018.
240
+
241
+ Daniel Schwalbe-Koda and Rafael Gómez-Bombarelli. Generative models for automatic chemical design. arXiv preprint arXiv:1907.01632, 2019.
242
+
243
+ Marwin HS Segler, Thierry Kogej, Christian Tyrchan, and Mark P Waller. Generating focused molecule libraries for drug discovery with recurrent neural networks. ACS central science, 4(1): 120–131, 2017.
244
+
245
+ Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. In Advances in neural information processing systems, pp. 3483–3491, 2015.
246
+
247
+ Daniel P Tabor, Loïc M Roch, Semion K Saikin, Christoph Kreisbeck, Dennis Sheberla, Joseph H Montoya, Shyam Dwaraknath, Muratahan Aykol, Carlos Ortiz, Hermann Tribukait, et al. Accelerating the discovery of materials for clean energy in the era of smart automation. Nature Reviews Materials, 3(5):5, 2018.
248
+
249
+ Diego Valsesia, Giulia Fracastoro, and Enrico Magli. Learning localized generative models for 3d point clouds via graph convolution. 2018.
250
+
251
+ Maurice Weiler, Mario Geiger, Max Welling, Wouter Boomsma, and Taco Cohen. 3d steerable cnns: Learning rotationally equivariant features in volumetric data. In Advances in Neural Information Processing Systems, pp. 10381–10392, 2018.
252
+
253
+ David Weininger. Smiles, a chemical language and information system. 1. introduction to methodology and encoding rules. Journal of chemical information and computer sciences, 28(1):31–36, 1988.
254
+
255
+ Jiajun Wu, Chengkai Zhang, Tianfan Xue, William T Freeman, and Joshua B Tenenbaum. Learning a probabilistic latent space of object shapes via 3d generative-adversarial modeling. In Advances in Neural Information Processing Systems, pp. 82–90, 2016.
256
+
257
+ Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds, 2018.
258
+
259
+ Tian Xie and Jeffrey C Grossman. Crystal graph convolutional neural networks for an accurate and interpretable prediction of material properties. Physical review letters, 120(14):145301, 2018.
260
+
261
+ Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge Belongie, and Bharath Hariharan. Pointflow: 3d point cloud generation with continuous normalizing flows. arXiv preprint arXiv:1906.12320, 2019.
262
+
263
+ Xiufeng Yang, Jinzhe Zhang, Kazuki Yoshizoe, Kei Terayama, and Koji Tsuda. Chemts: an efficient python library for de novo molecular generation. Science and technology of advanced materials, 18(1):972–976, 2017.
264
+
265
+ Jiaxuan You, Bowen Liu, Zhitao Ying, Vijay Pande, and Jure Leskovec. Graph convolutional policy network for goal-directed molecular graph generation. In Advances in Neural Information Processing Systems, pp. 6410–6421, 2018.
266
+
267
+ Jun-Yan Zhu, Zhoutong Zhang, Chengkai Zhang, Jiajun Wu, Antonio Torralba, Josh Tenenbaum, and Bill Freeman. Visual object networks: image generation with disentangled 3d representations. In Advances in Neural Information Processing Systems, pp. 118–129, 2018.
268
+
269
+ # A SUPPLEMENTAL INFORMATION
270
+
271
+ A.1 VIDEOS
272
+
273
+ See anonymoized project site at: https://sites.google.com/view/ encode-decode-3d-crystals/home.
274
+
275
+ # B CHOICE OF DATA REPRESENTATION
276
+
277
+ We choose to use a 10 Angstrom cutoff as it kept over $90 \%$ of the data we had available without becoming too computationally demanding, as we needed to maintain a relatively small grid spacing between voxels (0.33 Angstrom). Because the problem is 3-D, a $3 0 ^ { 3 }$ input is equivalent to a $1 6 4 \times$ 164 image, in terms of pixels.
278
+
279
+ # C COMPARISON OF 1-D, 2-D, AND 3-D REPRESENTATIONS
280
+
281
+ For small molecules, 1-D SMILES and 2-D graph based representations have been very effectively used for property prediction and for molecule generation tasks. In a SMILES representation, a specific grammar is learned but from a valid string, a specific molecule is generated based on the bond arrangement Weininger (1988); Gómez-Bombarelli et al. (2018). Similarly, a graph based representation is able to place atoms in space without specifically assigning each atom a specific coordinate Jin et al. (2018). Additionally, graph representations have been shown to be successful for property prediction of crystals Xie & Grossman (2018), but not for generating crystals. For small molecules, these representations have proved very effective, especially since both these representations effectively reduce the dimension of the problem.
282
+
283
+ Specifically, SMILES and graph representations both do not encode the specific spatial arrangement of atoms. Instead, these representations are cleverly created in such a way that the spatial arrangements can reconstructed. Unfortunately, for many larger molecules these representations are not sufficient. Therefore, we focus on developing a representation that is able to directly reconstruct both species and locations in a 3-D space.
284
+
285
+ # D SPECIES PREDICTION
286
+
287
+ Each voxel is assigned an identity based on the argmax of the U-Net. The background has label 0. First, we find all connected components of non-background voxels. For each connected component, we tabulate the species predicted at each voxel and each cluster is assigned an identity baased on the majority vote. The location is based on the centroid of the cluster. We experimented with more complicated procedures (such as weighting by the probability vector) and did not find a meaningful improvement.
288
+
289
+ # E TRAINING DETAILS
290
+
291
+ We used a Tesla V100 for training. We used a learning rate of 1e-5 and a batch size of 24.
292
+
293
+ # E.1 NETWORK DETAILS
294
+
295
+ # E.1.1 ENCODER
296
+
297
+ 3D convolution, kernel size of 5 and stride of 2. 16 channels.
298
+ Batch Norm and LeakyReLU activation.
299
+ 3D convolution, kernel size of 3 and stride of 1. 32 channels.
300
+ Batch Norm and LeakyReLU activation.
301
+ 3D convolution, kernel size of 3 and stride of 1. 64 channels.
302
+ Batch Norm and LeakyReLU activation.
303
+ 3D convolution, kernel size of 3 and stride of 2. 128 channels. Batch Norm and LeakyReLU activation.
304
+ Fully connected layer with a bottleneck size 300.
305
+
306
+ # E.1.2 DECODER
307
+
308
+ Fully connected layer.
309
+ Reshape to 128 5,5,5 Trlinear upsample by a factor of two.
310
+ Conv3D with 64 channels, kernel size of 5, leakyReLU.
311
+ Trlinear upsample by a factor of two.
312
+ Conv3D with 32 channels, kernel size of 5, leakyReLU.
313
+ Trlinear upsample by a factor of two.
314
+ Conv3D with 16 channels, kernel size of 4, leakyReLU.
315
+ Conv3D with 1 channels, kernel size of 4, ReLU.
316
+
317
+ # F RESULTS FROM THE ENCODER-DECODER
318
+
319
+ Our encoder-decoder architecture is able to accurately reconstruct the voxel-wise density (Fig. S8A and Fig. S6). We find a strong correlation between the predicted and target voxel value (Fig. S6A). This is essential for achieving an accurate segmentation of the correct atoms and their corresponding positions. Due to the strong penalty on the KL term we find that there is an increased spread in the resulting predictions when attempting to encode and decode repeating unit cells. This is less of an issue when encoding and decoding single unit cells.
320
+
321
+ # G ACCURACY OF RANDOM DRAWS IN A REPEATING LATTICE
322
+
323
+ To test whether random samples from the latent space, $\tilde { \mathbf { z } }$ , decode to physically realistic molecules, we trained a discriminator. We trained an auto-encoder that was able to very accurately reconstruct molecules by greatly reducing the penalty on $\beta$ (see Fig. S12). Then, we compute real latent space representations of our different molecules, $\mathbf { z }$ . We then draw a $\lambda \sim U ( 0 , 1 )$ and construct a new latent space vector
324
+
325
+ $$
326
+ \hat { \mathbf { z } } = \lambda \widetilde { \mathbf { z } } _ { \mathcal { N } ( 0 , 1 ) } + ( 1 - \lambda ) \mathbf { z } _ { \mathrm { r e a l } }
327
+ $$
328
+
329
+ where $\tilde { \mathbf { z } }$ is a random sample from a unit normal and $\mathbf { z } _ { \mathrm { r e a l } }$ is a random “true” latent space. We pass this through the decoder and provide this a label $( 1 - \lambda , \lambda )$ . We then randomly draw $\mathbf { z } \sim \mathcal { N } ( 0 , 1 )$ from our trained network and pass this reconstruction $\tilde { D }$ into the discriminator network, which outputs a prediction of the distance from a true crystal reconstruction versus a random draw from a latent space of a previously trained network. Applying this network to random samples from $\mathbf { z } \sim \mathcal { N } ( 0 , 1 )$ we get a mean value of 0.84 with a standard deviation of 0.05. For true decoded samples, we find a mean value of 0.90 with a standard deviation of 0.01. In Fig. S13, we show results of the trained network and predictions on three different datasets. We find that the target latent space decodes to high-scoring samples (see Fig. S13B) and that out of distribution samples typically decode to much lower scores.
330
+
331
+ # G.1 CONDITIONAL VAE
332
+
333
+ Moving forward, an important step will be creating structures that have specific chemical properties. Moving towards this direction, we attempt to condition the generation of molecules on the largest species present (Sohn et al., 2015). To do this, we multiply the input and output of the bottleneck by the largest present density. By doing this, we are still able to get the network to train but find that we are able to control the magnitude of the resulting density field without perturbing the geometry (see Fig. S10B). We attempted to condition the encoder and decoder by concatenation though we found this was not sufficient to generate density fields with the desired property.
334
+
335
+ The ability to condition on specific properties has obvious applications in the targeted generation of molecules. In this case, we choose to condition on the largest present density as a way to generate molecules that do not have an atom with more than a specified maximum atomic number present. We find that by varying different parameters in the latent space, some vary the field in such a way that appears to correlate with the location of atoms (see Fig. S10C,D). However, unlike as in work on 2-D problems, the changes in the 3-D scalar field are much harder to interpret (Chen et al., 2016; Higgins et al., 2017). Future work will attempt to use improved factorizing techniques (Kim & Mnih, 2018; Chen et al.). Additionally, one could seek to condition the generation of single unit cells on quantum mechanical properties or by adding an auxiliary loss using the latent space to predict quantum mechanical properties.
336
+
337
+ ![](images/be19653bcf2385458ab0ac12318d2df8c79a55720a0a35e8282bab936bc1eea6.jpg)
338
+ Figure S6: Accuracy of Model. (A) For each position in 3-D space, we plot the predicted and target density for 4 different random crystals from the test set. The red dashed line is an identity line. (B) For each of the panels in (A), we show 4 different $z$ -slices through the true and predicted density fields. (C) We show the full 3-D reconstruction of the prediction and the true density field.
339
+
340
+ ![](images/1b139b5b1107a8b870c8c2d3fdca120045256bd847635d211975a104fa2e11df.jpg)
341
+ Figure S7: Random Decoded Samples. We randomly sample the latent space17 $z \sim N ( 0 , 1 )$ . We show a series of examples (from three different views) of different complexity. Note that while symmetry is not preserved, various geometric motifs are.
342
+
343
+ ![](images/2715fa0dbbb0eb4b2e3cfb3e172f54caa3891c68ab33d72ae7e72a19ccbc9435.jpg)
344
+ Figure S8: Repeating unit cell accuracy. (A) For each position in 3-D space, we compute the difference between the truth and the reconstruction. We show different percentile bands of the reconstruction error between the target and predicted density, plotted using the mean square error (MSE). (B) For the species matrix from U-Net we ask what the error of top-1 predictions is between our predictions and the ground truth. (C) For our segmented matrices, we ask the distance from the nearest segmented atom to the ground truth. We show the distance errors by percentile for both the nearest true atom to each predicted atom and vice-versa (orange and blue, respectively). (D) After segmenting the reconstructed density maps we show the predicted and true number of atoms. (E) We plot the predicted nearest atom species versus the true species of the closest corresponding atom, as long as the distance is less than $0 . 5 \mathring \mathrm { \mathrm { A } }$ . We find $6 5 . 4 \%$ are correctly predicted.
345
+
346
+ ![](images/fec1c70feef090b9665cce8067981581ca15dee97b8ce3a537cf76b0d6cb21e5.jpg)
347
+ Figure S9: Interpolation between two molecules. In (A) we show the interpolation between two crystal density maps. We show three equally spaced intermediates the corresponding segmentation. In (B), we show the same interpolation but highlight different two dimensional slices (y-axis). Along the $\mathbf { X }$ -axis we label the fraction of the way between the two latent space vectors.
348
+
349
+ ![](images/0e74fa5ac1d8b18c6b8605a9ed9975dcf1137f638af2f6d2e30043233ec50c04.jpg)
350
+ Figure S10: Conditional generation of molecules. We multiply the input and output of the bottleneck by the maximum density during training. Then, randomly decoding samples of $\alpha \mathbf { z }$ where $\mathbf { z } \sim \mathcal { N } ( 0 , 1 )$ and $\alpha$ is a random target, we find we are able to generate density maps that decode appropriately. If we take a true decoded value and re-scale the output we find we are able to control scale without affecting geometry. (A) We show the target and generated max value. (B) Using an encoded $\mathbf { z }$ , we multiply it by different target values and decode them. We find that we are able to change scale without affecting the geometry. (C) We show a decoded sample. We cut away the right most corner facing the viewer. $\mathbf { \eta } ^ { ( \mathbf { D } ) }$ For the molecule shown in (C), we show the results of varying one value in the latent space from -3 to 3. We plot the difference in the slice when compared the unaltered, decoded, $\mathbf { z }$ for a slice that is in-plane with many atoms.
351
+
352
+ ![](images/d41bbb33b763cb8f62862c4c5f2a3af9df0ae401a41a28355085dcaed57d5822.jpg)
353
+ Figure S11: Interpolation between two molecules. From $i - v$ we show two views of the output from the segmentation routine decoding the latent space between two different molecules. In the primed corresponding figures we show the density fields that are output by the decoder. We show the output of each grid normalized between 0-1 in blue-green and on a fixed color map in magma. We also vary the opacity to show the locations of predicted atoms.
354
+
355
+ ![](images/c65b020d6341425a2323154867c6b9dc320c173c64607cbc4760c5da8d95cc22.jpg)
356
+ Figure S12: Results with smaller $\beta$ . We decrease $\beta$ by a factor of 10. By reducing the penalty on the KullbackLeibler (KL) term we are able to generate more accurate reconstructions. However, sampling $\mathbf { z } \sim \mathcal { N } ( 0 , 1 )$ does not fully sample the encoded space of molecules.
357
+
358
+ ![](images/74d7ac4d6d4a712619001bbfdab66d8b49e2b430271ef077a6324faf7e074e45.jpg)
359
+ Figure S13: $\lambda$ prediction for different samples. Using the network in Fig. S12 we train a discriminator network to predict the “distance” from a real crystal. We apply this discriminator to real decoded samples, random latent space draws, and out of distribution draws (right).
360
+
361
+ ![](images/a2d4e3798b857c00e00b5ddc63e4aa7ddbf927b4e7ead002db0de8bb464bf04d.jpg)
362
+ Figure S14: Decoded samples of repeating unit cells. Results from the encoder-decoder.
363
+
364
+ ![](images/9e97401d7f06566be399ea91e6d0acb6ec429d04f7c6b3fff01713fa27acdf4f.jpg)
365
+ Figure S15: Segmented Output from the decoded samples. The segmented output from Fig. S14.
parse/train/S1enmaVFvS/S1enmaVFvS_content_list.json ADDED
@@ -0,0 +1,1950 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DATA-DRIVEN APPROACH TO ENCODING AND DECODING 3-D CRYSTAL STRUCTURES ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 826,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 234,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Generative models have achieved impressive results in many domains including image and text generation. In the natural sciences, generative models have lead to rapid progress in automated drug discovery. Many of the current methods focus on either 1-D or 2-D representations of typically small, drug-like molecules. However, many molecules require 3-D descriptors and exceed the chemical complexity of commonly used datasets. We present a method to encode and decode the position of atoms in 3-D molecules along with a dataset of nearly 50,000 stable crystal unit cells that vary from containing 1 to over 100 atoms. We construct a smooth and continuous 3-D density representation of each crystal based on the positions of different atoms. Two different neural networks were trained on a dataset of over 120,000 three-dimensional samples of single and repeating crystal structures. The first, an Encoder-Decoder pair, constructs a compressed latent space representation of each molecule and then decodes this description into an accurate reconstruction of the input. The second network segments the resulting output into atoms and assigns each atom an atomic number. By generating compressed, continuous latent spaces representations of molecules we are able to decode random samples, interpolate between two molecules, and alter known molecules. ",
40
+ "bbox": [
41
+ 233,
42
+ 270,
43
+ 766,
44
+ 505
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 541,
55
+ 336,
56
+ 556
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Generative models have recently seen tremendous success in generating 2-D images of every day objects (Kingma & Welling, 2013; Goodfellow et al., 2014; Brock et al., 2018; Razavi et al., 2019). The size and accuracy of generated results has greatly improved to the point where samples from the latent space decode to photo-realistic samples (Brock et al., 2018; Razavi et al., 2019). A very exciting and important future avenue for generative models is the generation of 3-D structures, like in the world around us. Adversarial networks and autoencoders have been extended into 3-D and have shown they are able to encode useful representations of everyday objects (Wu et al., 2016; Zhu et al., 2018; Brock et al., 2016; Achlioptas et al., 2017; Valsesia et al., 2018; Meng et al., 2019; Maturana & Scherer, 2015). Representations using point clouds have gained popularity as a way to capture the distribution of different types of objects (Achlioptas et al., 2017; Yang et al., 2019; Wu et al., 2018). ",
63
+ "bbox": [
64
+ 174,
65
+ 575,
66
+ 825,
67
+ 715
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "As machine learning approaches are able to understand and recreate the underlying distributions for many different types of objects in our world, the application of these tools in the physical sciences is a very exciting direction. A clear field where generative models can have a tremendous impact is in material discovery, which is very important for designing new batteries or carbon capture devices for fighting climate change. ",
74
+ "bbox": [
75
+ 174,
76
+ 722,
77
+ 825,
78
+ 791
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "One very successful area of applying generative models to the sciences has been the field of drug discovery (Jin et al., 2018; Gómez-Bombarelli et al., 2018; Assouel et al., 2018) (see Schwalbe-Koda & Gómez-Bombarelli (2019) for an excellent summary of many methods). The success of machine learning in this domain has been enormously helpful as a process that was often painstakingly slow has been rapidly accelerated in searching an unimaginably large space of possible drug compounds, estimate to be up to $1 0 ^ { 6 0 }$ (Polishchuk et al., 2013). Additionally, excellent datasets such as QM9 (Ramakrishnan et al., 2014) and ZINC (Irwin et al., 2012) which contain molecules of interest along with their precomputed properties have allowed for comparing different methods and developing state-of-the-art tools. ",
85
+ "bbox": [
86
+ 174,
87
+ 799,
88
+ 825,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/e5d0c45c3fd1f05a755aa39ebe59a8974cd4a06889e59019c5f4e54b12ef09f7.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Examples of crystal unit cells. Each example shows the unit cell of a crystal. Different colors represent different atomic species. A red, green, and blue line represent the 3 axes of the crystal. Note that they vary in length and angle. Additionally, some unit cells have just one or two atoms while others have nearly 100. Visualizations were made with Mercury (Macrae et al., 2008). "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 279,
102
+ 111,
103
+ 727,
104
+ 270
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "By learning a compressed, useful, latent space representation, this enormous space of molecules can be embedded in a simpler latent space that is easier to search Kusner et al. (2017). Using generative models, compounds hypothesized to have specific properties can be rapidly generated and then a targeted subset of these can be experimentally tested. For example, in Gómez-Bombarelli et al. (2018), an auxiliary property prediction task is introduced for a network separate from the encoder/decoder. This allows for optimization of properties in the latent space and then the resulting latent space vector is decoded into a candidate molecule that can undergo more rigorous computational testing before it is experimentally synthesized. Using a graph representation and reinforcement learning, You et al propose a novel method for molecule generation with specific properties You et al. (2018). ",
111
+ "bbox": [
112
+ 174,
113
+ 375,
114
+ 825,
115
+ 500
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Most of the work combining generative models with chemical discovery has focused on molecules that can be represented in either 1 dimension (such as a SMILES string (Weininger, 1988)) or by leveraging a 2 dimensional representation of a molecule, such as a graph. While 1-D and 2-D representations have been very successful for many drug compounds, these representations are not sufficient to describe all molecules. For example, it is possible for different molecules, with very different properties, to have identical graphs (Gebauer et al., 2019). Additionally, there are more complex classes of compounds where the 3-D structure is integral to the molecule’s properties. Therefore, in this work we focus on generating representations of molecules where the 3-D information is essential for reconstruction. Generating 3-D structures is still a relatively nascent field, when compared to image and text generation. The data requirements for modeling 3-D structures are larger than their 2-D counterparts and there are fewer standard datasets (Nguyen-Phuoc et al., 2019). Additionally, to measure the properties of inorganic materials (like those considered here), costly DFT calculations are needed which require precise 3-D locations. There is an extra dimension in 3-D problems, providing additional symmetries that often need to be learned (Weiler et al., 2018). New work from generates adjacency matrices which are, by construction, invariant to rotation Hoffmann & Noé (2019). In either case, for the automatic generation of viable complex 3-D structures of inorganic compounds one needs to accurately generate the locations of many atoms in 3-D space. ",
122
+ "bbox": [
123
+ 173,
124
+ 507,
125
+ 825,
126
+ 756
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "In this work, we focus specifically on proposing an effective 3-D representation for this class of molecules that can not be represented in the same ways as many smaller molecules. We hope to promote work in this still nascent field which has yet to see the same level of success as the generation of smaller molecules. In the Appendix, we have provided a clear comparison with 1-D and 2-D representations. Currently, no direct comparisons are possible. ",
133
+ "bbox": [
134
+ 174,
135
+ 763,
136
+ 825,
137
+ 833
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "In addition to drug discovery, a promising avenue for molecular design is for minimizing environmental impact through the design of more efficient or more environmentally friendly compounds for a variety of applications. Designing more efficient materials for photo-voltaic panels and more environmentally friendly materials for batteries are both very exciting research directions for using machine learning as a tool towards mitigating climate change (Niu et al., 2015; Tabor et al., 2018; Gebauer et al., 2019; Rolnick et al., 2019). Many of the compounds of interest are crystal structures made of single small sub-units that repeat in all directions. This sub-unit is referred to as a “unit cell” and can vary in size and shape as well as internal arrangement and chemical composition. ",
144
+ "bbox": [
145
+ 174,
146
+ 840,
147
+ 825,
148
+ 924
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "",
155
+ "bbox": [
156
+ 171,
157
+ 103,
158
+ 825,
159
+ 132
160
+ ],
161
+ "page_idx": 2
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "In this work, we present a method for encoding and decoding a very important set of 3-D molecules that can not be represented using standard methods used for drug-like molecules. We directly encode and decode 3-D volumes of density from two different data representations. In the first, we use single unit cells, as shown in Fig. 1. Each unit cell is centered in the cube, but randomly rotated. In the second representation, we repeat the unit cell along all three axes such that the resulting sampled cube contains repeated unit cells of crystal structures, like those shown in Fig. 2 (and Fig. S6C). Many very interesting and important molecules, such as materials for solar panels or batteries, are composed of crystalline units. We train a variational autoencoder (VAE) and a network to segment the decoded output based on the true locations of atoms in tandem. By coupling these two tasks, we are able to accurately encode and decode 3-D atomic positions and species. As far as we are aware, this is not an explored direction as a means to represent molecules for encoding and decoding their 3-D arrangement. We summarize our contribution as follows: ",
166
+ "bbox": [
167
+ 174,
168
+ 138,
169
+ 825,
170
+ 304
171
+ ],
172
+ "page_idx": 2
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "• We propose a method for encoding and decoding 3-D molecules that can not be represented by traditional string or graph based approaches. By jointly training a VAE and a segmentation network on the output of the decoder, we train the entire network in an end-to-end fashion. • We consider two different problems: (1) encoding and decoding single unit cells and (2) encoding and decoding repeated unit cells. In both cases we accurately reconstruct the locations of atoms. We also achieve good results in atomic species identification and future work will improve this front. By sampling from $\\mathbf { z } \\sim \\mathcal { N } ( 0 , 1 )$ , we generate complex structures that have physically realistic spacing between atoms. ",
177
+ "bbox": [
178
+ 215,
179
+ 318,
180
+ 825,
181
+ 438
182
+ ],
183
+ "page_idx": 2
184
+ },
185
+ {
186
+ "type": "image",
187
+ "img_path": "images/104ee9745a030128516aff01dec068a3c52f5f1e3ae3b5a46ab8a19c21a3981b.jpg",
188
+ "image_caption": [
189
+ "Figure 2: Network Architecture. We encode and decode a $3 0 \\times 3 0 \\times 3 0$ voxel grid representing $1 0 \\mathring \\mathrm { A }$ on each side. Each voxel contains the value of the density. The output of the decoder is passed into a 3-D U-Net Çiçek et al. (2016). We train the two models in parallel. In the schematic, we show the crystal represented as a repeated unit cell rather than a single unit cell. The black arrows indicate deterministic transformations. From the cif file, the species matrix is constructed. From this, the density matrix is computed. "
190
+ ],
191
+ "image_footnote": [],
192
+ "bbox": [
193
+ 196,
194
+ 462,
195
+ 803,
196
+ 598
197
+ ],
198
+ "page_idx": 2
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "2 PRELIMINARIES AND RELATED WORK ",
203
+ "text_level": 1,
204
+ "bbox": [
205
+ 174,
206
+ 717,
207
+ 524,
208
+ 733
209
+ ],
210
+ "page_idx": 2
211
+ },
212
+ {
213
+ "type": "text",
214
+ "text": "There are many classes of compounds that are of interest for data-driven discovery. There has been significant work exploring the generation of molecules with potential medicinal properties. These molecules tend to be organic molecules and can be represented efficiently using a string or a graph. A more complex class of molecules are inorganic crystal structures which vary in complexity across many different axes. Crystals are materials that are made up of a repeating pattern of a simpler “unit cell.” Crystal structures are of key interest for many environmental problems, such as materials for solar panels and batteries (Niu et al., 2015). ",
215
+ "bbox": [
216
+ 174,
217
+ 750,
218
+ 825,
219
+ 847
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "In contrast to problems in drug discovery, many crystals are not composed solely of organic molecules. Crystals commonly contain many heavy (non-Hydrogen) atoms which make various quantum mechanical calculations of their energetic properties very difficult and time consuming. For example, the common benchmark dataset QM9 for predicting quantum mechanical properties includes over 130,000 molecules contains fewer than 9 “heavy” atoms (Ramakrishnan et al., 2014). ",
226
+ "bbox": [
227
+ 174,
228
+ 854,
229
+ 825,
230
+ 924
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "image",
236
+ "img_path": "images/e317eecfd7e520c0280f7a5951d8a0597f0e801dce96c75eea954c4cab6faeda.jpg",
237
+ "image_caption": [
238
+ "Figure 3: Single unit cell accuracy. (A) We show the voxel wise reconstruction error (plotted with mean square error) during training. (B) For random molecules in the test set, we plot the number of true atoms and the number of recovered atoms after segmentation. (C) For the reconstructed atoms, we plot the predicted atomic number versus the atomic number of the nearest true atom. (D) We compute the distance from each true atom to the nearest predicted atom and vice-versa (orange and blue, respectively). (E) For three different crystals we plot the predicted versus reconstructed density at each voxel. We also show 2-D slices through the target and prediction, along with the 3-D reconstructions. For plotting, the density on each figure is normalized between 0 and 1 though is not decoded as such. "
239
+ ],
240
+ "image_footnote": [],
241
+ "bbox": [
242
+ 187,
243
+ 99,
244
+ 787,
245
+ 542
246
+ ],
247
+ "page_idx": 3
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "There have been two parallel lines of work applying machine learning to material sciences. The first deals with the prediction of physical properties from a compound without performing a computationally expensive density functional theory (DFT) calculation. ",
252
+ "bbox": [
253
+ 174,
254
+ 700,
255
+ 826,
256
+ 742
257
+ ],
258
+ "page_idx": 3
259
+ },
260
+ {
261
+ "type": "text",
262
+ "text": "Recently, Xie and Grossman introduced crystal graph convolutional networks (CGCNN) for accurate prediction of 8 different DFT-calculated properties of crystal structures (Xie & Grossman, 2018). MatErials Graph Network (MEGNet) uses graph neural networks (Chen et al., 2019) to predict a variety of energetic properties on both the QM9 dataset (Ramakrishnan et al., 2014) as well 69,000 crystal structures from the Materials Project (Jain et al., 2013). Another network, SchNet, uses 3-D spatial information to directly leverage the interactions between separate atoms. They then use a continuous-filter convolution for accurate property prediction (Schütt et al., 2018). These methods, and many more, have all achieved impressive results on many standard benchmark datasets. Cubuk, et al. use transfer learning to search an enormous space of molecules for promising Lithium ion conductors (Cubuk et al., 2019). ",
263
+ "bbox": [
264
+ 174,
265
+ 750,
266
+ 825,
267
+ 888
268
+ ],
269
+ "page_idx": 3
270
+ },
271
+ {
272
+ "type": "text",
273
+ "text": "Another line of work is concerned with generating molecules, often molecules that have specific properties. In the past decade, generative models for drug discovery have achieved impressive results. Typically a representation of a compound, such as a SMILES string (Gómez-Bombarelli et al., 2018; Segler et al., 2017; Alperstein et al., 2019) or a graph (Jin et al., 2018; Assouel et al., 2018; Mansimov et al., 2019) is encoded and decoded. Then, by sampling the resulting latent space, novel molecules can be generated. Either by performing an auxiliary task with the latent space (as done in Gómez-Bombarelli et al. (2018)) and then performing optimization or by conditioning the latent space on desirable properties, novel chemical structures are obtained. ",
274
+ "bbox": [
275
+ 174,
276
+ 895,
277
+ 823,
278
+ 924
279
+ ],
280
+ "page_idx": 3
281
+ },
282
+ {
283
+ "type": "text",
284
+ "text": "",
285
+ "bbox": [
286
+ 174,
287
+ 103,
288
+ 825,
289
+ 186
290
+ ],
291
+ "page_idx": 4
292
+ },
293
+ {
294
+ "type": "text",
295
+ "text": "One possible representation of drug-like molecules is a SMILES string. However, a difficulty faced using the SMILES representation is ensuring that the decoder decoded a valid SMILES string (Gómez-Bombarelli et al., 2018; Kusner et al., 2017). Additionally, there is not a strong notion of distance between molecules and their SMILES representation (Jin et al., 2018). One approach, ChemTS, uses SMILES strings along with recurrent neural networks and Monte Carlo Tree Search to better ensure generated strings decode to real molecules (Yang et al., 2017). By explicitly penalizing invalid SMILES strings in their reward function they are able to bypass the difficulty in their decoded molecules being non-physical. ",
296
+ "bbox": [
297
+ 174,
298
+ 194,
299
+ 825,
300
+ 305
301
+ ],
302
+ "page_idx": 4
303
+ },
304
+ {
305
+ "type": "text",
306
+ "text": "More recently, graph based methods have proven very successful in generating synthetically attainable molecules. By building a database of molecule fragments (like LEGO bricks), a graph is formed based on the connectivity of different structures (Jin et al., 2018). These methods have far fewer difficulties ensuring that the decoder produces physically valid molecules. For generation of physical molecules, this is a very important consideration, as there are many hard constrains that most be obeyed. Other graph based approaches include flow based models (Madhawa et al., 2019). Also using graph neural networks, E. Manismov and collaborators developed a method to, given a graph, recreate conformations of a 3-D molecule and predict its energetic properties (Mansimov et al., 2019). In Mansimov et al. (2019), the authors propose a graph-based generative method that is able to generate molecules with desired target properties. Impressively, they recover 3-D positional information for the atoms and show they achieve the required accuracy for relaxation. ",
307
+ "bbox": [
308
+ 174,
309
+ 313,
310
+ 825,
311
+ 465
312
+ ],
313
+ "page_idx": 4
314
+ },
315
+ {
316
+ "type": "text",
317
+ "text": "An additional challenge for generative models in the physical sciences is ensuring that samples from the latent space, z, decode into physically plausible objects. The decoded objects need to obey physical constraints and an object that may appear physical is not certain to actually be experimentally realizable. In many domains this is not of specific concern, for example a generated animal is scored on some likelihood based on its visual appearance, not whether or not the generated creature is genetically possible. Recently, there have been generative models leveraging the 3-D nature of the problem. G-SchNet, a generative model for 3-D molecules (Gebauer et al., 2019) leverages the SchNet architecture- a start-of-the-art property prediction network (Schütt et al., 2018). They show they are able to generate molecules, placing atoms in 3-D space in a rotationally invariant manner. By appropriately conditioning the placement of new molecules based on the location and identity of previous molecules, they ensure the symmetries that are required for the molecules to relax in a DFT calculation. They propose expanding G-SchNet to generating crystal structures as a future direction. ",
318
+ "bbox": [
319
+ 174,
320
+ 472,
321
+ 825,
322
+ 638
323
+ ],
324
+ "page_idx": 4
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "While there is a rich literature in the generation of organic compounds, recently there has been work in the generation of more complex crystal structures, such as CrystalGAN (Nouira et al., 2018). The authors of CrystalGAN introduce geometric constraints and show that their method is able to produce stable structures compared to methods that do not include such domain knowledge such as DiscoGAN (Kim et al., 2017). CrystalGAN uses a dataset with a much larger selection of elements than much previous work, but they limit themselves to molecules of particular chemical structure, nor do they generate a 3-D arrangement. In this work, we do not limit the generated crystals in this way. ",
329
+ "bbox": [
330
+ 174,
331
+ 646,
332
+ 825,
333
+ 743
334
+ ],
335
+ "page_idx": 4
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "3 METHODS ",
340
+ "text_level": 1,
341
+ "bbox": [
342
+ 174,
343
+ 765,
344
+ 290,
345
+ 781
346
+ ],
347
+ "page_idx": 4
348
+ },
349
+ {
350
+ "type": "text",
351
+ "text": "We use a dataset containing $4 6 { , } 7 4 4 \\mathrm { c i f }$ files which contains the information describing the unit cells of properly relaxed crystal structures from the Materials Project (Jain et al., 2013; Xie & Grossman, 2018). We use $80 \\%$ of the data for testing and the other $20 \\%$ for training. Using the Python library pymatgen we preprocess all of the data into the density 3-D matrices (Ong et al., 2013) described below. The boundary box of a crystal structure is controlled by six different degrees of freedom (see Fig. 1). Each side can have a different length and the angles between the three sides is also variable. Additionally, the internal complexity of each crystal can also vary widely– some unit cells in our dataset contain a single atom while other unit cells can have over one hundred different atoms. This tremendous variability in structure makes a universal representation difficult. ",
352
+ "bbox": [
353
+ 173,
354
+ 797,
355
+ 825,
356
+ 924
357
+ ],
358
+ "page_idx": 4
359
+ },
360
+ {
361
+ "type": "image",
362
+ "img_path": "images/a14e135fc66f074fa225d5fe0e75e15f44f183476d9b382bb262610b0b8beec6.jpg",
363
+ "image_caption": [
364
+ "Figure 4: Species reconstruction and latent space interpolation. (A) For five different randomly selected crystal unit cells we show the target and our reconstruction. Atoms are colored using default atomic colors, atoms with similar atomic number do not necessarily have similar colors. (B) We show the reconstruction of latent space interpolation between two molecules for 3 random sets of targets. For a video, see the Appendix. "
365
+ ],
366
+ "image_footnote": [],
367
+ "bbox": [
368
+ 202,
369
+ 107,
370
+ 810,
371
+ 547
372
+ ],
373
+ "page_idx": 5
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "3.1 DATA REPRESENTATION ",
378
+ "text_level": 1,
379
+ "bbox": [
380
+ 176,
381
+ 647,
382
+ 382,
383
+ 661
384
+ ],
385
+ "page_idx": 5
386
+ },
387
+ {
388
+ "type": "text",
389
+ "text": "As a first step for the problem of generating novel, physical crystal structures we begin with the simpler problem of encoding and decoding physical locations of atoms in space. We begin by considering a cube with side length $1 0 \\mathrm { ~ \\AA ~ }$ , which we represent by $M$ . We divide this cube into 30 equally spaced bins, resulting in a $3 0 \\times 3 0 \\times 3 0$ cube with each voxel representing $0 . 3 3 \\mathring { \\mathrm { A } }$ on each side (see Fig. 2 and Fig. 3E). In the appendix, we discuss this choice in more detail. This data representation is similar to many computer vision tasks, so we use similar convolution based network architectures. ",
390
+ "bbox": [
391
+ 173,
392
+ 675,
393
+ 825,
394
+ 776
395
+ ],
396
+ "page_idx": 5
397
+ },
398
+ {
399
+ "type": "text",
400
+ "text": "We consider the crystal structures in our dataset where the maximum side length is less than $1 0 \\mathring \\mathrm { A }$ We consider two different data representations of different complexity. In the first, we shift each single unit cell to the center of our grid, then we randomly rotate it. In this representation, we encode and decode a single unit cell. We randomly sample 3 different rotations for each crystal. In this case, the encoded structures typically have between 1 and 30 atoms, with a few reaching between 50 and 100. In the second representation, we repeat these unit cells in each direction infinitely and randomly sample a cube in space. This means that each cube contains at least one unit cell, but some will contain more than one cell, since in all cases a cube with 10 Åsides is chosen. We choose one representation where a unit cell begins at $( 0 , 0 , 0 )$ and randomly sample 2 other cubes in this space resulting in a dataset of over 100,000 examples. In this representation, we typically encode the locations of between 20 to 100 atoms, with some having over 200. An advantage of our representation is that we are agnostic to the number of atoms that we are encoding and decoding, something that is difficult for other approaches such as graphs. ",
401
+ "bbox": [
402
+ 173,
403
+ 784,
404
+ 825,
405
+ 924
406
+ ],
407
+ "page_idx": 5
408
+ },
409
+ {
410
+ "type": "text",
411
+ "text": "",
412
+ "bbox": [
413
+ 174,
414
+ 103,
415
+ 825,
416
+ 146
417
+ ],
418
+ "page_idx": 6
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "Using both these representations, we compute a density field, where each pixel $( i , j , k )$ is defined to have value ",
423
+ "bbox": [
424
+ 171,
425
+ 152,
426
+ 823,
427
+ 179
428
+ ],
429
+ "page_idx": 6
430
+ },
431
+ {
432
+ "type": "equation",
433
+ "img_path": "images/32c4509842b38714178771c069c17784c143b9b83a65a5ba0a741877473fb328.jpg",
434
+ "text": "$$\nM _ { i , j , k } = \\frac { 1 } { \\sigma ^ { 3 } ( 2 \\pi ) ^ { 3 / 2 } } \\sum _ { m } Z _ { m } \\mathrm { e x p } \\left( - \\frac { d ( \\vec { Z } _ { m } , ( i , j , k ) ) ^ { 2 } } { 2 \\sigma ^ { 2 } } \\right)\n$$",
435
+ "text_format": "latex",
436
+ "bbox": [
437
+ 313,
438
+ 179,
439
+ 684,
440
+ 222
441
+ ],
442
+ "page_idx": 6
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "Where $d ( \\cdot , \\cdot )$ represents the Euclidean distance between the two arguments. $\\vec { Z } _ { m }$ represents the 3-D coordinates of atom $Z _ { m }$ . We set $\\sigma$ to $1 . 0 \\mathring \\mathrm { A }$ . When plotting, we multiply the output by $\\sigma ^ { 3 } ( 2 \\pi ) ^ { 3 / 2 }$ . We do this because when $\\sigma = 1$ this results in the value of $Z$ (the atomic number) being present at its location in space. Because of the structure of this representation, when the density of atoms increases, there are more interactions making it harder to reconstruct the true identity of an atom. Ultimately, our aim is to be able to reconstruct the location and species of the different atoms in this grid. To that end, we also construct a species matrix, $_ { s }$ , where each voxel is either a 0 or equal to the atomic number of an atom that is within $0 . 5 \\mathring \\mathrm { \\mathrm { A } }$ . We construct two neural networks that attempt to learn $M$ and $\\pmb { S }$ in parallel. These two networks are trained together and are detailed in the following section. ",
447
+ "bbox": [
448
+ 173,
449
+ 229,
450
+ 826,
451
+ 359
452
+ ],
453
+ "page_idx": 6
454
+ },
455
+ {
456
+ "type": "text",
457
+ "text": "3.2 NETWORK ARCHITECTURE ",
458
+ "text_level": 1,
459
+ "bbox": [
460
+ 176,
461
+ 378,
462
+ 403,
463
+ 392
464
+ ],
465
+ "page_idx": 6
466
+ },
467
+ {
468
+ "type": "text",
469
+ "text": "We use a variational autoencoder (Kingma & Welling, 2013) to encode and decode our 3-D density maps, $M$ . We use a $\\beta$ multiplier on the Kullback-Leibler (KL) loss term to encourage no correlations between different elements of the latent space (Higgins et al., 2017). Our encoder, $E ( \\cdot )$ , is a convolutional neural network. The decoder, $D ( \\cdot )$ , uses upsampling and convolutions in favor of transposed convolutions (Odena et al., 2016). We use batch normalization (Ioffe & Szegedy, 2015), LeakyReLU activations, and the code is written in Pytorch (Paszke et al., 2017). The optimization is done using the Adam optimizer (Kingma & Ba, 2014). We use a latent space size of 300 for all experiments. ",
470
+ "bbox": [
471
+ 173,
472
+ 405,
473
+ 826,
474
+ 517
475
+ ],
476
+ "page_idx": 6
477
+ },
478
+ {
479
+ "type": "text",
480
+ "text": "Simultaneously with training the VAE, we train a 3-D U-Net segmentation model, $\\mathrm { U } _ { \\mathrm { n e t } } ( \\cdot )$ , with an attention mechanism to segment the output of the decoder (Ronneberger et al., 2015; Oktay et al., 2018). For accurate segmentation, especially in the case of a repeating lattice, it is important to be able to capture the dependencies between different atoms. We found that a U-Net model worked well, though future work will explore sequentially classifying atoms. Ideally, the primary work is done by the VAE and the role of U-Net is to perform the tedious optimization problem of recovering the species identity and locations that is most consistent with the reconstructed density field. ",
481
+ "bbox": [
482
+ 173,
483
+ 522,
484
+ 825,
485
+ 621
486
+ ],
487
+ "page_idx": 6
488
+ },
489
+ {
490
+ "type": "text",
491
+ "text": "We include a weighted (by $\\gamma$ ) loss from the segmentation in the loss of the encoder/decoder. In our experiments, we set $\\gamma$ to 0.1. We experimented with $\\gamma = 0$ and $\\gamma = 0 . 3 3$ and found that 0.1 proved an acceptable intermediate. With $\\gamma = 0 . 3 3$ we found slightly improved segmentation results but worse density reconstruction results. When we completely removed the effect of the species loss from the density reconstruction, species reconstruction results degraded.This allows us to train the entire network in an end-to-end fashion. The entire model is shown in Fig. 2. ",
492
+ "bbox": [
493
+ 173,
494
+ 627,
495
+ 825,
496
+ 712
497
+ ],
498
+ "page_idx": 6
499
+ },
500
+ {
501
+ "type": "text",
502
+ "text": "We use three terms in the loss function for the VAE with the most weight given to the reconstruction of the density matrices. The segmentation network is only concerned with the final segmentation of the reconstruction from the decoder. Currently, we treat each atom type as a different class, with an additional (most common) class for “no atom.” The loss function used for the VAE is ",
503
+ "bbox": [
504
+ 173,
505
+ 718,
506
+ 825,
507
+ 775
508
+ ],
509
+ "page_idx": 6
510
+ },
511
+ {
512
+ "type": "equation",
513
+ "img_path": "images/41d0e08dab8d8393c6f46184576263b31aa0af45b63816cc3f2a9c7cb8af75f1.jpg",
514
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { V A E } } = L _ { \\mathrm { R E } } ( \\hat { M } , M ) + \\beta ( D _ { \\mathrm { K L } } ( q ( \\mathbf { z } | M ) | | p ( \\mathbf { z } ) ) ) + \\gamma L _ { \\mathrm { B C E } } ( \\hat { S } , S ) .\n$$",
515
+ "text_format": "latex",
516
+ "bbox": [
517
+ 281,
518
+ 782,
519
+ 717,
520
+ 803
521
+ ],
522
+ "page_idx": 6
523
+ },
524
+ {
525
+ "type": "text",
526
+ "text": "The first term is the reconstruction error and the third term is the binary cross entropy loss from the segmentation. The second term is the Kullback-Leibler divergence between the prior (set to $p ( \\mathbf { z } ) \\stackrel { - } { = } \\mathcal { N } ( 0 , 1 ) )$ and $q ( z | M )$ the approximate posterior of the latent vector given input $M$ . We use a loss given by $\\mathcal { L } _ { \\mathrm { U - N e t } } = L _ { \\mathrm { B C E } } ( \\hat { S } , S )$ for the segmentation. In the above expression, $M$ is the input density field. $\\mathbf { z } = E ( M )$ and $\\hat { M } = D ( \\pmb { \\mathrm { z } } )$ is the reconstructed density field. The variable $_ { s }$ represents a 1-hot species matrix. Lastly, $\\hat { \\boldsymbol { S } } = \\mathrm { U } _ { \\mathrm { n e t } } \\left( \\hat { \\boldsymbol { M } } \\right)$ represents the probability matrix from the segmentation routine, which will be of shape: [ba $\\mathrm { c h } \\times \\mathrm { c l a s s e s } \\times \\mathrm { x } \\mathrm { - d i m } \\times \\mathrm { y } \\mathrm { - d i m } \\times \\mathrm { z } \\mathrm { - d i m } ]$ . ",
527
+ "bbox": [
528
+ 173,
529
+ 810,
530
+ 825,
531
+ 925
532
+ ],
533
+ "page_idx": 6
534
+ },
535
+ {
536
+ "type": "text",
537
+ "text": "4 RESULTS ",
538
+ "text_level": 1,
539
+ "bbox": [
540
+ 174,
541
+ 102,
542
+ 281,
543
+ 117
544
+ ],
545
+ "page_idx": 7
546
+ },
547
+ {
548
+ "type": "text",
549
+ "text": "We find that we are able to accurately encode and decode 3-D representations of density fields (see Figs. 3 and S8). Using the segmentation network, we segment the output of the decoder into distinct atoms. Using a trained network, we show that random samples from the latent space decode to samples that obey many of the same statistics as the training distribution (see Fig. 5 and Fig. S7). Additionally, in the case of a repeating unit cell, we alter our training routine to condition the generation of crystals on the largest atomic number present. ",
550
+ "bbox": [
551
+ 174,
552
+ 133,
553
+ 506,
554
+ 286
555
+ ],
556
+ "page_idx": 7
557
+ },
558
+ {
559
+ "type": "text",
560
+ "text": "4.1 PLACEMENT OF ATOMS ",
561
+ "text_level": 1,
562
+ "bbox": [
563
+ 176,
564
+ 304,
565
+ 375,
566
+ 318
567
+ ],
568
+ "page_idx": 7
569
+ },
570
+ {
571
+ "type": "text",
572
+ "text": "Using the output of the segmentation network, we take the $\\tilde { \\bf S } = \\mathrm { a r g m a x } ( \\hat { \\bf S } )$ . From this representation, we find the connected components and use majority voting to assign each cluster an atom identity (see Appendix for details). In Fig. 3 (and Fig.S8) we show the accuracy of all top-1 predictions. We compare the results of our segmented matrix, S˜ with the true values, S. From the center of mass of each predicted atom $i$ , we compute the distance to the nearest true atom as follows ",
573
+ "bbox": [
574
+ 174,
575
+ 330,
576
+ 506,
577
+ 472
578
+ ],
579
+ "page_idx": 7
580
+ },
581
+ {
582
+ "type": "equation",
583
+ "img_path": "images/b1e924241f7b2cca2ec2bcded7b933459f6cb52938b27c1831c28b2dc83f4885.jpg",
584
+ "text": "$$\n\\begin{array} { r } { \\operatorname* { m i n } _ { j } \\ d ( \\tilde { \\bf S } _ { i } , { \\bf S } _ { j } ) \\forall \\ j \\ \\mathrm { a n d } \\operatorname* { m i n } _ { i } \\ d ( \\tilde { \\bf S } _ { i } , { \\bf S } _ { j } ) \\ \\forall \\ i . } \\end{array}\n$$",
585
+ "text_format": "latex",
586
+ "bbox": [
587
+ 187,
588
+ 477,
589
+ 472,
590
+ 497
591
+ ],
592
+ "page_idx": 7
593
+ },
594
+ {
595
+ "type": "table",
596
+ "img_path": "images/c7aca0e31e7cbb381946489393790c5c700b5ddd5d73b2a9d540f8d247fc5e63.jpg",
597
+ "table_caption": [
598
+ "Table 1: Location and species reconstruction error. $P$ denotes prediction and $T$ denotes target. Distances in angstrom. For $Z$ reconstruction, we show the percentile at each absolute difference. ",
599
+ "Locations "
600
+ ],
601
+ "table_footnote": [],
602
+ "table_body": "<table><tr><td>Percentile</td><td>P→T(A)</td><td>T→P(A)</td></tr><tr><td>0.</td><td>4.31×10-4</td><td>5.47×10-4</td></tr><tr><td>10.</td><td>5.03 ×10-2</td><td>5.02 × 10-2</td></tr><tr><td>20.</td><td>7.04 × 10-2</td><td>7.05 ×10-2</td></tr><tr><td>30.</td><td>9.12 × 10-2</td><td>9.13 × 10-2</td></tr><tr><td>40.</td><td>1.14 × 10-1</td><td>1.14 × 10-1</td></tr><tr><td>50.</td><td>1.36 × 10-1</td><td>1.37 × 10-1</td></tr><tr><td>60.</td><td>1.60 × 10-1</td><td>1.61 × 10-1 1.94 × 10-1</td></tr><tr><td>70. 80.</td><td>1.94 × 10-1 2.48 × 10-1</td><td>2.50 ×10-1</td></tr><tr><td>90. 100.</td><td>3.94 × 10-1 2.59</td><td>4.03 × 10-1 1.89</td></tr><tr><td>Species Abs.Diff.in Z</td><td>Percent</td><td></td></tr><tr><td>0</td><td>66.8 %</td><td></td></tr><tr><td>1</td><td>25.1 %</td><td></td></tr><tr><td>2</td><td>5.8 %</td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td>&gt;3</td><td>2.2 %</td><td></td></tr></table>",
603
+ "bbox": [
604
+ 517,
605
+ 234,
606
+ 848,
607
+ 498
608
+ ],
609
+ "page_idx": 7
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "Similarly, we can compute the distance from each true atom to the nearest predicted atom. By computing this metric in both directions, we are able to ",
614
+ "bbox": [
615
+ 174,
616
+ 503,
617
+ 508,
618
+ 545
619
+ ],
620
+ "page_idx": 7
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "verify that our model is placing atoms in the correct locations but only in those locations. ",
625
+ "bbox": [
626
+ 176,
627
+ 546,
628
+ 754,
629
+ 560
630
+ ],
631
+ "page_idx": 7
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "4.2 ACCURACY ON A UNIT CELL ",
636
+ "text_level": 1,
637
+ "bbox": [
638
+ 176,
639
+ 578,
640
+ 411,
641
+ 590
642
+ ],
643
+ "page_idx": 7
644
+ },
645
+ {
646
+ "type": "text",
647
+ "text": "In Fig. 3 we plot the results of applying our model to single unit cells of crystals (see also Table 1). We find out model is able to very accurately segment the locations of atoms with nearly $9 9 \\%$ of atoms placed within $0 . 5 \\mathring \\mathrm { \\mathrm { A } }$ of their true location. Nearly $90 \\%$ of unit cells are reconstructed with the correct number of atoms and $9 7 \\%$ of unit cells are reconstructed with less than 2 atoms extra or missing. $66 \\%$ of species are correctly classified in the test set, with nearly 100 possible classes. When an atom is incorrectly classified, it is usually by one or two atomic numbers (see Table 1). Often adjacent elements (with atomic numbers that differ by 1) have very different chemical properties. We retrained the network to predict atomic group (where elements in the same group tend to have more similar properties) and found $93 \\%$ accuracy. We report accuracy on $Z$ as this is a more difficult problem and in both cases we are still unable to reconstruct crystals with the accuracy to relax in a DFT calculation. Missed atoms typically occur near the boundary. ",
648
+ "bbox": [
649
+ 173,
650
+ 603,
651
+ 825,
652
+ 757
653
+ ],
654
+ "page_idx": 7
655
+ },
656
+ {
657
+ "type": "text",
658
+ "text": "Next, we will discuss the same network applied to repeating unit cells. In all cases, the results for single unit cells are improvements over the results of multiple unit cells. For most figures, there are corresponding panels between the single unit cell and repeated cell results. ",
659
+ "bbox": [
660
+ 176,
661
+ 763,
662
+ 823,
663
+ 806
664
+ ],
665
+ "page_idx": 7
666
+ },
667
+ {
668
+ "type": "text",
669
+ "text": "4.3 ACCURACY ON REPEATING UNIT CELLS ",
670
+ "text_level": 1,
671
+ "bbox": [
672
+ 176,
673
+ 824,
674
+ 486,
675
+ 838
676
+ ],
677
+ "page_idx": 7
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "In Fig. S8C we show the percentiles of all pairwise minimum distances in our reconstructed samples. We find that $50 \\%$ of all reconstructed atoms are in $0 . 2 \\mathring \\mathrm { A }$ . For both directions, the $7 5 ^ { \\mathrm { t h } }$ percentile error was under $0 . 2 5 \\mathring { \\mathrm { A } }$ and the $9 0 ^ { \\mathrm { t h } }$ percentile of reconstructed atoms were within $0 . 5 \\mathring \\mathrm { \\mathrm { A } }$ . For predicted atoms that are within $0 . 5 \\mathring \\mathrm { \\mathrm { A } }$ of a true atom’s location, we find that $6 5 . 4 \\%$ of the time our prediction matches the atomic number exactly Fig. S8E. Again, nearly all errors occur near the boundary. ",
682
+ "bbox": [
683
+ 174,
684
+ 849,
685
+ 825,
686
+ 924
687
+ ],
688
+ "page_idx": 7
689
+ },
690
+ {
691
+ "type": "image",
692
+ "img_path": "images/400aaa0bcf44c5422a69c5d6e8694c2f1e369a14faa43f642b44c960c6403cd4.jpg",
693
+ "image_caption": [
694
+ "Figure 5: Decode random latent space vectors. (A) We look at the spacing between nearest atoms from random draws from the latent space compared to those from real crystal structures. In blue we show the distribution of random reconstructions. In red we show the distribution of true inter-atomic spacing. (B) For 5 different random latent space vectors, we show the reconstructed density field and the resulting segmentation. Notice that in some cases small amounts of density are predicted but are not segmented into an atom (for example, in columns 3 and 4). "
695
+ ],
696
+ "image_footnote": [],
697
+ "bbox": [
698
+ 196,
699
+ 107,
700
+ 799,
701
+ 367
702
+ ],
703
+ "page_idx": 8
704
+ },
705
+ {
706
+ "type": "text",
707
+ "text": "For 120 randomly selected reconstructed crystals from the test set, we compare the number of atoms after segmentation with the true number (Fig. S8D and Fig. 3B). In Fig. S8E we compare the predicted species compared with the species of the nearest true atom, independent of the distance to the nearest atom. We find that based on the results of Fig. S8, our current model is able to more accurately reconstruct the locations of atoms than obtain their true atomic number. This makes sense, given the enormous number of possible classes. However for repeating unit cells, when an atom is correctly predicted to be within $0 . 3 3 \\mathring { \\mathrm { A } }$ of a true atom location nearly $70 \\%$ of the time the atom is assigned exactly the correct $Z$ value. The correlation between the true and predicted value is 0.98 suggesting that when the network makes an incorrect assessment, it chooses a nearby atomic number. ",
708
+ "bbox": [
709
+ 174,
710
+ 483,
711
+ 825,
712
+ 609
713
+ ],
714
+ "page_idx": 8
715
+ },
716
+ {
717
+ "type": "text",
718
+ "text": "Further improvements in this placement and identification of atoms is necessary in achieving crystals that will appropriately relax in a DFT simulation for the calculation of quantum mechanical properties. However, a very exciting immediate application of this work is in random structure searching Pickard & Needs (2011). ",
719
+ "bbox": [
720
+ 174,
721
+ 616,
722
+ 825,
723
+ 672
724
+ ],
725
+ "page_idx": 8
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "4.4 LATENT SPACE INTERPOLATION ",
730
+ "text_level": 1,
731
+ "bbox": [
732
+ 176,
733
+ 690,
734
+ 436,
735
+ 704
736
+ ],
737
+ "page_idx": 8
738
+ },
739
+ {
740
+ "type": "text",
741
+ "text": "We encode two different true density maps into vectors $\\mathbf { z } _ { 1 }$ and $\\mathbf { z } _ { 2 }$ , respectively. We then linearly interpolate between these two values in latent space, constructing intermediate vectors $\\tilde { \\mathbf { z } } _ { i }$ . We decode the resulting latent space vectors which result in predicted density maps, $D ( \\tilde { \\mathbf { z } } )$ . Passing these into the trained segmentation routine, we find that intermediate results segment into atoms (see results on a single unit cell in Fig. 3 and Fig. 4). See results on a repeating lattice in Figs. S9 and S11)1. ",
742
+ "bbox": [
743
+ 174,
744
+ 717,
745
+ 825,
746
+ 786
747
+ ],
748
+ "page_idx": 8
749
+ },
750
+ {
751
+ "type": "text",
752
+ "text": "4.5 RANDOM DRAWS ",
753
+ "text_level": 1,
754
+ "bbox": [
755
+ 176,
756
+ 803,
757
+ 336,
758
+ 818
759
+ ],
760
+ "page_idx": 8
761
+ },
762
+ {
763
+ "type": "text",
764
+ "text": "We can randomly sample a latent space vector $\\mathbf { z } \\sim \\mathcal { N } ( 0 , 1 )$ and we then decode the output. We do this for both single unit cells as well as for repeating lattices (see Appendix). Random structure searching is an important area of material science research an exciting direction for this work Pickard & Needs (2011). Using the network trained to encode and decode single unit cells, we decode a $\\mathbf { z } \\sim \\mathcal { N } ( 0 , 1 )$ . ",
765
+ "bbox": [
766
+ 174,
767
+ 829,
768
+ 825,
769
+ 886
770
+ ],
771
+ "page_idx": 8
772
+ },
773
+ {
774
+ "type": "text",
775
+ "text": "In Fig. 5 we show the decoded density fields along with the resulting segmented output. There are a few desirable features: single cells are centered, atoms tend to be of similar atomic number, even in different parts of the reconstructed output, and atoms are not ever too close together. ",
776
+ "bbox": [
777
+ 173,
778
+ 103,
779
+ 823,
780
+ 146
781
+ ],
782
+ "page_idx": 9
783
+ },
784
+ {
785
+ "type": "text",
786
+ "text": "5 CONCLUSIONS AND FUTURE WORK ",
787
+ "text_level": 1,
788
+ "bbox": [
789
+ 174,
790
+ 166,
791
+ 504,
792
+ 183
793
+ ],
794
+ "page_idx": 9
795
+ },
796
+ {
797
+ "type": "text",
798
+ "text": "The ability to encode and decode 3-D structures is a very interesting direction of recent work and increasingly important in helping create models that can understand the world that we live in. In current material design, a lot of focus has been on molecules where the 3-D structure can be safely ignored. However, in many cases this is not the case. We do not know of an effective data representation for these 3-D molecules and find that by directly utilizing a proxy for density we are able to encode and decode the geometry of these molecules. ",
799
+ "bbox": [
800
+ 174,
801
+ 198,
802
+ 825,
803
+ 281
804
+ ],
805
+ "page_idx": 9
806
+ },
807
+ {
808
+ "type": "text",
809
+ "text": "An important future direction of research is to come up with successful representations for encoding crystal structures such that they can be easily encoded and decoded. Coming up with a representation of crystal unit cells (and 3-D structures in general) so that decoded molecules are physically plausible is an important aspect that needs to be carefully considered. ",
810
+ "bbox": [
811
+ 174,
812
+ 289,
813
+ 823,
814
+ 344
815
+ ],
816
+ "page_idx": 9
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Our approach is currently unable to generate molecules that are physically stable, but there are promising directions in this direction. Using ideas similar to G-SchNet, using the decoded density field, atoms can be placed sequentially, conditioned on the placement of previous atoms (Gebauer et al., 2019). Working towards decoding molecules that are able to relax is a very exciting direction. ",
821
+ "bbox": [
822
+ 176,
823
+ 352,
824
+ 825,
825
+ 407
826
+ ],
827
+ "page_idx": 9
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "Another improvement would be to alter the structure of our encoder/decoder. Currently, we use standard 3-D convolutions. However, using SE(3) equivariant kernels from M. Weiler et al. is a promising direction for improved performance (Weiler et al., 2018). We feel that our current approach could be extended beyond the domain of material science, as we are able to encode a 3-D distance map, this approach could be broadly applied to many objects. In essence, we are able to learn a distance transform from an object. This is more general than for encoding and decoding atomic structures. To try to facilitate further research in the creation of 3-D representation of more complex atomic structures, we will release the code shortly. ",
832
+ "bbox": [
833
+ 174,
834
+ 415,
835
+ 825,
836
+ 526
837
+ ],
838
+ "page_idx": 9
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "REFERENCES ",
843
+ "text_level": 1,
844
+ "bbox": [
845
+ 174,
846
+ 547,
847
+ 285,
848
+ 563
849
+ ],
850
+ "page_idx": 9
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Panos Achlioptas, Olga Diamanti, Ioannis Mitliagkas, and Leonidas Guibas. Learning representations and generative models for 3d point clouds. arXiv preprint arXiv:1707.02392, 2017. ",
855
+ "bbox": [
856
+ 174,
857
+ 570,
858
+ 823,
859
+ 599
860
+ ],
861
+ "page_idx": 9
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "Zaccary Alperstein, Artem Cherkasov, and Jason Tyler Rolfe. All smiles variational autoencoder, 2019. ",
866
+ "bbox": [
867
+ 173,
868
+ 608,
869
+ 823,
870
+ 637
871
+ ],
872
+ "page_idx": 9
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Rim Assouel, Mohamed Ahmed, Marwin H Segler, Amir Saffari, and Yoshua Bengio. Defactor: Differentiable edge factorization-based probabilistic graph generation. arXiv preprint arXiv:1811.09766, 2018. ",
877
+ "bbox": [
878
+ 173,
879
+ 647,
880
+ 823,
881
+ 689
882
+ ],
883
+ "page_idx": 9
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "Andrew Brock, Theodore Lim, James M Ritchie, and Nick Weston. Generative and discriminative voxel modeling with convolutional neural networks. arXiv preprint arXiv:1608.04236, 2016. ",
888
+ "bbox": [
889
+ 173,
890
+ 699,
891
+ 823,
892
+ 729
893
+ ],
894
+ "page_idx": 9
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "Andrew Brock, Jeff Donahue, and Karen Simonyan. Large scale gan training for high fidelity natural image synthesis. arXiv preprint arXiv:1809.11096, 2018. ",
899
+ "bbox": [
900
+ 173,
901
+ 738,
902
+ 821,
903
+ 767
904
+ ],
905
+ "page_idx": 9
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "Chi Chen, Weike Ye, Yunxing Zuo, Chen Zheng, and Shyue Ping Ong. Graph networks as a universal machine learning framework for molecules and crystals. Chemistry of Materials, 31(9):3564–3572, 2019. ",
910
+ "bbox": [
911
+ 176,
912
+ 776,
913
+ 823,
914
+ 819
915
+ ],
916
+ "page_idx": 9
917
+ },
918
+ {
919
+ "type": "text",
920
+ "text": "Ricky TQ Chen, Xuechen Li, Roger Grosse, and David Duvenaud. Isolating sources of disentanglement in vaes. ",
921
+ "bbox": [
922
+ 171,
923
+ 829,
924
+ 825,
925
+ 858
926
+ ],
927
+ "page_idx": 9
928
+ },
929
+ {
930
+ "type": "text",
931
+ "text": "Xi Chen, Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. InfoGAN: Interpretable representation learning by information maximizing generative adversarial nets. In D. D. Lee, U. V. Luxburg, I. Guyon, and R. Garnett (eds.), Advances In Neural Information Processing Systems 29, pp. 2172–2180. Curran Associates, Inc., 2016. ",
932
+ "bbox": [
933
+ 176,
934
+ 867,
935
+ 825,
936
+ 924
937
+ ],
938
+ "page_idx": 9
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "Özgün Çiçek, Ahmed Abdulkadir, Soeren S Lienkamp, Thomas Brox, and Olaf Ronneberger. 3d u-net: learning dense volumetric segmentation from sparse annotation. In International conference on medical image computing and computer-assisted intervention, pp. 424–432. Springer, 2016. ",
943
+ "bbox": [
944
+ 176,
945
+ 103,
946
+ 823,
947
+ 146
948
+ ],
949
+ "page_idx": 10
950
+ },
951
+ {
952
+ "type": "text",
953
+ "text": "Ekin D Cubuk, Austin D Sendek, and Evan J Reed. Screening billions of candidates for solid lithium-ion conductors: A transfer learning approach for small data. The Journal of chemical physics, 150(21):214701, 2019. ",
954
+ "bbox": [
955
+ 174,
956
+ 156,
957
+ 825,
958
+ 199
959
+ ],
960
+ "page_idx": 10
961
+ },
962
+ {
963
+ "type": "text",
964
+ "text": "Niklas WA Gebauer, Michael Gastegger, and Kristof T Schütt. Symmetry-adapted generation of 3d point sets for the targeted discovery of molecules. arXiv preprint arXiv:1906.00957, 2019. ",
965
+ "bbox": [
966
+ 173,
967
+ 209,
968
+ 823,
969
+ 238
970
+ ],
971
+ "page_idx": 10
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Rafael Gómez-Bombarelli, Jennifer N Wei, David Duvenaud, José Miguel Hernández-Lobato, Benjamín Sánchez-Lengeling, Dennis Sheberla, Jorge Aguilera-Iparraguirre, Timothy D Hirzel, Ryan P Adams, and Alán Aspuru-Guzik. Automatic chemical design using a data-driven continuous representation of molecules. ACS central science, 4(2):268–276, 2018. ",
976
+ "bbox": [
977
+ 173,
978
+ 247,
979
+ 826,
980
+ 305
981
+ ],
982
+ "page_idx": 10
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in neural information processing systems, pp. 2672–2680, 2014. ",
987
+ "bbox": [
988
+ 174,
989
+ 314,
990
+ 825,
991
+ 358
992
+ ],
993
+ "page_idx": 10
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Irina Higgins, Loic Matthey, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. ICLR, 2(5):6, 2017. ",
998
+ "bbox": [
999
+ 173,
1000
+ 367,
1001
+ 826,
1002
+ 411
1003
+ ],
1004
+ "page_idx": 10
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Moritz Hoffmann and Frank Noé. Generating valid euclidean distance matrices, 2019. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 421,
1012
+ 738,
1013
+ 436
1014
+ ],
1015
+ "page_idx": 10
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 446,
1023
+ 826,
1024
+ 476
1025
+ ],
1026
+ "page_idx": 10
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "John J Irwin, Teague Sterling, Michael M Mysinger, Erin S Bolstad, and Ryan G Coleman. Zinc: a free tool to discover chemistry for biology. Journal of chemical information and modeling, 52(7): 1757–1768, 2012. ",
1031
+ "bbox": [
1032
+ 174,
1033
+ 484,
1034
+ 826,
1035
+ 527
1036
+ ],
1037
+ "page_idx": 10
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "Anubhav Jain, Shyue Ping Ong, Geoffroy Hautier, Wei Chen, William Davidson Richards, Stephen Dacek, Shreyas Cholia, Dan Gunter, David Skinner, Gerbrand Ceder, et al. Commentary: The materials project: A materials genome approach to accelerating materials innovation. Apl Materials, 1(1):011002, 2013. ",
1042
+ "bbox": [
1043
+ 176,
1044
+ 537,
1045
+ 826,
1046
+ 594
1047
+ ],
1048
+ "page_idx": 10
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Wengong Jin, Regina Barzilay, and Tommi Jaakkola. Junction tree variational autoencoder for molecular graph generation. arXiv preprint arXiv:1802.04364, 2018. ",
1053
+ "bbox": [
1054
+ 171,
1055
+ 604,
1056
+ 825,
1057
+ 633
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Hyunjik Kim and Andriy Mnih. Disentangling by factorising. arXiv preprint arXiv:1802.05983, 2018. ",
1064
+ "bbox": [
1065
+ 171,
1066
+ 643,
1067
+ 825,
1068
+ 672
1069
+ ],
1070
+ "page_idx": 10
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Taeksoo Kim, Moonsu Cha, Hyunsoo Kim, Jung Kwon Lee, and Jiwon Kim. Learning to discover cross-domain relations with generative adversarial networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1857–1865. JMLR. org, 2017. ",
1075
+ "bbox": [
1076
+ 174,
1077
+ 683,
1078
+ 826,
1079
+ 727
1080
+ ],
1081
+ "page_idx": 10
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1086
+ "bbox": [
1087
+ 173,
1088
+ 736,
1089
+ 823,
1090
+ 765
1091
+ ],
1092
+ "page_idx": 10
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Diederik P Kingma and Max Welling. Auto-encoding variational bayes. arXiv preprint arXiv:1312.6114, 2013. ",
1097
+ "bbox": [
1098
+ 171,
1099
+ 775,
1100
+ 825,
1101
+ 804
1102
+ ],
1103
+ "page_idx": 10
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Matt J Kusner, Brooks Paige, and José Miguel Hernández-Lobato. Grammar variational autoencoder. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1945– 1954. JMLR.org, 2017. ",
1108
+ "bbox": [
1109
+ 173,
1110
+ 814,
1111
+ 826,
1112
+ 857
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "Clare F Macrae, Ian J Bruno, James A Chisholm, Paul R Edgington, Patrick McCabe, Elna Pidcock, Lucia Rodriguez-Monge, Robin Taylor, J van de Streek, and Peter A Wood. Mercury csd 2.0– new features for the visualization and investigation of crystal structures. Journal of Applied Crystallography, 41(2):466–470, 2008. ",
1119
+ "bbox": [
1120
+ 174,
1121
+ 867,
1122
+ 826,
1123
+ 922
1124
+ ],
1125
+ "page_idx": 10
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Kaushalya Madhawa, Katushiko Ishiguro, Kosuke Nakago, and Motoki Abe. Graphnvp: An invertible flow model for generating molecular graphs. arXiv preprint arXiv:1905.11600, 2019. ",
1130
+ "bbox": [
1131
+ 173,
1132
+ 103,
1133
+ 823,
1134
+ 132
1135
+ ],
1136
+ "page_idx": 11
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Elman Mansimov, Omar Mahmood, Seokho Kang, and Kyunghyun Cho. Molecular geometry prediction using a deep generative graph neural network. arXiv preprint arXiv:1904.00314, 2019. ",
1141
+ "bbox": [
1142
+ 171,
1143
+ 141,
1144
+ 825,
1145
+ 171
1146
+ ],
1147
+ "page_idx": 11
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Daniel Maturana and Sebastian Scherer. Voxnet: A 3d convolutional neural network for real-time object recognition. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pp. 922–928. IEEE, 2015. ",
1152
+ "bbox": [
1153
+ 178,
1154
+ 179,
1155
+ 823,
1156
+ 223
1157
+ ],
1158
+ "page_idx": 11
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Hsien-Yu Meng, Lin Gao, Yu-Kun Lai, and Dinesh Manocha. Vv-net: Voxel vae net with group convolutions for point cloud segmentation. In Proceedings of the IEEE International Conference on Computer Vision, pp. 8500–8508, 2019. ",
1163
+ "bbox": [
1164
+ 173,
1165
+ 231,
1166
+ 826,
1167
+ 275
1168
+ ],
1169
+ "page_idx": 11
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Thu Nguyen-Phuoc, Chuan Li, Lucas Theis, Christian Richardt, and Yong-Liang Yang. Hologan: Unsupervised learning of 3d representations from natural images. arXiv preprint arXiv:1904.01326, 2019. ",
1174
+ "bbox": [
1175
+ 174,
1176
+ 284,
1177
+ 826,
1178
+ 327
1179
+ ],
1180
+ "page_idx": 11
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Guangda Niu, Xudong Guo, and Liduo Wang. Review of recent progress in chemical stability of perovskite solar cells. Journal of Materials Chemistry A, 3(17):8970–8980, 2015. ",
1185
+ "bbox": [
1186
+ 173,
1187
+ 335,
1188
+ 823,
1189
+ 366
1190
+ ],
1191
+ "page_idx": 11
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Asma Nouira, Jean-Claude Crivello, and Nataliya Sokolovska. Crystalgan: Learning to discover crystallographic structures with generative adversarial networks. arXiv preprint arXiv:1810.11203, 2018. ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 373,
1199
+ 826,
1200
+ 416
1201
+ ],
1202
+ "page_idx": 11
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Augustus Odena, Vincent Dumoulin, and Chris Olah. Deconvolution and checkerboard artifacts. Distill, 2016. doi: 10.23915/distill.00003. URL http://distill.pub/2016/ deconv-checkerboard. ",
1207
+ "bbox": [
1208
+ 174,
1209
+ 426,
1210
+ 823,
1211
+ 469
1212
+ ],
1213
+ "page_idx": 11
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Ozan Oktay, Jo Schlemper, Loic Le Folgoc, Matthew Lee, Mattias Heinrich, Kazunari Misawa, Kensaku Mori, Steven McDonagh, Nils Y Hammerla, Bernhard Kainz, et al. Attention u-net: Learning where to look for the pancreas. arXiv preprint arXiv:1804.03999, 2018. ",
1218
+ "bbox": [
1219
+ 178,
1220
+ 478,
1221
+ 823,
1222
+ 522
1223
+ ],
1224
+ "page_idx": 11
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Shyue Ping Ong, William Davidson Richards, Anubhav Jain, Geoffroy Hautier, Michael Kocher, Shreyas Cholia, Dan Gunter, Vincent L Chevrier, Kristin A Persson, and Gerbrand Ceder. Python materials genomics (pymatgen): A robust, open-source python library for materials analysis. Computational Materials Science, 68:314–319, 2013. ",
1229
+ "bbox": [
1230
+ 174,
1231
+ 530,
1232
+ 826,
1233
+ 587
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. ",
1240
+ "bbox": [
1241
+ 174,
1242
+ 597,
1243
+ 826,
1244
+ 638
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Chris J Pickard and RJ Needs. Ab initio random structure searching. Journal of Physics: Condensed Matter, 23(5):053201, 2011. ",
1251
+ "bbox": [
1252
+ 173,
1253
+ 648,
1254
+ 825,
1255
+ 678
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Pavel G Polishchuk, Timur I Madzhidov, and Alexandre Varnek. Estimation of the size of drug-like chemical space based on gdb-17 data. Journal of computer-aided molecular design, 27(8):675–679, 2013. ",
1262
+ "bbox": [
1263
+ 173,
1264
+ 686,
1265
+ 826,
1266
+ 729
1267
+ ],
1268
+ "page_idx": 11
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "Raghunathan Ramakrishnan, Pavlo O Dral, Matthias Rupp, and O Anatole Von Lilienfeld. Quantum chemistry structures and properties of 134 kilo molecules. Scientific data, 1:140022, 2014. ",
1273
+ "bbox": [
1274
+ 169,
1275
+ 738,
1276
+ 823,
1277
+ 768
1278
+ ],
1279
+ "page_idx": 11
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Ali Razavi, Aaron van den Oord, and Oriol Vinyals. Generating diverse high-fidelity images with vq-vae-2. arXiv preprint arXiv:1906.00446, 2019. ",
1284
+ "bbox": [
1285
+ 171,
1286
+ 776,
1287
+ 825,
1288
+ 806
1289
+ ],
1290
+ "page_idx": 11
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "David Rolnick, Priya L Donti, Lynn H Kaack, Kelly Kochanski, Alexandre Lacoste, Kris Sankaran, Andrew Slavin Ross, Nikola Milojevic-Dupont, Natasha Jaques, Anna Waldman-Brown, et al. Tackling climate change with machine learning. arXiv preprint arXiv:1906.05433, 2019. ",
1295
+ "bbox": [
1296
+ 174,
1297
+ 814,
1298
+ 826,
1299
+ 858
1300
+ ],
1301
+ "page_idx": 11
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "O. Ronneberger, P.Fischer, and T. Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention (MICCAI), volume 9351 of LNCS, pp. 234–241. Springer, 2015. URL http://lmb.informatik.uni-freiburg. de/Publications/2015/RFB15a. (available on arXiv:1505.04597 [cs.CV]). ",
1306
+ "bbox": [
1307
+ 174,
1308
+ 867,
1309
+ 826,
1310
+ 924
1311
+ ],
1312
+ "page_idx": 11
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Kristof T Schütt, Huziel E Sauceda, P-J Kindermans, Alexandre Tkatchenko, and K-R Müller. Schnet–a deep learning architecture for molecules and materials. The Journal of Chemical Physics, 148(24):241722, 2018. ",
1317
+ "bbox": [
1318
+ 174,
1319
+ 103,
1320
+ 825,
1321
+ 146
1322
+ ],
1323
+ "page_idx": 12
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Daniel Schwalbe-Koda and Rafael Gómez-Bombarelli. Generative models for automatic chemical design. arXiv preprint arXiv:1907.01632, 2019. ",
1328
+ "bbox": [
1329
+ 173,
1330
+ 155,
1331
+ 825,
1332
+ 184
1333
+ ],
1334
+ "page_idx": 12
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "Marwin HS Segler, Thierry Kogej, Christian Tyrchan, and Mark P Waller. Generating focused molecule libraries for drug discovery with recurrent neural networks. ACS central science, 4(1): 120–131, 2017. ",
1339
+ "bbox": [
1340
+ 173,
1341
+ 193,
1342
+ 825,
1343
+ 234
1344
+ ],
1345
+ "page_idx": 12
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Kihyuk Sohn, Honglak Lee, and Xinchen Yan. Learning structured output representation using deep conditional generative models. In Advances in neural information processing systems, pp. 3483–3491, 2015. ",
1350
+ "bbox": [
1351
+ 173,
1352
+ 244,
1353
+ 826,
1354
+ 286
1355
+ ],
1356
+ "page_idx": 12
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "Daniel P Tabor, Loïc M Roch, Semion K Saikin, Christoph Kreisbeck, Dennis Sheberla, Joseph H Montoya, Shyam Dwaraknath, Muratahan Aykol, Carlos Ortiz, Hermann Tribukait, et al. Accelerating the discovery of materials for clean energy in the era of smart automation. Nature Reviews Materials, 3(5):5, 2018. ",
1361
+ "bbox": [
1362
+ 173,
1363
+ 295,
1364
+ 826,
1365
+ 352
1366
+ ],
1367
+ "page_idx": 12
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "Diego Valsesia, Giulia Fracastoro, and Enrico Magli. Learning localized generative models for 3d point clouds via graph convolution. 2018. ",
1372
+ "bbox": [
1373
+ 173,
1374
+ 361,
1375
+ 823,
1376
+ 390
1377
+ ],
1378
+ "page_idx": 12
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "Maurice Weiler, Mario Geiger, Max Welling, Wouter Boomsma, and Taco Cohen. 3d steerable cnns: Learning rotationally equivariant features in volumetric data. In Advances in Neural Information Processing Systems, pp. 10381–10392, 2018. ",
1383
+ "bbox": [
1384
+ 173,
1385
+ 398,
1386
+ 826,
1387
+ 441
1388
+ ],
1389
+ "page_idx": 12
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "David Weininger. Smiles, a chemical language and information system. 1. introduction to methodology and encoding rules. Journal of chemical information and computer sciences, 28(1):31–36, 1988. ",
1394
+ "bbox": [
1395
+ 174,
1396
+ 450,
1397
+ 823,
1398
+ 492
1399
+ ],
1400
+ "page_idx": 12
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "Jiajun Wu, Chengkai Zhang, Tianfan Xue, William T Freeman, and Joshua B Tenenbaum. Learning a probabilistic latent space of object shapes via 3d generative-adversarial modeling. In Advances in Neural Information Processing Systems, pp. 82–90, 2016. ",
1405
+ "bbox": [
1406
+ 176,
1407
+ 501,
1408
+ 823,
1409
+ 545
1410
+ ],
1411
+ "page_idx": 12
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "Wenxuan Wu, Zhongang Qi, and Li Fuxin. Pointconv: Deep convolutional networks on 3d point clouds, 2018. ",
1416
+ "bbox": [
1417
+ 173,
1418
+ 553,
1419
+ 825,
1420
+ 583
1421
+ ],
1422
+ "page_idx": 12
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Tian Xie and Jeffrey C Grossman. Crystal graph convolutional neural networks for an accurate and interpretable prediction of material properties. Physical review letters, 120(14):145301, 2018. ",
1427
+ "bbox": [
1428
+ 171,
1429
+ 592,
1430
+ 823,
1431
+ 621
1432
+ ],
1433
+ "page_idx": 12
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "Guandao Yang, Xun Huang, Zekun Hao, Ming-Yu Liu, Serge Belongie, and Bharath Hariharan. Pointflow: 3d point cloud generation with continuous normalizing flows. arXiv preprint arXiv:1906.12320, 2019. ",
1438
+ "bbox": [
1439
+ 174,
1440
+ 628,
1441
+ 823,
1442
+ 671
1443
+ ],
1444
+ "page_idx": 12
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "Xiufeng Yang, Jinzhe Zhang, Kazuki Yoshizoe, Kei Terayama, and Koji Tsuda. Chemts: an efficient python library for de novo molecular generation. Science and technology of advanced materials, 18(1):972–976, 2017. ",
1449
+ "bbox": [
1450
+ 171,
1451
+ 680,
1452
+ 825,
1453
+ 723
1454
+ ],
1455
+ "page_idx": 12
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "Jiaxuan You, Bowen Liu, Zhitao Ying, Vijay Pande, and Jure Leskovec. Graph convolutional policy network for goal-directed molecular graph generation. In Advances in Neural Information Processing Systems, pp. 6410–6421, 2018. ",
1460
+ "bbox": [
1461
+ 173,
1462
+ 732,
1463
+ 826,
1464
+ 775
1465
+ ],
1466
+ "page_idx": 12
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Jun-Yan Zhu, Zhoutong Zhang, Chengkai Zhang, Jiajun Wu, Antonio Torralba, Josh Tenenbaum, and Bill Freeman. Visual object networks: image generation with disentangled 3d representations. In Advances in Neural Information Processing Systems, pp. 118–129, 2018. ",
1471
+ "bbox": [
1472
+ 174,
1473
+ 784,
1474
+ 825,
1475
+ 827
1476
+ ],
1477
+ "page_idx": 12
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "A SUPPLEMENTAL INFORMATION ",
1482
+ "text_level": 1,
1483
+ "bbox": [
1484
+ 178,
1485
+ 102,
1486
+ 467,
1487
+ 118
1488
+ ],
1489
+ "page_idx": 13
1490
+ },
1491
+ {
1492
+ "type": "text",
1493
+ "text": "A.1 VIDEOS ",
1494
+ "bbox": [
1495
+ 176,
1496
+ 133,
1497
+ 274,
1498
+ 148
1499
+ ],
1500
+ "page_idx": 13
1501
+ },
1502
+ {
1503
+ "type": "text",
1504
+ "text": "See anonymoized project site at: https://sites.google.com/view/ encode-decode-3d-crystals/home. ",
1505
+ "bbox": [
1506
+ 173,
1507
+ 160,
1508
+ 825,
1509
+ 189
1510
+ ],
1511
+ "page_idx": 13
1512
+ },
1513
+ {
1514
+ "type": "text",
1515
+ "text": "B CHOICE OF DATA REPRESENTATION ",
1516
+ "text_level": 1,
1517
+ "bbox": [
1518
+ 174,
1519
+ 209,
1520
+ 508,
1521
+ 226
1522
+ ],
1523
+ "page_idx": 13
1524
+ },
1525
+ {
1526
+ "type": "text",
1527
+ "text": "We choose to use a 10 Angstrom cutoff as it kept over $90 \\%$ of the data we had available without becoming too computationally demanding, as we needed to maintain a relatively small grid spacing between voxels (0.33 Angstrom). Because the problem is 3-D, a $3 0 ^ { 3 }$ input is equivalent to a $1 6 4 \\times$ 164 image, in terms of pixels. ",
1528
+ "bbox": [
1529
+ 174,
1530
+ 241,
1531
+ 825,
1532
+ 297
1533
+ ],
1534
+ "page_idx": 13
1535
+ },
1536
+ {
1537
+ "type": "text",
1538
+ "text": "C COMPARISON OF 1-D, 2-D, AND 3-D REPRESENTATIONS ",
1539
+ "text_level": 1,
1540
+ "bbox": [
1541
+ 174,
1542
+ 318,
1543
+ 679,
1544
+ 335
1545
+ ],
1546
+ "page_idx": 13
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "text": "For small molecules, 1-D SMILES and 2-D graph based representations have been very effectively used for property prediction and for molecule generation tasks. In a SMILES representation, a specific grammar is learned but from a valid string, a specific molecule is generated based on the bond arrangement Weininger (1988); Gómez-Bombarelli et al. (2018). Similarly, a graph based representation is able to place atoms in space without specifically assigning each atom a specific coordinate Jin et al. (2018). Additionally, graph representations have been shown to be successful for property prediction of crystals Xie & Grossman (2018), but not for generating crystals. For small molecules, these representations have proved very effective, especially since both these representations effectively reduce the dimension of the problem. ",
1551
+ "bbox": [
1552
+ 174,
1553
+ 351,
1554
+ 825,
1555
+ 477
1556
+ ],
1557
+ "page_idx": 13
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "text": "Specifically, SMILES and graph representations both do not encode the specific spatial arrangement of atoms. Instead, these representations are cleverly created in such a way that the spatial arrangements can reconstructed. Unfortunately, for many larger molecules these representations are not sufficient. Therefore, we focus on developing a representation that is able to directly reconstruct both species and locations in a 3-D space. ",
1562
+ "bbox": [
1563
+ 174,
1564
+ 483,
1565
+ 825,
1566
+ 553
1567
+ ],
1568
+ "page_idx": 13
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "D SPECIES PREDICTION ",
1573
+ "text_level": 1,
1574
+ "bbox": [
1575
+ 174,
1576
+ 574,
1577
+ 390,
1578
+ 590
1579
+ ],
1580
+ "page_idx": 13
1581
+ },
1582
+ {
1583
+ "type": "text",
1584
+ "text": "Each voxel is assigned an identity based on the argmax of the U-Net. The background has label 0. First, we find all connected components of non-background voxels. For each connected component, we tabulate the species predicted at each voxel and each cluster is assigned an identity baased on the majority vote. The location is based on the centroid of the cluster. We experimented with more complicated procedures (such as weighting by the probability vector) and did not find a meaningful improvement. ",
1585
+ "bbox": [
1586
+ 174,
1587
+ 606,
1588
+ 825,
1589
+ 689
1590
+ ],
1591
+ "page_idx": 13
1592
+ },
1593
+ {
1594
+ "type": "text",
1595
+ "text": "E TRAINING DETAILS ",
1596
+ "text_level": 1,
1597
+ "bbox": [
1598
+ 176,
1599
+ 710,
1600
+ 372,
1601
+ 727
1602
+ ],
1603
+ "page_idx": 13
1604
+ },
1605
+ {
1606
+ "type": "text",
1607
+ "text": "We used a Tesla V100 for training. We used a learning rate of 1e-5 and a batch size of 24. ",
1608
+ "bbox": [
1609
+ 173,
1610
+ 743,
1611
+ 759,
1612
+ 757
1613
+ ],
1614
+ "page_idx": 13
1615
+ },
1616
+ {
1617
+ "type": "text",
1618
+ "text": "E.1 NETWORK DETAILS ",
1619
+ "text_level": 1,
1620
+ "bbox": [
1621
+ 174,
1622
+ 775,
1623
+ 354,
1624
+ 790
1625
+ ],
1626
+ "page_idx": 13
1627
+ },
1628
+ {
1629
+ "type": "text",
1630
+ "text": "E.1.1 ENCODER ",
1631
+ "text_level": 1,
1632
+ "bbox": [
1633
+ 174,
1634
+ 801,
1635
+ 299,
1636
+ 815
1637
+ ],
1638
+ "page_idx": 13
1639
+ },
1640
+ {
1641
+ "type": "text",
1642
+ "text": "3D convolution, kernel size of 5 and stride of 2. 16 channels. \nBatch Norm and LeakyReLU activation. \n3D convolution, kernel size of 3 and stride of 1. 32 channels. \nBatch Norm and LeakyReLU activation. \n3D convolution, kernel size of 3 and stride of 1. 64 channels. \nBatch Norm and LeakyReLU activation. \n3D convolution, kernel size of 3 and stride of 2. 128 channels. Batch Norm and LeakyReLU activation. \nFully connected layer with a bottleneck size 300. ",
1643
+ "bbox": [
1644
+ 176,
1645
+ 827,
1646
+ 580,
1647
+ 924
1648
+ ],
1649
+ "page_idx": 13
1650
+ },
1651
+ {
1652
+ "type": "text",
1653
+ "text": "",
1654
+ "bbox": [
1655
+ 174,
1656
+ 103,
1657
+ 495,
1658
+ 132
1659
+ ],
1660
+ "page_idx": 14
1661
+ },
1662
+ {
1663
+ "type": "text",
1664
+ "text": "E.1.2 DECODER ",
1665
+ "text_level": 1,
1666
+ "bbox": [
1667
+ 174,
1668
+ 147,
1669
+ 300,
1670
+ 162
1671
+ ],
1672
+ "page_idx": 14
1673
+ },
1674
+ {
1675
+ "type": "text",
1676
+ "text": "Fully connected layer. \nReshape to 128 5,5,5 Trlinear upsample by a factor of two. \nConv3D with 64 channels, kernel size of 5, leakyReLU. \nTrlinear upsample by a factor of two. \nConv3D with 32 channels, kernel size of 5, leakyReLU. \nTrlinear upsample by a factor of two. \nConv3D with 16 channels, kernel size of 4, leakyReLU. \nConv3D with 1 channels, kernel size of 4, ReLU. ",
1677
+ "bbox": [
1678
+ 173,
1679
+ 172,
1680
+ 540,
1681
+ 297
1682
+ ],
1683
+ "page_idx": 14
1684
+ },
1685
+ {
1686
+ "type": "text",
1687
+ "text": "F RESULTS FROM THE ENCODER-DECODER ",
1688
+ "text_level": 1,
1689
+ "bbox": [
1690
+ 174,
1691
+ 333,
1692
+ 552,
1693
+ 348
1694
+ ],
1695
+ "page_idx": 14
1696
+ },
1697
+ {
1698
+ "type": "text",
1699
+ "text": "Our encoder-decoder architecture is able to accurately reconstruct the voxel-wise density (Fig. S8A and Fig. S6). We find a strong correlation between the predicted and target voxel value (Fig. S6A). This is essential for achieving an accurate segmentation of the correct atoms and their corresponding positions. Due to the strong penalty on the KL term we find that there is an increased spread in the resulting predictions when attempting to encode and decode repeating unit cells. This is less of an issue when encoding and decoding single unit cells. ",
1700
+ "bbox": [
1701
+ 174,
1702
+ 364,
1703
+ 825,
1704
+ 449
1705
+ ],
1706
+ "page_idx": 14
1707
+ },
1708
+ {
1709
+ "type": "text",
1710
+ "text": "G ACCURACY OF RANDOM DRAWS IN A REPEATING LATTICE ",
1711
+ "text_level": 1,
1712
+ "bbox": [
1713
+ 176,
1714
+ 470,
1715
+ 691,
1716
+ 486
1717
+ ],
1718
+ "page_idx": 14
1719
+ },
1720
+ {
1721
+ "type": "text",
1722
+ "text": "To test whether random samples from the latent space, $\\tilde { \\mathbf { z } }$ , decode to physically realistic molecules, we trained a discriminator. We trained an auto-encoder that was able to very accurately reconstruct molecules by greatly reducing the penalty on $\\beta$ (see Fig. S12). Then, we compute real latent space representations of our different molecules, $\\mathbf { z }$ . We then draw a $\\lambda \\sim U ( 0 , 1 )$ and construct a new latent space vector ",
1723
+ "bbox": [
1724
+ 173,
1725
+ 501,
1726
+ 825,
1727
+ 570
1728
+ ],
1729
+ "page_idx": 14
1730
+ },
1731
+ {
1732
+ "type": "equation",
1733
+ "img_path": "images/151834d505016811fb0958a58e330ca522891b89e563924985fc086b3a89d85b.jpg",
1734
+ "text": "$$\n\\hat { \\mathbf { z } } = \\lambda \\widetilde { \\mathbf { z } } _ { \\mathcal { N } ( 0 , 1 ) } + ( 1 - \\lambda ) \\mathbf { z } _ { \\mathrm { r e a l } }\n$$",
1735
+ "text_format": "latex",
1736
+ "bbox": [
1737
+ 405,
1738
+ 570,
1739
+ 591,
1740
+ 589
1741
+ ],
1742
+ "page_idx": 14
1743
+ },
1744
+ {
1745
+ "type": "text",
1746
+ "text": "where $\\tilde { \\mathbf { z } }$ is a random sample from a unit normal and $\\mathbf { z } _ { \\mathrm { r e a l } }$ is a random “true” latent space. We pass this through the decoder and provide this a label $( 1 - \\lambda , \\lambda )$ . We then randomly draw $\\mathbf { z } \\sim \\mathcal { N } ( 0 , 1 )$ from our trained network and pass this reconstruction $\\tilde { D }$ into the discriminator network, which outputs a prediction of the distance from a true crystal reconstruction versus a random draw from a latent space of a previously trained network. Applying this network to random samples from $\\mathbf { z } \\sim \\mathcal { N } ( 0 , 1 )$ we get a mean value of 0.84 with a standard deviation of 0.05. For true decoded samples, we find a mean value of 0.90 with a standard deviation of 0.01. In Fig. S13, we show results of the trained network and predictions on three different datasets. We find that the target latent space decodes to high-scoring samples (see Fig. S13B) and that out of distribution samples typically decode to much lower scores. ",
1747
+ "bbox": [
1748
+ 173,
1749
+ 592,
1750
+ 825,
1751
+ 733
1752
+ ],
1753
+ "page_idx": 14
1754
+ },
1755
+ {
1756
+ "type": "text",
1757
+ "text": "G.1 CONDITIONAL VAE ",
1758
+ "text_level": 1,
1759
+ "bbox": [
1760
+ 176,
1761
+ 751,
1762
+ 356,
1763
+ 765
1764
+ ],
1765
+ "page_idx": 14
1766
+ },
1767
+ {
1768
+ "type": "text",
1769
+ "text": "Moving forward, an important step will be creating structures that have specific chemical properties. Moving towards this direction, we attempt to condition the generation of molecules on the largest species present (Sohn et al., 2015). To do this, we multiply the input and output of the bottleneck by the largest present density. By doing this, we are still able to get the network to train but find that we are able to control the magnitude of the resulting density field without perturbing the geometry (see Fig. S10B). We attempted to condition the encoder and decoder by concatenation though we found this was not sufficient to generate density fields with the desired property. ",
1770
+ "bbox": [
1771
+ 174,
1772
+ 776,
1773
+ 825,
1774
+ 875
1775
+ ],
1776
+ "page_idx": 14
1777
+ },
1778
+ {
1779
+ "type": "text",
1780
+ "text": "The ability to condition on specific properties has obvious applications in the targeted generation of molecules. In this case, we choose to condition on the largest present density as a way to generate molecules that do not have an atom with more than a specified maximum atomic number present. We find that by varying different parameters in the latent space, some vary the field in such a way that appears to correlate with the location of atoms (see Fig. S10C,D). However, unlike as in work on 2-D problems, the changes in the 3-D scalar field are much harder to interpret (Chen et al., 2016; Higgins et al., 2017). Future work will attempt to use improved factorizing techniques (Kim & Mnih, 2018; Chen et al.). Additionally, one could seek to condition the generation of single unit cells on quantum mechanical properties or by adding an auxiliary loss using the latent space to predict quantum mechanical properties. ",
1781
+ "bbox": [
1782
+ 176,
1783
+ 882,
1784
+ 823,
1785
+ 924
1786
+ ],
1787
+ "page_idx": 14
1788
+ },
1789
+ {
1790
+ "type": "image",
1791
+ "img_path": "images/be19653bcf2385458ab0ac12318d2df8c79a55720a0a35e8282bab936bc1eea6.jpg",
1792
+ "image_caption": [
1793
+ "Figure S6: Accuracy of Model. (A) For each position in 3-D space, we plot the predicted and target density for 4 different random crystals from the test set. The red dashed line is an identity line. (B) For each of the panels in (A), we show 4 different $z$ -slices through the true and predicted density fields. (C) We show the full 3-D reconstruction of the prediction and the true density field. "
1794
+ ],
1795
+ "image_footnote": [],
1796
+ "bbox": [
1797
+ 192,
1798
+ 104,
1799
+ 797,
1800
+ 530
1801
+ ],
1802
+ "page_idx": 15
1803
+ },
1804
+ {
1805
+ "type": "text",
1806
+ "text": "",
1807
+ "bbox": [
1808
+ 173,
1809
+ 632,
1810
+ 825,
1811
+ 731
1812
+ ],
1813
+ "page_idx": 15
1814
+ },
1815
+ {
1816
+ "type": "image",
1817
+ "img_path": "images/1b139b5b1107a8b870c8c2d3fdca120045256bd847635d211975a104fa2e11df.jpg",
1818
+ "image_caption": [
1819
+ "Figure S7: Random Decoded Samples. We randomly sample the latent space17 $z \\sim N ( 0 , 1 )$ . We show a series of examples (from three different views) of different complexity. Note that while symmetry is not preserved, various geometric motifs are. "
1820
+ ],
1821
+ "image_footnote": [],
1822
+ "bbox": [
1823
+ 192,
1824
+ 104,
1825
+ 792,
1826
+ 938
1827
+ ],
1828
+ "page_idx": 16
1829
+ },
1830
+ {
1831
+ "type": "image",
1832
+ "img_path": "images/2715fa0dbbb0eb4b2e3cfb3e172f54caa3891c68ab33d72ae7e72a19ccbc9435.jpg",
1833
+ "image_caption": [
1834
+ "Figure S8: Repeating unit cell accuracy. (A) For each position in 3-D space, we compute the difference between the truth and the reconstruction. We show different percentile bands of the reconstruction error between the target and predicted density, plotted using the mean square error (MSE). (B) For the species matrix from U-Net we ask what the error of top-1 predictions is between our predictions and the ground truth. (C) For our segmented matrices, we ask the distance from the nearest segmented atom to the ground truth. We show the distance errors by percentile for both the nearest true atom to each predicted atom and vice-versa (orange and blue, respectively). (D) After segmenting the reconstructed density maps we show the predicted and true number of atoms. (E) We plot the predicted nearest atom species versus the true species of the closest corresponding atom, as long as the distance is less than $0 . 5 \\mathring \\mathrm { \\mathrm { A } }$ . We find $6 5 . 4 \\%$ are correctly predicted. "
1835
+ ],
1836
+ "image_footnote": [],
1837
+ "bbox": [
1838
+ 196,
1839
+ 286,
1840
+ 805,
1841
+ 608
1842
+ ],
1843
+ "page_idx": 17
1844
+ },
1845
+ {
1846
+ "type": "image",
1847
+ "img_path": "images/fec1c70feef090b9665cce8067981581ca15dee97b8ce3a537cf76b0d6cb21e5.jpg",
1848
+ "image_caption": [
1849
+ "Figure S9: Interpolation between two molecules. In (A) we show the interpolation between two crystal density maps. We show three equally spaced intermediates the corresponding segmentation. In (B), we show the same interpolation but highlight different two dimensional slices (y-axis). Along the $\\mathbf { X }$ -axis we label the fraction of the way between the two latent space vectors. "
1850
+ ],
1851
+ "image_footnote": [],
1852
+ "bbox": [
1853
+ 191,
1854
+ 256,
1855
+ 805,
1856
+ 715
1857
+ ],
1858
+ "page_idx": 18
1859
+ },
1860
+ {
1861
+ "type": "image",
1862
+ "img_path": "images/0e74fa5ac1d8b18c6b8605a9ed9975dcf1137f638af2f6d2e30043233ec50c04.jpg",
1863
+ "image_caption": [
1864
+ "Figure S10: Conditional generation of molecules. We multiply the input and output of the bottleneck by the maximum density during training. Then, randomly decoding samples of $\\alpha \\mathbf { z }$ where $\\mathbf { z } \\sim \\mathcal { N } ( 0 , 1 )$ and $\\alpha$ is a random target, we find we are able to generate density maps that decode appropriately. If we take a true decoded value and re-scale the output we find we are able to control scale without affecting geometry. (A) We show the target and generated max value. (B) Using an encoded $\\mathbf { z }$ , we multiply it by different target values and decode them. We find that we are able to change scale without affecting the geometry. (C) We show a decoded sample. We cut away the right most corner facing the viewer. $\\mathbf { \\eta } ^ { ( \\mathbf { D } ) }$ For the molecule shown in (C), we show the results of varying one value in the latent space from -3 to 3. We plot the difference in the slice when compared the unaltered, decoded, $\\mathbf { z }$ for a slice that is in-plane with many atoms. "
1865
+ ],
1866
+ "image_footnote": [],
1867
+ "bbox": [
1868
+ 202,
1869
+ 287,
1870
+ 794,
1871
+ 604
1872
+ ],
1873
+ "page_idx": 19
1874
+ },
1875
+ {
1876
+ "type": "image",
1877
+ "img_path": "images/d41bbb33b763cb8f62862c4c5f2a3af9df0ae401a41a28355085dcaed57d5822.jpg",
1878
+ "image_caption": [
1879
+ "Figure S11: Interpolation between two molecules. From $i - v$ we show two views of the output from the segmentation routine decoding the latent space between two different molecules. In the primed corresponding figures we show the density fields that are output by the decoder. We show the output of each grid normalized between 0-1 in blue-green and on a fixed color map in magma. We also vary the opacity to show the locations of predicted atoms. "
1880
+ ],
1881
+ "image_footnote": [],
1882
+ "bbox": [
1883
+ 192,
1884
+ 290,
1885
+ 800,
1886
+ 659
1887
+ ],
1888
+ "page_idx": 20
1889
+ },
1890
+ {
1891
+ "type": "image",
1892
+ "img_path": "images/c65b020d6341425a2323154867c6b9dc320c173c64607cbc4760c5da8d95cc22.jpg",
1893
+ "image_caption": [
1894
+ "Figure S12: Results with smaller $\\beta$ . We decrease $\\beta$ by a factor of 10. By reducing the penalty on the KullbackLeibler (KL) term we are able to generate more accurate reconstructions. However, sampling $\\mathbf { z } \\sim \\mathcal { N } ( 0 , 1 )$ does not fully sample the encoded space of molecules. "
1895
+ ],
1896
+ "image_footnote": [],
1897
+ "bbox": [
1898
+ 200,
1899
+ 137,
1900
+ 799,
1901
+ 511
1902
+ ],
1903
+ "page_idx": 21
1904
+ },
1905
+ {
1906
+ "type": "image",
1907
+ "img_path": "images/74d7ac4d6d4a712619001bbfdab66d8b49e2b430271ef077a6324faf7e074e45.jpg",
1908
+ "image_caption": [
1909
+ "Figure S13: $\\lambda$ prediction for different samples. Using the network in Fig. S12 we train a discriminator network to predict the “distance” from a real crystal. We apply this discriminator to real decoded samples, random latent space draws, and out of distribution draws (right). "
1910
+ ],
1911
+ "image_footnote": [],
1912
+ "bbox": [
1913
+ 212,
1914
+ 648,
1915
+ 790,
1916
+ 828
1917
+ ],
1918
+ "page_idx": 21
1919
+ },
1920
+ {
1921
+ "type": "image",
1922
+ "img_path": "images/a2d4e3798b857c00e00b5ddc63e4aa7ddbf927b4e7ead002db0de8bb464bf04d.jpg",
1923
+ "image_caption": [
1924
+ "Figure S14: Decoded samples of repeating unit cells. Results from the encoder-decoder. "
1925
+ ],
1926
+ "image_footnote": [],
1927
+ "bbox": [
1928
+ 210,
1929
+ 151,
1930
+ 777,
1931
+ 439
1932
+ ],
1933
+ "page_idx": 22
1934
+ },
1935
+ {
1936
+ "type": "image",
1937
+ "img_path": "images/9e97401d7f06566be399ea91e6d0acb6ec429d04f7c6b3fff01713fa27acdf4f.jpg",
1938
+ "image_caption": [
1939
+ "Figure S15: Segmented Output from the decoded samples. The segmented output from Fig. S14. "
1940
+ ],
1941
+ "image_footnote": [],
1942
+ "bbox": [
1943
+ 214,
1944
+ 569,
1945
+ 790,
1946
+ 852
1947
+ ],
1948
+ "page_idx": 22
1949
+ }
1950
+ ]
parse/train/S1enmaVFvS/S1enmaVFvS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/S1enmaVFvS/S1enmaVFvS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ZBfUo_dr4H/ZBfUo_dr4H.md ADDED
@@ -0,0 +1,283 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DROID-SLAM: Deep Visual SLAM for Monocular, Stereo, and RGB-D Cameras
2
+
3
+ Zachary Teed Jia Deng Princeton University {zteed,jiadeng}@princeton.edu
4
+
5
+ # Abstract
6
+
7
+ We introduce DROID-SLAM, a new deep learning based SLAM system. DROIDSLAM consists of recurrent iterative updates of camera pose and pixelwise depth through a Dense Bundle Adjustment layer. DROID-SLAM is accurate, achieving large improvements over prior work, and robust, suffering from substantially fewer catastrophic failures. Despite training on monocular video, it can leverage stereo or RGB-D video to achieve improved performance at test time. The URL to our open source code is https://github.com/princeton-vl/DROID-SLAM.
8
+
9
+ # 1 Introduction
10
+
11
+ Simultaneous Localization and Mapping (SLAM) aims to (1) build a map of the environment and (2) localize the agent within the environment. It is a special form of Structure-from-Motion (SfM) focused on accurate tracking of long-term trajectories. It is a critical capability for robotics, especially autonomous vehicles. In this work, we address visual SLAM, where sensor recordings come in the form of images captured from a monocular, stereo, or RGB-D camera.
12
+
13
+ The SLAM problem has been approached from a number of different angles. Early work was built using probabilistic and filtering based approaches [12, 30], and alternating optimization of the map and camera poses [34, 16]. More recently, modern SLAM systems have leveraged least-squares optimization. A key element for accuracy has been full Bundle Adjustment (BA), which jointly optimizes the camera poses and the 3D map in a single optimization problem. One advantage of the optimization-based formulation is that a SLAM system can be easily modified to leverage different sensors. For example, ORB-SLAM3 [5] supports monocular, stereo, RGB-D, and IMU sensors, and modern systems can support a variety of camera models [5, 27, 42, 6]. Despite significant progress, current SLAM systems lack the robustness demanded for many real-world applications. Failures come in many forms, such as lost feature tracks, divergence in the optimization algorithm, and accumulation of drift.
14
+
15
+ Deep learning has been proposed as a solution to many of these failure cases. Previous work has investigated replacing hand-crafted with learned features[13, 7, 29, 26, 35], using neural 3D representations[46, 1, 9, 45, 44, 25, 22], and combining learned energy terms with classical optimization backends[58, 57]. Other work has tried to learn SLAM or VO systems end-to-end [59, 47, 53, 52, 46]. While these systems are sometimes more robust, they fall far short of the accuracy of their classical counterparts on common benchmarks.
16
+
17
+ In this work we introduce DROID-SLAM, a new SLAM system based on deep learning. It has state-of-the-art performance, outperforming existing SLAM systems, classical or learning-based, on challenging benchmarks with very large margins. In particular, it has the following advantages:
18
+
19
+ • High Accuracy: We achieve large improvements over prior work across multiple datasets and modalities. On the TartanAir SLAM competition [54], we reduce error by $62 \%$ over the best prior result on the monocular track and $60 \%$ on the stereo track. We rank 1st on the
20
+
21
+ ![](images/1d529559adf3b5ab64f169b618c0c5f063e97ffd80568a42cc8609f1348f8b79.jpg)
22
+ Figure 1: DROID-SLAM can operate on monocular, stereo, and RGB-D video. It builds a dense 3D map of the environment while simultaneously localizing the camera within the map.
23
+
24
+ ETH-3D RGB-D SLAM leaderboard [41], outperforming the second place by $3 5 \%$ under the AUC metric which considers both error and rate of catastrophic failure. On EuRoC [2], with monocular input, we reduce error by $82 \%$ among methods with zero failures, and by $43 \%$ over ORB-SLAM3 considering only the 10 out of 11 sequences it succeeds on. With stereo input, we reduce error by $71 \%$ over ORB-SLAM3. On TUM-RGBD [43], we reduce error by $83 \%$ among the methods with zero failures.
25
+
26
+ • High Robustness: We have substantially fewer catastrophic failures than prior systems. On ETH-3D, we successfully track 30 of the 32 RGB-D datasets, while the next best successfully tracks only 19/32. On TartanAir, EuRoC, and TUM-RGBD, we have zero failures.
27
+
28
+ • Strong Generalization: Our system, trained only with monocular input, can directly use stereo or RGB-D input to get improved accuracy without any retraining. All of our results across 4 datasets and 3 modalities are achieved by a single model, trained once with only monocular input entirely on the synthetic TartanAir dataset.
29
+
30
+ The strong performance and generalization of DROID-SLAM is made possible by its “Differentiable Recurrent Optimization-Inspired Design” (DROID), which is an end-to-end differentiable architecture that combines the strengths of both classical approaches and deep networks. Specifically, it consists of recurrent iterative updates, building upon RAFT [48] for optical flow but introducing two key innovations.
31
+
32
+ First, unlike RAFT, which iteratively updates optical flow, we iteratively update camera poses and depth. Whereas RAFT operates on two frames, our updates are applied to an arbitrary number of frames, enabling joint global refinement of all camera poses and depth maps, essential for minimizing drift for long trajectories and loop closures.
33
+
34
+ Second, each update of camera poses and depth maps in DROID-SLAM is produced by a differentiable Dense Bundle Adjustment (DBA) layer, which computes a Gauss-Newton update to camera poses and dense per-pixel depth so as to maximize their compatibility with the current estimate of optical flow. This DBA layer leverages geometric constraints, improves accuracy and robustness, and enables a monocular system to handle stereo or RGB-D input without retraining.
35
+
36
+ The design of DROID-SLAM is novel. The closest prior deep architectures are DeepV2D [47] and BA-Net [46], both of which were focused on depth estimation and reported limited SLAM results. DeepV2D alternates between updating depth and updating camera poses, instead of bundle adjustment. BA-Net has a bundle adjustment layer, but their layer is substantially different: it is not “dense” in that it optimizes over a small number of coefficients used to linearly combine a depth basis (a set of pre-predicted depth maps), whereas we optimize over per-pixel depth directly, without being handicapped by a depth basis. In addition, BA-Net optimizes photometric reprojection error (in feature space), whereas we optimize geometric error, leveraging state-of-the-art flow estimation.
37
+
38
+ We perform extensive evaluation across four different datasets and three different sensor modalities, demonstrating state-of-the-art performance in all cases. We also include ablation studies that shed light on important design decisions and hyperparameters.
39
+
40
+ # 2 Related Work
41
+
42
+ Modern SLAM systems treat localization and mapping as a joint optimization problem [4].
43
+
44
+ Visual SLAM focuses on observations in the form of monocular, stereo, or RGB-D images. These approaches are commonly categorized as either being direct or indirect [15]. Indirect approaches [31, 32, 5, 37] first process the image into an intermediate representation by detecting points of interest and attaching feature descriptors. Features are then matched between images. Indirect approaches optimize camera pose and a 3D point cloud by minimizing reprojection error–the distance between a projected 3D point and its location in the image.
45
+
46
+ Direct approaches model the image formation process and define an objective function over photometric error [16, 15, 60]. One advantage of direct approaches is that they can model more information about the image, such as lines and intensity variations[15] which are not used by indirect approaches. However, photometric errors typically lead to more difficult optimization problems, and direct approaches are less robust to geometric distortion such as rolling shutter artifacts. This approach requires more sophisticated optimization techniques, such as coarse-to-fine image pyramids to avoid local minimum.
47
+
48
+ Our method does not clearly fit into either of the categories. Like the direct approach, we do not require preprocessing steps to detect and match features between the images. We instead use the full image, allowing us to leverage a wider range of information than indirect methods with typically only use corners and edges. However, we minimize reprojection error similar to indirect methods. This is an easier optimization problem and avoids the need for more complicated representations such as image pyramids. In this sense, our approach borrows the best of both approaches: the smoother objective function of indirect approaches with the greater modeling capacity of indirect approaches.
49
+
50
+ Deep Learning has more recently been applied to the SLAM problem. Many works have focused on training systems for particular subproblems, such as feature detection [13, 7, 29, 26, 35], feature matching and outlier rejection [38, 36], and localization [51, 39]. SuperGlue [38] was designed to perform feature matching and verification and make 2-view pose estimate much more robust. Our network also draws inspiration from Dusmanu et al[14], which builds a neural network into the SfM pipeline to improve keypoint localization accuracy.
51
+
52
+ Other works have focused on training SLAM systems end-to-end [59, 46, 8, 50, 24, 47, 53]. These methods are not full SLAM systems, but instead focus on small scale reconstruction on the order of two [8, 50, 53] up to a dozen frames [59, 46, 47]. They lack many of the core capabilities of modern SLAM systems such as loop closure and global bundle adjustment which inhibit their ability to perform large scale reconstruction as demonstrated in our experiments. ∇SLAM[23] implements several existing SLAM algorithms as differentiable computation graphs, allowing for errors in the reconstruction to be backpropagated back to sensor measurements. While this approach is differentiable, it has no trainable parameters, meaning the performance of the system is limited by the accuracy of the classical algorithm they emulate.
53
+
54
+ DeepFactors[9] is the most complete deep SLAM system, building on the earlier CodeSLAM[1]. It performs joint optimization of the pose and depth variables, and is capable of short and long-range loop closure. Similar to BA-Net[46], DeepFactors optimizes the parameters of a learned depth basis during inference. In contrast, we do not rely on a learned basis, but instead optimize pixelwise depth. This allows our network to better generalize to new datasets since our depth representation is not tied to the training dataset.
55
+
56
+ # 3 Approach
57
+
58
+ We take a video as input with two objectives: estimate the trajectory of the camera and build a 3D map of the environment. We first describe the monocular setting; in Sec. 3.4 we describe how to generalize the system to stereo and RGB-D video.
59
+
60
+ Representation: Our network operates on an ordered collection of images, $\{ \mathbf { I } _ { t } \} _ { t = 0 } ^ { N }$ . For each image $t$ , we maintain two state variables: camera pose $\mathbf { G } _ { t } \in S E ( 3 )$ and inverse depth $\check { \mathbf { d } } _ { t } \in \mathbb { R } _ { + } ^ { H \times W }$ . The set of poses, $\{ \mathbf { G } _ { t } \} _ { t = 0 } ^ { N }$ , and set of inverse depths $\{ \mathbf { d } _ { t } \} _ { t = 0 } ^ { N }$ are unknown state variables, which get iteratively updated during inference as new frames are processed. For the reminder of the paper, when we refer to depths, note that we are using the inverse depth parameterization.
61
+
62
+ We adopt a frame-graph $( \nu , \mathcal { E } )$ to represent co-visibility between frames. An edge $( i , j ) \in \mathcal { E }$ means image $\mathbf { I } _ { i }$ and $\mathbf { I } _ { j }$ have overlapping fields of view which shared points. The frame graph is built dynamically during training and inference. After each pose or depth update, we can recompute visibility to update the frame graph. If the camera returns to a previously mapped region, we add long range connections in the graph to perform loop closure.
63
+
64
+ ![](images/304389c6e297fe3835b1aedd0e7a558a3c31abe26192a228e5a023886a7925d9.jpg)
65
+ Figure 2: Illustration of the update operator. The operator acts on edges in the frame graph, predicting flow revisions which are mapped to depth and pose update through the (DBA) layer.
66
+
67
+ # 3.1 Feature Extraction and Correlation
68
+
69
+ Features are extracted from each new image added to they system. Key components of this stage are borrowed from RAFT[48].
70
+
71
+ Feature Extraction Each of the input images are processed by a feature extraction network. The network consists of 6 residual blocks and 3 downsampling layers, producing dense feature maps at 1/8 the input image resolution. Like RAFT[48], we use two separate networks: a feature network and a context network. The feature network is used to build the set of correlation volumes, while the context features are injected into the network during each application of the update operator.
72
+
73
+ Correlation Pyramid For each edge in the frame graph, $( i , j ) \in \mathcal { E }$ , we compute a 4D correlation volume by taking the dot product between all-pairs of feature vectors in $g _ { \boldsymbol { \theta } } ( I _ { i } )$ and $g _ { \boldsymbol { \theta } } ( I _ { j } )$
74
+
75
+ $$
76
+ C _ { u _ { 1 } v _ { 1 } u _ { 2 } v _ { 2 } } ^ { i j } = \langle g _ { \theta } ( I _ { i } ) _ { u _ { 1 } v _ { 1 } } , g _ { \theta } ( I _ { j } ) _ { u _ { 2 } v _ { 2 } } \rangle
77
+ $$
78
+
79
+ We then perform average pooling of the last two dimension of the correlation volume following RAFT[48] to form a 4-level correlation pyramid.
80
+
81
+ Correlation Lookup We define a lookup operator which indexes the correlation volume using a grid with radius $r$ , $\mathbf { , } \ L _ { r } : \mathbb { R } ^ { H \times W \times H \times W } \times \mathbb { R } ^ { H \times W \times 2 } \mapsto \mathbb { R } ^ { H \times W \times ( r + 1 ) ^ { 2 } }$ .
82
+
83
+ The lookup operator takes an $H \times W$ grid of coordinates as input and values are retrieved from the correlation volume using bilinear interpolation. The operator is applied to each correlation volume in the pyramid and the final feature vector is computed by concatenating the results at each level.
84
+
85
+ # 3.2 Update Operator
86
+
87
+ The core component of our SLAM system is a learned update operator show in Fig. 2. The update operator is a $3 \times 3$ convolutional GRU with hidden state $\mathbf { h }$ . Each application of the operator updates the hidden state, and additionally produces a pose update, $\Delta \xi ^ { ( k ) }$ , and depth update, $\Delta \mathbf { d } ^ { ( k ) }$ . The pose and depth updates are applied to the current depth and pose estimates through retraction on the SE3 manifold and vector addition respectively
88
+
89
+ $$
90
+ \mathbf { G } ^ { ( k + 1 ) } = \mathrm { E x p } ( \Delta \pmb { \xi } ^ { ( k ) } ) \circ \mathbf { G } ^ { ( k ) } , \qquad \mathbf { d } ^ { ( k + 1 ) } = \Delta \mathbf { d } ^ { ( k ) } + \mathbf { d } ^ { ( k ) } .
91
+ $$
92
+
93
+ Iterative applications of the update operator produce a sequence of poses and depths, with the expectation of converging to a fixed point $\{ \mathbf { G } ^ { ( k ) } \} \to \mathbf { G } ^ { * }$ , $\{ \mathbf { d } ^ { ( k ) } \} \mathbf { d } ^ { * }$ , reflecting the true reconstruction.
94
+
95
+ Correspondence At the start of each iteration we use the current estimates of poses and depths to estimate correspondence. Given a grid of pixel coordinates, $\mathbf { p } _ { i } \in \mathbb { R } ^ { H \times W \times 2 }$ in frame $i$ , we compute the dense correspondence field $\mathbf { p } _ { i j }$
96
+
97
+ $$
98
+ \mathbf { p } _ { i j } = \Pi _ { c } \big ( \mathbf { G } _ { i j } \circ \Pi _ { c } ^ { - 1 } \big ( \mathbf { p } _ { i } , \mathbf { d } _ { i } \big ) \big ) , \qquad \mathbf { p } _ { i j } \in \mathbb { R } ^ { H \times W \times 2 } \qquad \mathbf { G } _ { i j } = \mathbf { G } _ { j } \circ \mathbf { G } _ { i } ^ { - 1 } .
99
+ $$
100
+
101
+ for each edge $( i , j ) \in \mathcal { E }$ in the frame graph. Here $\Pi _ { c }$ is the camera model mapping a set of 3D points onto the image and $\Pi _ { c } ^ { - 1 }$ is the inverse projection function mapping inverse depth map d and coordinate grid $\mathbf { p } _ { i }$ to a 3D point cloud (we provide formulas and Jacobians in the appendix). $\mathbf { p } _ { i j }$ represents the coordinates of pixels $\mathbf { p } _ { i }$ mapped into frame $j$ using the estimated pose and depth.
102
+
103
+ Inputs We use the correspondence field to index the correlation volumes. For each edge $( i , j ) \in \mathcal { E }$ we use $\mathbf { p } _ { i j }$ to perform lookup from the correlation volume $\mathbf { C } _ { i j }$ to retrieve correlation features. Additionally, we use the correspondence field to derive optical flow induced by camera motion as the difference $\mathbf { p } _ { i j } - \mathbf { p } _ { j }$ . Furthermore, the residual from the previous BA solution is concatenated with the flow field allowing the network to use feedback from the previous iteration.
104
+
105
+ The correlation features provide information about visual similarity in the neighbourhood of $\mathbf { p } _ { i j }$ allowing the network to learn to align visually similar image regions. However, correspondence is sometimes ambiguous. The flow provides an complementary source of information allowing the network to exploit smoothness in the motion fields to gain robustness.
106
+
107
+ Update The correlation features and flow features are each mapped through two convolutional layers before being injected into the GRU. Additionally, we inject context features, as extracted by the context network, into the GRU through element-wise addition.
108
+
109
+ The ConvGRU is a local operation with a small receptive field. We extract global context by averaging the hidden state across the spatial dimensions of the image and use this feature vector as additional input to the GRU. Global context is important in SLAM because incorrect correspondences, caused by large moving objects for example, can degrade the accuracy of the system. It is important for the network to recognize and reject erroneous correspondence.
110
+
111
+ The GRU produces an updated hidden state $\mathbf { h } ^ { ( k + 1 ) }$ . Instead of predicting updates to the depth or pose directly, we instead predict updates in the space of dense flow fields. We map the hidden state through two additional convoluation layers to produce two outputs: (1) a revision flow field $\mathbf { r } _ { i j } \in \mathbb { R } ^ { H \times W \times 2 }$ and (2) associated confidence map $\mathbf { w } _ { i j } \in \mathbb { R } _ { + } ^ { H \times W \times 2 }$ . The revision $\mathbf { r } _ { i j }$ is a correction term predicted by the network to correct errors in the dense correspondence field. We denote the corrected correspondence as $\mathbf { p } _ { i j } ^ { * } = \mathbf { r } _ { i j } + \mathbf { p } _ { i j }$
112
+
113
+ We then pool the hidden state over all features which share the same source view $i$ and predict a pixel-wise damping factor $\lambda$ . We use the softplus operator to ensure that the damping term is positive. Additionally, we use the pooled features to predict a $8 \mathrm { x } 8$ mask which can be used to upsample the inverse depth estimate.
114
+
115
+ Dense Bundle Adjustment Layer (DBA) The Dense Bundle Adjustment Layer (DBA) maps the set of flow revisions into a set of pose and pixelwise depth updates. We define the cost function over the entire frame graph
116
+
117
+ $$
118
+ \mathbf { E } ( \mathbf { G } ^ { \prime } , \mathbf { d } ^ { \prime } ) = \sum _ { ( i , j ) \in \mathcal { E } } \big \| \mathbf { p } _ { i j } ^ { * } - \Pi _ { c } \big ( \mathbf { G } _ { i j } ^ { \prime } \circ \Pi _ { c } ^ { - 1 } \big ( \mathbf { p } _ { i } , \mathbf { d } _ { i } ^ { \prime } \big ) \big ) \big \| _ { \Sigma _ { i j } } ^ { 2 } \qquad \Sigma _ { i j } = \mathrm { d i a g } \mathbf { w } _ { i j } .
119
+ $$
120
+
121
+ where $\lVert \cdot \rVert _ { \Sigma }$ is the Mahalanobis distance which weights the error terms based on the confidence weights $\mathbf { w } _ { i j }$ . Eqn. 4 states that we want an updated pose $\mathbf { G } ^ { \prime }$ and depth $\mathbf { d } ^ { \prime }$ such that reprojected points match the revised correspondence $\mathbf { p } _ { i j } ^ { * }$ as predicted by the update operator.
122
+
123
+ We use local parameterization to linearize Eqn. 4 and use the Gauss-Newton algorithm solve for updates $( \Delta \xi , \Delta \mathbf { d } )$ . Since each term in Eqn. 4 only includes a single depth variable, the Hessian matrix has block diagonal structure. Separating pose and depth variables, the system can be solved efficiently using the Schur complement with the pixelwise damping factor $\lambda$ added to the depth block
124
+
125
+ $$
126
+ \begin{array} { r } \left[ \begin{array} { l l } { \mathbf { B } } & { \mathbf { E } } \\ { \mathbf { E } ^ { T } } & { \mathbf { C } } \end{array} \right] \left[ \boldsymbol { \Delta } \pmb { \xi } \right] = \left[ \mathbf { v } \right] \qquad \begin{array} { r l } & { \boldsymbol { \Delta } \pmb { \xi } = [ \mathbf { B } - \mathbf { E } \mathbf { C } ^ { - 1 } \mathbf { E } ^ { T } ] ^ { - 1 } ( \mathbf { v } - \mathbf { E } \mathbf { C } ^ { - 1 } \mathbf { w } ) } \\ & { \boldsymbol { \Delta } \mathbf { d } = \mathbf { C } ^ { - 1 } ( \mathbf { w } - \mathbf { E } ^ { T } \boldsymbol { \Delta } \pmb { \xi } ) } \end{array} \end{array}
127
+ $$
128
+
129
+ where $\mathbf { C }$ is diagonal and can be cheaply inverted ${ \bf C } ^ { - 1 } = 1 / { \bf C }$ . The DBA layer is implemented as part of the computation graph and backpropogation is performed through the layer during training.
130
+
131
+ # 3.3 Training
132
+
133
+ Our SLAM system is implemented in PyTorch and we use the LieTorch extension [49] to perform backprogation in the tangent space of all group elements.
134
+
135
+ Removing gauge freedom In the monocular setting, the network is only able to recover the trajectory of the camera up to a similarity transform. One solution is to define a loss which is invariant to similarity transforms. However, the gauge-freedom still exists during training which poorly impacts the conditioning of the linear system and the stability of the gradients. We solve this problem by fixing the first two poses to the ground-truth poses of each training sequence. Fixing the first pose removes the 6-dof gauge freedom. Fixing the second pose resolves the scale freedom.
136
+
137
+ Constructing training video Each training example consists of a 7-frame video sequence. In order to ensure stable training and good downstream performance, we want to sample videos which are not too easy nor too difficult.
138
+
139
+ The training set is composed of a collection of videos. For each video $i$ of length $N _ { i }$ , we precompute an $N _ { i } \times N _ { i }$ distance matrix storing the average optical flow magnitude between each pair of frames. However, not all frames are covisible; and frames pairs with less than $50 \%$ overlap are assigned a distance of infinity. During training, we dynamically generate videos by sampling paths in the distance matrix, such that the average flow between adjacent video frames is between 8px and 96px.
140
+
141
+ Supervision We supervise our network using a combination of pose loss and flow loss. The flow loss is applied to pairs of adjacent frames. We compute the optical flow induced by the predicted depth and poses and the flow induced by the ground truth depth and poses. The loss is taken to be the average l2 distance between the two flow fields.
142
+
143
+ Given a set of ground truth poses $\{ \mathbf { T } \} _ { i } ^ { N }$ and predicted poses $\{ \mathbf { G } \} _ { i } ^ { N }$ , the pose loss is taken to be the distance between the ground truth and predicted poses, $\begin{array} { r } { \mathcal { L } _ { p o s e } = \sum _ { i } | | \operatorname { L o g } _ { S E 3 } ( \mathbf { T } _ { i } ^ { - 1 } \cdot \mathbf { G } _ { i } ) | | _ { 2 } } \end{array}$ . We apply the losses to the output of every iteration with exponentially increasing weight using $\gamma = 0 . 9$ .
144
+
145
+ # 3.4 SLAM System
146
+
147
+ During inference, we compose the network into a full SLAM system. The SLAM system takes a video stream as input, and performs reconstruction and localization in real-time. Our system contains two threads which run asynchronously. The frontend thread takes in new frames, extracts features, selects keyframes, and performs local bundle adjustment. The backend thread simultaneously performs global bundle adjustment over the entire history of keyframes. We provide an overview of the system here, and provide more information in the appendix.
148
+
149
+ Initialization Initialization is simple with DROID-SLAM. We simply collect frames until we have a set of 12. As we accumulate frames, we only keep the previous frame if optical flow is greater than 16px (estimated by applying one update iteration). Once 12 frames have been accumulated, we initialize a frame graph by creating an edges between keyframes which are within 3 timesteps apart, then run 10 iterations of the update operator.
150
+
151
+ Frontend The frontend operates directly on the incoming video stream. It maintains a collection of keyframes and a frame graph storing edges between covisible kefyrames. Keyframe poses and depths are actively being optimized. Features are first extracted from the incoming frames. The new frame is then added to the frame graph adding edges with its 3 closest neighbors as measured by mean optical flow. The pose is initialized using a linear motion model. We then apply several iterations of the update operator to update keyframe poses and depths. We fix the first two poses to remove gauge freedom but treat all depths as free variables.
152
+
153
+ After the new frame is tracked, we select a keyframe for removal. We compute distance between pairs of frames by computing the average optical flow magnitude and remove redundant frames. If no frame is a good candidate for removal, we remove the oldest keyframe.
154
+
155
+ Backend The backend performs global bundle adjustment over the entire history of keyframes. During each iteration, we rebuild the frame graph using the flow between all pairs of keyframes, represented as an $N \times N$ distance matrix. We first add edges between temporally adjacent keyframes. We then sample new edges from the distance matrix in order of increasing flow. With each selected edge, we suppress neighboring edges within a distance of 2, where distance is defined as the Chebyshev distance between index pairs $| | ( i , j ) - ( k , l ) | | _ { \infty } = \operatorname* { m a x } ( | i - k | , | j - l | )$ .
156
+
157
+ We then apply the update operator to the entire frame graph, often consisting of thousands of frames and edges. Storing the full set of correlation volumes would quickly exceed video memory. Instead, we use the memory efficient implementation proposed in RAFT [48].
158
+
159
+ ![](images/9272db540c28a43e8ab054074f443b10bc601aba4494a3370e157a7c168fc922.jpg)
160
+ Figure 3: DROID-SLAM can generalize to new datasets. In order, we show results from Tanks & Temples [21], ScanNet [10], Sintel [3], and ETH-3D [41]; all using monocular video.
161
+
162
+ During training, we implement dense bundle adjustment in PyTorch to leverage the automatic differentiation engine. At inference time, we use a custom CUDA kernel which takes advantage of the block-sparse structure of the problem, then perform sparse Cholesky decomposition on the reduced camera block.
163
+
164
+ We only perform full bundle adjustment on keyframe images. In order to recover the poses of non-keyframes, we perform motion-only bundle adjustment by iteratively estimating flow between each keyframe and its neighboring non-keyframes. During testing, we evaluate on the full camera trajectory, not just keyframes.
165
+
166
+ Stereo and RGB-D Our system can be easily modified for stereo and RGB-D video. In the case of RGB-D, we still treat depth as a variable, since sensor depth can be noisy and have missing observations, and simply add a term to the optimization objective (Eqn. 4) which penalizes the squared distance between the measured and predicted depth. For stereo, we use the exact same system described above, with just double the frames, and fix the relative pose between the left and right frames in the DBA layer. Cross camera edges in the graph allow us to leverage stereo information.
167
+
168
+ # 4 Experiments
169
+
170
+ We experiment on a diverse set of datasets and sensor modalities. We compare to both deep learning and established classical SLAM algorithms and put specific emphasis on cross-dataset generalization. Following prior work, we evaluate the accuracy of the camera trajectory [31, 15, 41], primarily using Absolute Trajectory Error (ATE) [43]. While some datasets have ground truth point clouds [21], there is no standard protocol to compare 3D reconstructions directly given by SLAM systems because a SLAM systems can choose which 3D points to reconstruct. Evaluating dense 3D reconstruction is typically considered in the domain of Multiview Stereo [19] and outside the scope of this work.
171
+
172
+ Our network is trained entirely on monocular video from the synthetic TartanAir dataset [54]. We train our network for 250k steps with a batch size of 4, resolution $3 8 4 \times 5 1 2$ , and 7 frame clips, and unroll 15 update iterations. Training takes 1 week on 4 RTX-3090 GPUs.
173
+
174
+ Table 1: Results on the TartanAir monocular benchmark.
175
+
176
+ <table><tr><td>Monocular</td><td>MH000</td><td>MH001</td><td>MH002</td><td>MH003</td><td>MH004</td><td>MH005</td><td>MH006</td><td>MH007</td><td>Avg</td></tr><tr><td>ORB-SLAM[31]</td><td>1.30</td><td>0.04</td><td>2.37</td><td>2.45</td><td>X</td><td>X</td><td>21.47</td><td>2.73</td><td>-</td></tr><tr><td>DeepV2D[47]</td><td>6.15</td><td>2.12</td><td>4.54</td><td>3.89</td><td>2.71</td><td>11.55</td><td>5.53</td><td>3.76</td><td>5.03</td></tr><tr><td>TartanVO [53]</td><td>4.88</td><td>0.26</td><td>2.00</td><td>0.94</td><td>1.07</td><td>3.19</td><td>1.00</td><td>2.04</td><td>1.92</td></tr><tr><td>Ours</td><td>0.08</td><td>0.05</td><td>0.04</td><td>0.02</td><td>0.01</td><td>1.31</td><td>0.30</td><td>0.07</td><td>0.24</td></tr></table>
177
+
178
+ TartanAir [54] (Monocular & Stereo) The TartanAir dataset is a challenging synthetic benchmark for evaluating SLAM algorithms and was used as part of the ECCV 2020 SLAM competition. We use the official test split [54], and provide ATE across all “Hard” sequences in Tab. 1.
179
+
180
+ Tab. 1 demonstrates both the robustness of our method (no catastrophic failures) and accuracy (very low drift). We retrain DeepV2D [47] on TartanAir as a baseline. On most sequences, we outperform existing methods by an order-of-magnitude and achieve ${ } ^ { 8 \mathrm { { X } } }$ lower average error than TartanVO [53] and $2 0 \mathrm { x }$ lower than DeepV2D [47]. We also use the TartanAir dataset to compare with the top submissions to the ECCV 2020 SLAM competition in Tab. 2. The top two submissions use systems
181
+
182
+ <table><tr><td></td><td>Mono.</td><td>Stereo</td></tr><tr><td>OV²SLAM[17]</td><td>0.510</td><td>0.182</td></tr><tr><td>VOLDOR [28] + COLMAP [40]</td><td>0.440</td><td>0.177</td></tr><tr><td>SuperGlue [38] + SuperPoint [13] + COLMAP [40]</td><td>0.340</td><td>0.119</td></tr><tr><td>Ours</td><td>0.129</td><td>0.047</td></tr></table>
183
+
184
+ Table 2: Results on the TartanAir test set, compared with the top 3 submission to the ECCV 2020 SLAM competition. The score is computed using normalized relative pose error for all possible sequences of length $\{ 5 , 1 0 , 1 5 , . . . , 4 0 \}$ meters, see competition page for details.
185
+
186
+ built on top of COLMAP [40] and run $4 0 \mathbf { x }$ slower than real-time. Our method, on the other hand, runs 16x faster and achieves an error $62 \%$ lower on the monocular benchmark and $60 \%$ lower on the stereo benchmark.
187
+
188
+ EuRoC [2] (Monocular & Stereo) In the remaining experiments, we are interested in the ability of our network to generalize to new cameras and environments. The EuRoC dataset consists of video captured from sensor on-board a micro aerial vehicle (MAV) and is a widely used benchmark to evaluate SLAM systems. We use the EuRoC dataset to evaluate both monocular and stereo performance and report results on Tab. 3.
189
+
190
+ Table 3: Monocular SLAM on the EuRoC datasets, ATE[m]. † denotes visual odometry methods.
191
+
192
+ <table><tr><td colspan="2"></td><td>MH01</td><td>MH02</td><td>MH03</td><td>MH04</td><td>MH05</td><td>V101</td><td>V102</td><td>V103</td><td>V201</td><td>V202</td><td>V203</td><td>Avg</td></tr><tr><td rowspan="5">qH/deea</td><td>DeepFactors [9]</td><td>1.587</td><td>1.479</td><td>3.139</td><td>5.331</td><td>4.002</td><td>1.520</td><td>0.679</td><td>0.900</td><td>0.876</td><td>1.905</td><td>1.021</td><td>2.040</td></tr><tr><td>DeepV2D [47]t</td><td>0.739</td><td>1.144</td><td>0.752</td><td>1.492</td><td>1.567</td><td>0.981</td><td>0.801</td><td>1.570</td><td>0.290</td><td>2.202</td><td>2.743</td><td>1.298</td></tr><tr><td>DeepV2D (Tartan Air)†</td><td>1.614</td><td>1.492</td><td>1.635</td><td>1.775</td><td>1.013</td><td>0.717</td><td>0.695</td><td>1.483</td><td>0.839</td><td>1.052</td><td>0.591</td><td>1.173</td></tr><tr><td>TartanVO1 [53]†</td><td>0.639</td><td>0.325</td><td>0.550</td><td>1.153</td><td>1.021</td><td>0.447</td><td>0.389</td><td>0.622</td><td>0.433</td><td>0.749</td><td>1.152</td><td>0.680</td></tr><tr><td>D3VO + DSO [57]t</td><td>-</td><td>-</td><td>0.08</td><td>-</td><td>0.09</td><td>-</td><td>-</td><td>0.11</td><td>-</td><td>0.05</td><td>0.19</td><td>-</td></tr><tr><td rowspan="4">Cesssssr</td><td>ORB-SLAM [31]</td><td>0.071</td><td>0.067</td><td>0.071</td><td>0.082</td><td>0.060</td><td>0.015</td><td>0.020</td><td>X</td><td>0.021</td><td>0.018</td><td>X</td><td>-</td></tr><tr><td>DSO [15]t</td><td>0.046</td><td>0.046</td><td>0.172</td><td>3.810</td><td>0.110</td><td>0.089</td><td>0.107</td><td>0.903</td><td>0.044</td><td>0.132</td><td>1.152</td><td>0.601</td></tr><tr><td>SVO[18]t</td><td>0.100</td><td>0.120</td><td>0.410</td><td>0.430</td><td>0.300</td><td>0.070</td><td>0.210</td><td>X</td><td>0.110</td><td>0.110</td><td>1.080</td><td>·</td></tr><tr><td>DSM[60] ORB-SLAM3 [5]</td><td>0.039</td><td>0.036</td><td>0.055</td><td>0.057</td><td>0.067</td><td>0.095</td><td>0.059</td><td>0.076</td><td>0.056</td><td>0.057</td><td>0.784</td><td>0.126</td></tr><tr><td colspan="2">Ours (odometry only)†</td><td>0.016</td><td>0.027</td><td>0.028</td><td>0.138</td><td>0.072</td><td>0.033</td><td>0.015</td><td>0.033</td><td>0.023</td><td>0.029</td><td>X</td><td>-</td></tr><tr><td colspan="2">Ours</td><td>0.163 0.013</td><td>0.121 0.014</td><td>0.242 0.022</td><td>0.399 0.043</td><td>0.270 0.043</td><td>0.103 0.037</td><td>0.165 0.012</td><td>0.158</td><td>0.020</td><td>0.102 0.115 0.017 0.013</td><td>0.204 0.014</td><td>0.186 0.022</td></tr></table>
193
+
194
+ In the monocular setting, we achieve an average ATE of $2 . 2 \mathrm { c m }$ , reducing error by $82 \%$ among methods with zero failures, and by $43 \%$ over ORB-SLAM3 when only comparing sequences where ORB-SLAM3 is successful.
195
+
196
+ We compare to several deep learning approaches. We compare to DeepV2D trained on the TartanAir dataset and the publicly available version trained on NYUv2 [33] and ScanNet[10]. DeepFactors [9] was trained on ScanNet. We find that recent deep learning approaches [9, 47, 53] perform poorly on the EuRoC dataset compared to classical SLAM systems. This is due to poor generalization and dataset biases which lead to large amounts of drift; our method does not suffer from these issues. D3VO [57] is able to achieve both good robustness and accuracy by combining a neural network frontend with DSO as a backend, using 6 of the 11 sequences for evaluation and performing unsupervised training on the remaining ones, which contain the same scenes used for evaluation.
197
+
198
+ TUM-RGBD [43] The RGBD dataset consists of indoor scenes captured with handheld camera. This is a notoriously difficult dataset for monocular methods due to rolling shutter artifacts, motion blur, and heavy rotation. We benchmark prior work on the entirety of the freiburg1 set in Tab. 4.
199
+
200
+ Classical SLAM algorithms such as ORB-SLAM tend to fail on most of the sequences. While deep learning methods are more robust, they obtain low accuracy on most of the evaluated sequences. Our
201
+
202
+ <table><tr><td></td><td>360</td><td>desk</td><td>desk2</td><td>floor</td><td>plant</td><td>room</td><td>rpy</td><td>teddy</td><td>xyz</td><td>avg</td></tr><tr><td>ORB-SLAM2 [32] ORB-SLAM3[5]</td><td>X X</td><td>0.071 0.017</td><td>X 0.210</td><td>0.023 X</td><td>X 0.034</td><td>X X</td><td>X X</td><td>X X</td><td>0.010 0.009</td><td>: -</td></tr><tr><td>DeepTAM1 [59]</td><td>0.111</td><td>0.053</td><td>0.103</td><td>0.206</td><td>0.064</td><td>0.239</td><td>0.093</td><td>0.144</td><td>0.036</td><td>0.116</td></tr><tr><td>TartanVO² [53]</td><td>0.178</td><td>0.125</td><td>0.122</td><td>0.349</td><td>0.297</td><td>0.333</td><td>0.049</td><td>0.339</td><td>0.062</td><td>0.206</td></tr><tr><td>DeepV2D [47]</td><td>0.243</td><td>0.166</td><td>0.379</td><td>1.653</td><td>0.203</td><td>0.246</td><td>0.105</td><td>0.316</td><td>0.064</td><td>0.375</td></tr><tr><td>DeepV2D (TartanAir)</td><td>0.182</td><td>0.652</td><td>0.633</td><td>0.579</td><td>0.582</td><td>0.776</td><td>0.053</td><td>0.602</td><td>0.150</td><td>0.468</td></tr><tr><td>DeepFactors [9]</td><td>0.159</td><td>0.170</td><td>0.253</td><td>0.169</td><td>0.305</td><td>0.364</td><td>0.043</td><td>0.601</td><td>0.035</td><td>0.233</td></tr><tr><td>Ours</td><td>0.111</td><td>0.018</td><td>0.042</td><td>0.021</td><td>0.016</td><td>0.049</td><td>0.026</td><td>0.048</td><td>0.012</td><td>0.038</td></tr></table>
203
+
204
+ Table 4: ATE on the TUM-RGBD benchmark. All methods are provided mono. video, 1except DeepTAM which uses RGB-D and 2TartanVO which uses ground truth to scale relative pose.
205
+
206
+ method is both robust and accurate. It successfully tracks all 9 sequences while achieving $83 \%$ lower ATE than DeepFactors [9] and which succeeds on all videos and $90 \%$ lower ATE than DeepV2D [47].
207
+
208
+ ![](images/be9d1f884bf4e0054f381943dd26e4c24baf1db7982edbe0eb27578756eb52ae.jpg)
209
+ Figure 4: Generalization results on the RGB-D ETH3D-SLAM benchmark. (Left) Our method, which is trained only on the synthetic TartanAir dataset, ranks 1st on both the train and test splits. (Right) Plot of the number successful trajectories as a function of ATE. Our method successfully tracks 30/32 of the datasets where image data is available.
210
+
211
+ ETH3D-SLAM [41] (RGB-D) Finally, we evaluate the RGB-D performance on the ETH3D-SLAM benchmark. In this setup, the network is also provided measurements from an RGB-D camera. We take our network trained on TartanAir and add an addition term in the optimization objective penalizing the distance between the predicted inv. depth and inv. depth measured by the sensor. Without any finetuning, our method ranks 1st on both the train and test splits. Several of the datasets are "dark" meaning no image data is available; on these datasets we do not submit any predictions. On the test set, we successfully track 30/32 RGB-D, improving over the next best of 19/32.
212
+
213
+ Timing and Memory Our system can run in real-time with 2 3090 GPUs. Tracking and local BA is run on the first GPU, while global BA and loop closure is run on the second. On EuRoC, we average 20fps (camera hz) by downsampling to $3 2 0 \times 5 1 2$ resolution and skipping every other frame. Results in Tab. 3 were obtained in this setting. On TUM-RGBD, we average 30fps by downsampling to $2 4 0 \times 3 2 0$ and skipping every other frame, again the reported results where obtained in this setting. On TartanAir, due to much faster camera motion, we are unable to run in real-time, averaging 8fps. However, this is still a 16x speedup over the top 2 submissions to the TartanAir SLAM challenge, which rely on COLMAP [40].
214
+
215
+ The SLAM frontend can be run on GPUs with 8GB of memory. The backend, which requires storing feature maps from the full set of images, is more memory intensive. All results on TUM-RGBD can be produced on a single 1080Ti graphics card. Results on EuRoC, TartanAir and ETH-3D (where video can be up to 5000 frames) requires a GPU with 24GB memory. While memory and resource requirements are currently the biggest limitation of our system, we believe these can be drastically reduced by culling redundant computation and more efficient representations.
216
+
217
+ # 5 Conclusion
218
+
219
+ We introduce DROID-SLAM, an end-to-end neural architecture for visual SLAM. DROID-SLAM is accurate, robust, and versatile and can be used on monocular, stereo, and RGB-D video. It outperforms prior work by large margins on challenging benchmarks.
220
+
221
+ Acknowledgements This work is partially supported by the National Science Foundation under Award IIS-1942981.
222
+
223
+ # References
224
+
225
+ optimisable representation for dense visual slam. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2560–2568, 2018.
226
+ [2] M. Burri, J. Nikolic, P. Gohl, T. Schneider, J. Rehder, S. Omari, M. W. Achtelik, and R. Siegwart. The euroc micro aerial vehicle datasets. The International Journal of Robotics Research, 35(10):1157–1163, 2016.
227
+ [3] D. J. Butler, J. Wulff, G. B. Stanley, and M. J. Black. A naturalistic open source movie for optical flow evaluation. In A. Fitzgibbon et al. (Eds.), editor, European Conf. on Computer Vision (ECCV), Part IV, LNCS 7577, pages 611–625. Springer-Verlag, Oct. 2012.
228
+ [4] C. Cadena, L. Carlone, H. Carrillo, Y. Latif, D. Scaramuzza, J. Neira, I. Reid, and J. J. Leonard. Past, present, and future of simultaneous localization and mapping: Toward the robust-perception age. IEEE Transactions on robotics, 32(6):1309–1332, 2016.
229
+ [5] C. Campos, R. Elvira, J. J. G. Rodríguez, J. M. Montiel, and J. D. Tardós. Orb-slam3: An accurate open-source library for visual, visual-inertial and multi-map slam. arXiv preprint arXiv:2007.11898, 2020.
230
+ [6] D. Caruso, J. Engel, and D. Cremers. Large-scale direct slam for omnidirectional cameras. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 141–148. IEEE, 2015.
231
+ [7] C. B. Choy, J. Gwak, S. Savarese, and M. Chandraker. Universal correspondence network. arXiv preprint arXiv:1606.03558, 2016.
232
+ [8] R. Clark, M. Bloesch, J. Czarnowski, S. Leutenegger, and A. J. Davison. Ls-net: Learning to solve nonlinear least squares for monocular stereo. arXiv preprint arXiv:1809.02966, 2018. [9] J. Czarnowski, T. Laidlow, R. Clark, and A. J. Davison. Deepfactors: Real-time probabilistic dense monocular slam. IEEE Robotics and Automation Letters, 5(2):721–728, 2020.
233
+ [10] A. Dai, A. X. Chang, M. Savva, M. Halber, T. Funkhouser, and M. Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5828–5839, 2017.
234
+ [11] A. Dai, M. Nießner, M. Zollhöfer, S. Izadi, and C. Theobalt. Bundlefusion: Real-time globally consistent 3d reconstruction using on-the-fly surface reintegration. ACM Transactions on Graphics (ToG), 36(4):1, 2017.
235
+ [12] A. J. Davison, I. D. Reid, N. D. Molton, and O. Stasse. Monoslam: Real-time single camera slam. IEEE transactions on pattern analysis and machine intelligence, 29(6):1052–1067, 2007.
236
+ [13] D. DeTone, T. Malisiewicz, and A. Rabinovich. Superpoint: Self-supervised interest point detection and description. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 224–236, 2018.
237
+ [14] M. Dusmanu, J. L. Schonberger, and M. Pollefeys. Multi-view optimization of local feature geometry. In Proceedings of the 2020 European Conference on Computer Vision, 2020.
238
+ [15] J. Engel, V. Koltun, and D. Cremers. Direct sparse odometry. IEEE transactions on pattern analysis and machine intelligence, 40(3):611–625, 2017.
239
+ [16] J. Engel, T. Schöps, and D. Cremers. Lsd-slam: Large-scale direct monocular slam. In European conference on computer vision, pages 834–849. Springer, 2014.
240
+ [17] M. Ferrera, A. Eudes, J. Moras, M. Sanfourche, and G. Le Besnerais. Ov2 slam: A fully online and versatile visual slam for real-time applications. IEEE Robotics and Automation Letters, 6(2):1399–1406, 2021.
241
+ [18] C. Forster, Z. Zhang, M. Gassner, M. Werlberger, and D. Scaramuzza. Svo: Semidirect visual odometry for monocular and multicamera systems. IEEE Transactions on Robotics, 33(2):249–265, 2016.
242
+ [19] Y. Furukawa and C. Hernández. Multi-view stereo: A tutorial. Foundations and Trends® in Computer Graphics and Vision, 9(1-2):1–148, 2015.
243
+ [20] C. Kerl, J. Sturm, and D. Cremers. Dense visual slam for rgb-d cameras. In 2013 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 2100–2106. IEEE, 2013.
244
+ [21] A. Knapitsch, J. Park, Q.-Y. Zhou, and V. Koltun. Tanks and temples: Benchmarking large-scale scene reconstruction. ACM Transactions on Graphics (ToG), 36(4):1–13, 2017.
245
+ [22] J. Kopf, X. Rong, and J.-B. Huang. Robust consistent video depth estimation. arXiv preprint arXiv:2012.05901, 2020.
246
+ [23] J. Krishna Murthy, S. Saryazdi, G. Iyer, and L. Paull. gradslam: Dense slam meets automatic differentiation. arXiv, 2020.
247
+ [24] C. Liu, J. Gu, K. Kim, S. G. Narasimhan, and J. Kautz. Neural rgb (r) d sensing: Depth and uncertainty from a video camera. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10986–10995, 2019.
248
+ [25] X. Luo, J.-B. Huang, R. Szeliski, K. Matzen, and J. Kopf. Consistent video depth estimation. ACM Transactions on Graphics (TOG), 39(4):71–1, 2020.
249
+ [26] Zhu, R. Zhang, Yao, Quan. Learning local descriptors by integrating geometry constraints. In Proceedings of the European conference on computer vision (ECCV), pages 168–183, 2018.
250
+ [27] H. Matsuki, L. von Stumberg, V. Usenko, J. Stückler, and D. Cremers. Omnidirectional dso: Direct sparse odometry with fisheye cameras. IEEE Robotics and Automation Letters, 3(4):3693–3700, 2018.
251
+ [28] Z. Min, Y. Yang, and E. Dunn. Voldor: Visual odometry from log-logistic dense optical flow residuals. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4898–4909, 2020.
252
+ [29] A. Mishchuk, D. Mishkin, F. Radenovic, and J. Matas. Working hard to know your neighbor’s margins: Local descriptor learning loss. arXiv preprint arXiv:1705.10872, 2017.
253
+ [30] A. I. Mourikis and S. I. Roumeliotis. A multi-state constraint kalman filter for vision-aided inertial navigation. In Proceedings 2007 IEEE International Conference on Robotics and Automation, pages 3565–3572. IEEE, 2007.
254
+ [31] R. Mur-Artal, J. M. M. Montiel, and J. D. Tardos. Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics, 31(5):1147–1163, 2015.
255
+ [32] R. Mur-Artal and J. D. Tardós. Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras. IEEE Transactions on Robotics, 33(5):1255–1262, 2017.
256
+ [33] P. K. Nathan Silberman, Derek Hoiem and R. Fergus. Indoor segmentation and support inference from rgbd images. In ECCV, 2012.
257
+ [34] R. A. Newcombe, S. J. Lovegrove, and A. J. Davison. Dtam: Dense tracking and mapping in real-time. In 2011 international conference on computer vision, pages 2320–2327. IEEE, 2011.
258
+ [35] Y. Ono, E. Trulls, P. Fua, and K. M. Yi. Lf-net: Learning local features from images. arXiv preprint arXiv:1805.09662, 2018.
259
+ [36] R. Ranftl and V. Koltun. Deep fundamental matrix estimation. In Proceedings of the European conference on computer vision (ECCV), pages 284–299, 2018.
260
+ [37] A. Rosinol, M. Abate, Y. Chang, and L. Carlone. Kimera: an open-source library for real-time metricsemantic localization and mapping. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 1689–1696. IEEE, 2020.
261
+ [38] P.-E. Sarlin, D. DeTone, T. Malisiewicz, and A. Rabinovich. Superglue: Learning feature matching with graph neural networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4938–4947, 2020.
262
+ [39] P.-E. Sarlin, A. Unagar, M. Larsson, H. Germain, C. Toft, V. Larsson, M. Pollefeys, V. Lepetit, L. Hammarstrand, F. Kahl, et al. Back to the feature: Learning robust camera localization from pixels to pose. arXiv preprint arXiv:2103.09213, 2021.
263
+ [40] J. L. Schonberger and J.-M. Frahm. Structure-from-motion revisited. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4104–4113, 2016.
264
+ [41] T. Schops, T. Sattler, and M. Pollefeys. Bad slam: Bundle adjusted direct rgb-d slam. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 134–144, 2019.
265
+ [42] D. Schubert, N. Demmel, V. Usenko, J. Stuckler, and D. Cremers. Direct sparse odometry with rolling shutter. In Proceedings of the European Conference on Computer Vision (ECCV), pages 682–697, 2018.
266
+ [43] J. Sturm, N. Engelhard, F. Endres, W. Burgard, and D. Cremers. A benchmark for the evaluation of rgb-d slam systems. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 573–580. IEEE, 2012.
267
+ [44] E. Sucar, S. Liu, J. Ortiz, and A. J. Davison. imap: Implicit mapping and positioning in real-time. arXiv preprint arXiv:2103.12352, 2021.
268
+ [45] E. Sucar, K. Wada, and A. Davison. Nodeslam: Neural object descriptors for multi-view shape reconstruction. In 2020 International Conference on 3D Vision (3DV), pages 949–958. IEEE, 2020.
269
+ [46] C. Tang and P. Tan. Ba-net: Dense bundle adjustment network. arXiv preprint arXiv:1806.04807, 2018.
270
+ [47] Z. Teed and J. Deng. Deepv2d: Video to depth with differentiable structure from motion. arXiv preprint arXiv:1812.04605, 2018.
271
+ [48] Z. Teed and J. Deng. Raft: Recurrent all-pairs field transforms for optical flow. In European Conference on Computer Vision, pages 402–419. Springer, 2020.
272
+ [49] Z. Teed and J. Deng. Tangent space backpropagation for 3d transformation groups. In Conference on Computer Vision and Pattern Recognition, 2021.
273
+ [50] B. Ummenhofer, H. Zhou, J. Uhrig, N. Mayer, E. Ilg, A. Dosovitskiy, and T. Brox. Demon: Depth and motion network for learning monocular stereo. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5038–5047, 2017.
274
+ [51] L. von Stumberg, P. Wenzel, N. Yang, and D. Cremers. Lm-reloc: Levenberg-marquardt based direct visual relocalization. arXiv preprint arXiv:2010.06323, 2020.
275
+ [52] S. Wang, R. Clark, H. Wen, and N. Trigoni. Deepvo: Towards end-to-end visual odometry with deep recurrent convolutional neural networks. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 2043–2050. IEEE, 2017.
276
+ [53] W. Wang, Y. Hu, and S. Scherer. Tartanvo: A generalizable learning-based vo. arXiv preprint arXiv:2011.00359, 2020.
277
+ [54] W. Wang, D. Zhu, X. Wang, Y. Hu, Y. Qiu, C. Wang, Y. Hu, A. Kapoor, and S. Scherer. Tartanair: A dataset to push the limits of visual slam. arXiv preprint arXiv:2003.14338, 2020.
278
+ [55] T. Whelan, M. Kaess, H. Johannsson, M. Fallon, J. J. Leonard, and J. McDonald. Real-time large-scale dense rgb-d slam with volumetric fusion. The International Journal of Robotics Research, 34(4-5):598–626, 2015.
279
+ [56] T. Whelan, S. Leutenegger, R. Salas-Moreno, B. Glocker, and A. Davison. Elasticfusion: Dense slam without a pose graph. Robotics: Science and Systems, 2015.
280
+ [57] N. Yang, L. v. Stumberg, R. Wang, and D. Cremers. D3vo: Deep depth, deep pose and deep uncertainty for monocular visual odometry. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1281–1292, 2020.
281
+ [58] N. Yang, R. Wang, J. Stuckler, and D. Cremers. Deep virtual stereo odometry: Leveraging deep depth prediction for monocular direct sparse odometry. In Proceedings of the European Conference on Computer Vision (ECCV), pages 817–833, 2018.
282
+ [59] H. Zhou, B. Ummenhofer, and T. Brox. Deeptam: Deep tracking and mapping. In Proceedings of the European conference on computer vision (ECCV), pages 822–838, 2018.
283
+ [60] J. Zubizarreta, I. Aguinaga, and J. M. M. Montiel. Direct sparse mapping. IEEE Transactions on Robotics, 36(4):1363–1370, 2020.
parse/train/ZBfUo_dr4H/ZBfUo_dr4H_content_list.json ADDED
@@ -0,0 +1,1233 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DROID-SLAM: Deep Visual SLAM for Monocular, Stereo, and RGB-D Cameras ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 187,
8
+ 122,
9
+ 812,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Zachary Teed Jia Deng Princeton University {zteed,jiadeng}@princeton.edu ",
17
+ "bbox": [
18
+ 387,
19
+ 224,
20
+ 612,
21
+ 267
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 303,
32
+ 535,
33
+ 319
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "We introduce DROID-SLAM, a new deep learning based SLAM system. DROIDSLAM consists of recurrent iterative updates of camera pose and pixelwise depth through a Dense Bundle Adjustment layer. DROID-SLAM is accurate, achieving large improvements over prior work, and robust, suffering from substantially fewer catastrophic failures. Despite training on monocular video, it can leverage stereo or RGB-D video to achieve improved performance at test time. The URL to our open source code is https://github.com/princeton-vl/DROID-SLAM. ",
40
+ "bbox": [
41
+ 232,
42
+ 333,
43
+ 766,
44
+ 430
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 454,
55
+ 310,
56
+ 472
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Simultaneous Localization and Mapping (SLAM) aims to (1) build a map of the environment and (2) localize the agent within the environment. It is a special form of Structure-from-Motion (SfM) focused on accurate tracking of long-term trajectories. It is a critical capability for robotics, especially autonomous vehicles. In this work, we address visual SLAM, where sensor recordings come in the form of images captured from a monocular, stereo, or RGB-D camera. ",
63
+ "bbox": [
64
+ 174,
65
+ 484,
66
+ 825,
67
+ 554
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "The SLAM problem has been approached from a number of different angles. Early work was built using probabilistic and filtering based approaches [12, 30], and alternating optimization of the map and camera poses [34, 16]. More recently, modern SLAM systems have leveraged least-squares optimization. A key element for accuracy has been full Bundle Adjustment (BA), which jointly optimizes the camera poses and the 3D map in a single optimization problem. One advantage of the optimization-based formulation is that a SLAM system can be easily modified to leverage different sensors. For example, ORB-SLAM3 [5] supports monocular, stereo, RGB-D, and IMU sensors, and modern systems can support a variety of camera models [5, 27, 42, 6]. Despite significant progress, current SLAM systems lack the robustness demanded for many real-world applications. Failures come in many forms, such as lost feature tracks, divergence in the optimization algorithm, and accumulation of drift. ",
74
+ "bbox": [
75
+ 174,
76
+ 560,
77
+ 825,
78
+ 713
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Deep learning has been proposed as a solution to many of these failure cases. Previous work has investigated replacing hand-crafted with learned features[13, 7, 29, 26, 35], using neural 3D representations[46, 1, 9, 45, 44, 25, 22], and combining learned energy terms with classical optimization backends[58, 57]. Other work has tried to learn SLAM or VO systems end-to-end [59, 47, 53, 52, 46]. While these systems are sometimes more robust, they fall far short of the accuracy of their classical counterparts on common benchmarks. ",
85
+ "bbox": [
86
+ 174,
87
+ 719,
88
+ 825,
89
+ 803
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this work we introduce DROID-SLAM, a new SLAM system based on deep learning. It has state-of-the-art performance, outperforming existing SLAM systems, classical or learning-based, on challenging benchmarks with very large margins. In particular, it has the following advantages: ",
96
+ "bbox": [
97
+ 176,
98
+ 808,
99
+ 825,
100
+ 851
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "• High Accuracy: We achieve large improvements over prior work across multiple datasets and modalities. On the TartanAir SLAM competition [54], we reduce error by $62 \\%$ over the best prior result on the monocular track and $60 \\%$ on the stereo track. We rank 1st on the ",
107
+ "bbox": [
108
+ 217,
109
+ 861,
110
+ 823,
111
+ 902
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/1d529559adf3b5ab64f169b618c0c5f063e97ffd80568a42cc8609f1348f8b79.jpg",
118
+ "image_caption": [
119
+ "Figure 1: DROID-SLAM can operate on monocular, stereo, and RGB-D video. It builds a dense 3D map of the environment while simultaneously localizing the camera within the map. "
120
+ ],
121
+ "image_footnote": [],
122
+ "bbox": [
123
+ 191,
124
+ 88,
125
+ 823,
126
+ 188
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "ETH-3D RGB-D SLAM leaderboard [41], outperforming the second place by $3 5 \\%$ under the AUC metric which considers both error and rate of catastrophic failure. On EuRoC [2], with monocular input, we reduce error by $82 \\%$ among methods with zero failures, and by $43 \\%$ over ORB-SLAM3 considering only the 10 out of 11 sequences it succeeds on. With stereo input, we reduce error by $71 \\%$ over ORB-SLAM3. On TUM-RGBD [43], we reduce error by $83 \\%$ among the methods with zero failures. ",
133
+ "bbox": [
134
+ 230,
135
+ 261,
136
+ 825,
137
+ 343
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• High Robustness: We have substantially fewer catastrophic failures than prior systems. On ETH-3D, we successfully track 30 of the 32 RGB-D datasets, while the next best successfully tracks only 19/32. On TartanAir, EuRoC, and TUM-RGBD, we have zero failures. ",
144
+ "bbox": [
145
+ 217,
146
+ 352,
147
+ 825,
148
+ 393
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "• Strong Generalization: Our system, trained only with monocular input, can directly use stereo or RGB-D input to get improved accuracy without any retraining. All of our results across 4 datasets and 3 modalities are achieved by a single model, trained once with only monocular input entirely on the synthetic TartanAir dataset. ",
155
+ "bbox": [
156
+ 218,
157
+ 401,
158
+ 825,
159
+ 455
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "The strong performance and generalization of DROID-SLAM is made possible by its “Differentiable Recurrent Optimization-Inspired Design” (DROID), which is an end-to-end differentiable architecture that combines the strengths of both classical approaches and deep networks. Specifically, it consists of recurrent iterative updates, building upon RAFT [48] for optical flow but introducing two key innovations. ",
166
+ "bbox": [
167
+ 174,
168
+ 468,
169
+ 825,
170
+ 537
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "First, unlike RAFT, which iteratively updates optical flow, we iteratively update camera poses and depth. Whereas RAFT operates on two frames, our updates are applied to an arbitrary number of frames, enabling joint global refinement of all camera poses and depth maps, essential for minimizing drift for long trajectories and loop closures. ",
177
+ "bbox": [
178
+ 174,
179
+ 545,
180
+ 825,
181
+ 599
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "Second, each update of camera poses and depth maps in DROID-SLAM is produced by a differentiable Dense Bundle Adjustment (DBA) layer, which computes a Gauss-Newton update to camera poses and dense per-pixel depth so as to maximize their compatibility with the current estimate of optical flow. This DBA layer leverages geometric constraints, improves accuracy and robustness, and enables a monocular system to handle stereo or RGB-D input without retraining. ",
188
+ "bbox": [
189
+ 174,
190
+ 606,
191
+ 825,
192
+ 675
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "text",
198
+ "text": "The design of DROID-SLAM is novel. The closest prior deep architectures are DeepV2D [47] and BA-Net [46], both of which were focused on depth estimation and reported limited SLAM results. DeepV2D alternates between updating depth and updating camera poses, instead of bundle adjustment. BA-Net has a bundle adjustment layer, but their layer is substantially different: it is not “dense” in that it optimizes over a small number of coefficients used to linearly combine a depth basis (a set of pre-predicted depth maps), whereas we optimize over per-pixel depth directly, without being handicapped by a depth basis. In addition, BA-Net optimizes photometric reprojection error (in feature space), whereas we optimize geometric error, leveraging state-of-the-art flow estimation. ",
199
+ "bbox": [
200
+ 173,
201
+ 683,
202
+ 825,
203
+ 792
204
+ ],
205
+ "page_idx": 1
206
+ },
207
+ {
208
+ "type": "text",
209
+ "text": "We perform extensive evaluation across four different datasets and three different sensor modalities, demonstrating state-of-the-art performance in all cases. We also include ablation studies that shed light on important design decisions and hyperparameters. ",
210
+ "bbox": [
211
+ 174,
212
+ 799,
213
+ 825,
214
+ 842
215
+ ],
216
+ "page_idx": 1
217
+ },
218
+ {
219
+ "type": "text",
220
+ "text": "2 Related Work ",
221
+ "text_level": 1,
222
+ "bbox": [
223
+ 174,
224
+ 863,
225
+ 321,
226
+ 881
227
+ ],
228
+ "page_idx": 1
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Modern SLAM systems treat localization and mapping as a joint optimization problem [4]. ",
233
+ "bbox": [
234
+ 169,
235
+ 897,
236
+ 767,
237
+ 911
238
+ ],
239
+ "page_idx": 1
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "Visual SLAM focuses on observations in the form of monocular, stereo, or RGB-D images. These approaches are commonly categorized as either being direct or indirect [15]. Indirect approaches [31, 32, 5, 37] first process the image into an intermediate representation by detecting points of interest and attaching feature descriptors. Features are then matched between images. Indirect approaches optimize camera pose and a 3D point cloud by minimizing reprojection error–the distance between a projected 3D point and its location in the image. ",
244
+ "bbox": [
245
+ 174,
246
+ 90,
247
+ 825,
248
+ 174
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "Direct approaches model the image formation process and define an objective function over photometric error [16, 15, 60]. One advantage of direct approaches is that they can model more information about the image, such as lines and intensity variations[15] which are not used by indirect approaches. However, photometric errors typically lead to more difficult optimization problems, and direct approaches are less robust to geometric distortion such as rolling shutter artifacts. This approach requires more sophisticated optimization techniques, such as coarse-to-fine image pyramids to avoid local minimum. ",
255
+ "bbox": [
256
+ 174,
257
+ 181,
258
+ 825,
259
+ 277
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "Our method does not clearly fit into either of the categories. Like the direct approach, we do not require preprocessing steps to detect and match features between the images. We instead use the full image, allowing us to leverage a wider range of information than indirect methods with typically only use corners and edges. However, we minimize reprojection error similar to indirect methods. This is an easier optimization problem and avoids the need for more complicated representations such as image pyramids. In this sense, our approach borrows the best of both approaches: the smoother objective function of indirect approaches with the greater modeling capacity of indirect approaches. ",
266
+ "bbox": [
267
+ 174,
268
+ 284,
269
+ 825,
270
+ 382
271
+ ],
272
+ "page_idx": 2
273
+ },
274
+ {
275
+ "type": "text",
276
+ "text": "Deep Learning has more recently been applied to the SLAM problem. Many works have focused on training systems for particular subproblems, such as feature detection [13, 7, 29, 26, 35], feature matching and outlier rejection [38, 36], and localization [51, 39]. SuperGlue [38] was designed to perform feature matching and verification and make 2-view pose estimate much more robust. Our network also draws inspiration from Dusmanu et al[14], which builds a neural network into the SfM pipeline to improve keypoint localization accuracy. ",
277
+ "bbox": [
278
+ 174,
279
+ 387,
280
+ 825,
281
+ 470
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "Other works have focused on training SLAM systems end-to-end [59, 46, 8, 50, 24, 47, 53]. These methods are not full SLAM systems, but instead focus on small scale reconstruction on the order of two [8, 50, 53] up to a dozen frames [59, 46, 47]. They lack many of the core capabilities of modern SLAM systems such as loop closure and global bundle adjustment which inhibit their ability to perform large scale reconstruction as demonstrated in our experiments. ∇SLAM[23] implements several existing SLAM algorithms as differentiable computation graphs, allowing for errors in the reconstruction to be backpropagated back to sensor measurements. While this approach is differentiable, it has no trainable parameters, meaning the performance of the system is limited by the accuracy of the classical algorithm they emulate. ",
288
+ "bbox": [
289
+ 174,
290
+ 477,
291
+ 825,
292
+ 602
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "DeepFactors[9] is the most complete deep SLAM system, building on the earlier CodeSLAM[1]. It performs joint optimization of the pose and depth variables, and is capable of short and long-range loop closure. Similar to BA-Net[46], DeepFactors optimizes the parameters of a learned depth basis during inference. In contrast, we do not rely on a learned basis, but instead optimize pixelwise depth. This allows our network to better generalize to new datasets since our depth representation is not tied to the training dataset. ",
299
+ "bbox": [
300
+ 174,
301
+ 607,
302
+ 825,
303
+ 691
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "3 Approach ",
310
+ "text_level": 1,
311
+ "bbox": [
312
+ 174,
313
+ 709,
314
+ 287,
315
+ 727
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "We take a video as input with two objectives: estimate the trajectory of the camera and build a 3D map of the environment. We first describe the monocular setting; in Sec. 3.4 we describe how to generalize the system to stereo and RGB-D video. ",
322
+ "bbox": [
323
+ 176,
324
+ 741,
325
+ 823,
326
+ 782
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "Representation: Our network operates on an ordered collection of images, $\\{ \\mathbf { I } _ { t } \\} _ { t = 0 } ^ { N }$ . For each image $t$ , we maintain two state variables: camera pose $\\mathbf { G } _ { t } \\in S E ( 3 )$ and inverse depth $\\check { \\mathbf { d } } _ { t } \\in \\mathbb { R } _ { + } ^ { H \\times W }$ . The set of poses, $\\{ \\mathbf { G } _ { t } \\} _ { t = 0 } ^ { N }$ , and set of inverse depths $\\{ \\mathbf { d } _ { t } \\} _ { t = 0 } ^ { N }$ are unknown state variables, which get iteratively updated during inference as new frames are processed. For the reminder of the paper, when we refer to depths, note that we are using the inverse depth parameterization. ",
333
+ "bbox": [
334
+ 174,
335
+ 789,
336
+ 825,
337
+ 863
338
+ ],
339
+ "page_idx": 2
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "We adopt a frame-graph $( \\nu , \\mathcal { E } )$ to represent co-visibility between frames. An edge $( i , j ) \\in \\mathcal { E }$ means image $\\mathbf { I } _ { i }$ and $\\mathbf { I } _ { j }$ have overlapping fields of view which shared points. The frame graph is built dynamically during training and inference. After each pose or depth update, we can recompute visibility to update the frame graph. If the camera returns to a previously mapped region, we add long range connections in the graph to perform loop closure. ",
344
+ "bbox": [
345
+ 174,
346
+ 869,
347
+ 823,
348
+ 911
349
+ ],
350
+ "page_idx": 2
351
+ },
352
+ {
353
+ "type": "image",
354
+ "img_path": "images/304389c6e297fe3835b1aedd0e7a558a3c31abe26192a228e5a023886a7925d9.jpg",
355
+ "image_caption": [
356
+ "Figure 2: Illustration of the update operator. The operator acts on edges in the frame graph, predicting flow revisions which are mapped to depth and pose update through the (DBA) layer. "
357
+ ],
358
+ "image_footnote": [],
359
+ "bbox": [
360
+ 295,
361
+ 87,
362
+ 732,
363
+ 246
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "",
370
+ "bbox": [
371
+ 173,
372
+ 313,
373
+ 823,
374
+ 342
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "3.1 Feature Extraction and Correlation ",
381
+ "text_level": 1,
382
+ "bbox": [
383
+ 176,
384
+ 353,
385
+ 460,
386
+ 368
387
+ ],
388
+ "page_idx": 3
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "Features are extracted from each new image added to they system. Key components of this stage are borrowed from RAFT[48]. ",
393
+ "bbox": [
394
+ 173,
395
+ 375,
396
+ 823,
397
+ 404
398
+ ],
399
+ "page_idx": 3
400
+ },
401
+ {
402
+ "type": "text",
403
+ "text": "Feature Extraction Each of the input images are processed by a feature extraction network. The network consists of 6 residual blocks and 3 downsampling layers, producing dense feature maps at 1/8 the input image resolution. Like RAFT[48], we use two separate networks: a feature network and a context network. The feature network is used to build the set of correlation volumes, while the context features are injected into the network during each application of the update operator. ",
404
+ "bbox": [
405
+ 173,
406
+ 410,
407
+ 825,
408
+ 479
409
+ ],
410
+ "page_idx": 3
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "Correlation Pyramid For each edge in the frame graph, $( i , j ) \\in \\mathcal { E }$ , we compute a 4D correlation volume by taking the dot product between all-pairs of feature vectors in $g _ { \\boldsymbol { \\theta } } ( I _ { i } )$ and $g _ { \\boldsymbol { \\theta } } ( I _ { j } )$ ",
415
+ "bbox": [
416
+ 173,
417
+ 486,
418
+ 823,
419
+ 515
420
+ ],
421
+ "page_idx": 3
422
+ },
423
+ {
424
+ "type": "equation",
425
+ "img_path": "images/2c4c615334ee0efc31e343d067a3fe735589bc3f98fca5309efa8ee07e2eb42a.jpg",
426
+ "text": "$$\nC _ { u _ { 1 } v _ { 1 } u _ { 2 } v _ { 2 } } ^ { i j } = \\langle g _ { \\theta } ( I _ { i } ) _ { u _ { 1 } v _ { 1 } } , g _ { \\theta } ( I _ { j } ) _ { u _ { 2 } v _ { 2 } } \\rangle\n$$",
427
+ "text_format": "latex",
428
+ "bbox": [
429
+ 374,
430
+ 521,
431
+ 624,
432
+ 542
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "We then perform average pooling of the last two dimension of the correlation volume following RAFT[48] to form a 4-level correlation pyramid. ",
439
+ "bbox": [
440
+ 174,
441
+ 547,
442
+ 825,
443
+ 575
444
+ ],
445
+ "page_idx": 3
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "Correlation Lookup We define a lookup operator which indexes the correlation volume using a grid with radius $r$ , $\\mathbf { , } \\ L _ { r } : \\mathbb { R } ^ { H \\times W \\times H \\times W } \\times \\mathbb { R } ^ { H \\times W \\times 2 } \\mapsto \\mathbb { R } ^ { H \\times W \\times ( r + 1 ) ^ { 2 } }$ . ",
450
+ "bbox": [
451
+ 174,
452
+ 582,
453
+ 823,
454
+ 612
455
+ ],
456
+ "page_idx": 3
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "The lookup operator takes an $H \\times W$ grid of coordinates as input and values are retrieved from the correlation volume using bilinear interpolation. The operator is applied to each correlation volume in the pyramid and the final feature vector is computed by concatenating the results at each level. ",
461
+ "bbox": [
462
+ 173,
463
+ 617,
464
+ 826,
465
+ 661
466
+ ],
467
+ "page_idx": 3
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "3.2 Update Operator ",
472
+ "text_level": 1,
473
+ "bbox": [
474
+ 174,
475
+ 676,
476
+ 333,
477
+ 693
478
+ ],
479
+ "page_idx": 3
480
+ },
481
+ {
482
+ "type": "text",
483
+ "text": "The core component of our SLAM system is a learned update operator show in Fig. 2. The update operator is a $3 \\times 3$ convolutional GRU with hidden state $\\mathbf { h }$ . Each application of the operator updates the hidden state, and additionally produces a pose update, $\\Delta \\xi ^ { ( k ) }$ , and depth update, $\\Delta \\mathbf { d } ^ { ( k ) }$ . The pose and depth updates are applied to the current depth and pose estimates through retraction on the SE3 manifold and vector addition respectively ",
484
+ "bbox": [
485
+ 173,
486
+ 702,
487
+ 825,
488
+ 775
489
+ ],
490
+ "page_idx": 3
491
+ },
492
+ {
493
+ "type": "equation",
494
+ "img_path": "images/14000a7d46092f8bff030bc2cce82190d5fa8ca6735e70be82edb9e78184adae.jpg",
495
+ "text": "$$\n\\mathbf { G } ^ { ( k + 1 ) } = \\mathrm { E x p } ( \\Delta \\pmb { \\xi } ^ { ( k ) } ) \\circ \\mathbf { G } ^ { ( k ) } , \\qquad \\mathbf { d } ^ { ( k + 1 ) } = \\Delta \\mathbf { d } ^ { ( k ) } + \\mathbf { d } ^ { ( k ) } .\n$$",
496
+ "text_format": "latex",
497
+ "bbox": [
498
+ 295,
499
+ 781,
500
+ 702,
501
+ 801
502
+ ],
503
+ "page_idx": 3
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "Iterative applications of the update operator produce a sequence of poses and depths, with the expectation of converging to a fixed point $\\{ \\mathbf { G } ^ { ( k ) } \\} \\to \\mathbf { G } ^ { * }$ , $\\{ \\mathbf { d } ^ { ( k ) } \\} \\mathbf { d } ^ { * }$ , reflecting the true reconstruction. ",
508
+ "bbox": [
509
+ 173,
510
+ 808,
511
+ 825,
512
+ 839
513
+ ],
514
+ "page_idx": 3
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "Correspondence At the start of each iteration we use the current estimates of poses and depths to estimate correspondence. Given a grid of pixel coordinates, $\\mathbf { p } _ { i } \\in \\mathbb { R } ^ { H \\times W \\times 2 }$ in frame $i$ , we compute the dense correspondence field $\\mathbf { p } _ { i j }$ ",
519
+ "bbox": [
520
+ 174,
521
+ 843,
522
+ 825,
523
+ 887
524
+ ],
525
+ "page_idx": 3
526
+ },
527
+ {
528
+ "type": "equation",
529
+ "img_path": "images/472d3683bbc2b4816c7ebbb4172f86b9d9affdd4afba48fc772280af1a9ffba0.jpg",
530
+ "text": "$$\n\\mathbf { p } _ { i j } = \\Pi _ { c } \\big ( \\mathbf { G } _ { i j } \\circ \\Pi _ { c } ^ { - 1 } \\big ( \\mathbf { p } _ { i } , \\mathbf { d } _ { i } \\big ) \\big ) , \\qquad \\mathbf { p } _ { i j } \\in \\mathbb { R } ^ { H \\times W \\times 2 } \\qquad \\mathbf { G } _ { i j } = \\mathbf { G } _ { j } \\circ \\mathbf { G } _ { i } ^ { - 1 } .\n$$",
531
+ "text_format": "latex",
532
+ "bbox": [
533
+ 246,
534
+ 893,
535
+ 751,
536
+ 912
537
+ ],
538
+ "page_idx": 3
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "for each edge $( i , j ) \\in \\mathcal { E }$ in the frame graph. Here $\\Pi _ { c }$ is the camera model mapping a set of 3D points onto the image and $\\Pi _ { c } ^ { - 1 }$ is the inverse projection function mapping inverse depth map d and coordinate grid $\\mathbf { p } _ { i }$ to a 3D point cloud (we provide formulas and Jacobians in the appendix). $\\mathbf { p } _ { i j }$ represents the coordinates of pixels $\\mathbf { p } _ { i }$ mapped into frame $j$ using the estimated pose and depth. ",
543
+ "bbox": [
544
+ 174,
545
+ 90,
546
+ 825,
547
+ 147
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "Inputs We use the correspondence field to index the correlation volumes. For each edge $( i , j ) \\in \\mathcal { E }$ we use $\\mathbf { p } _ { i j }$ to perform lookup from the correlation volume $\\mathbf { C } _ { i j }$ to retrieve correlation features. Additionally, we use the correspondence field to derive optical flow induced by camera motion as the difference $\\mathbf { p } _ { i j } - \\mathbf { p } _ { j }$ . Furthermore, the residual from the previous BA solution is concatenated with the flow field allowing the network to use feedback from the previous iteration. ",
554
+ "bbox": [
555
+ 174,
556
+ 152,
557
+ 825,
558
+ 223
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "The correlation features provide information about visual similarity in the neighbourhood of $\\mathbf { p } _ { i j }$ allowing the network to learn to align visually similar image regions. However, correspondence is sometimes ambiguous. The flow provides an complementary source of information allowing the network to exploit smoothness in the motion fields to gain robustness. ",
565
+ "bbox": [
566
+ 174,
567
+ 228,
568
+ 823,
569
+ 285
570
+ ],
571
+ "page_idx": 4
572
+ },
573
+ {
574
+ "type": "text",
575
+ "text": "Update The correlation features and flow features are each mapped through two convolutional layers before being injected into the GRU. Additionally, we inject context features, as extracted by the context network, into the GRU through element-wise addition. ",
576
+ "bbox": [
577
+ 174,
578
+ 290,
579
+ 823,
580
+ 333
581
+ ],
582
+ "page_idx": 4
583
+ },
584
+ {
585
+ "type": "text",
586
+ "text": "The ConvGRU is a local operation with a small receptive field. We extract global context by averaging the hidden state across the spatial dimensions of the image and use this feature vector as additional input to the GRU. Global context is important in SLAM because incorrect correspondences, caused by large moving objects for example, can degrade the accuracy of the system. It is important for the network to recognize and reject erroneous correspondence. ",
587
+ "bbox": [
588
+ 173,
589
+ 338,
590
+ 825,
591
+ 410
592
+ ],
593
+ "page_idx": 4
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "The GRU produces an updated hidden state $\\mathbf { h } ^ { ( k + 1 ) }$ . Instead of predicting updates to the depth or pose directly, we instead predict updates in the space of dense flow fields. We map the hidden state through two additional convoluation layers to produce two outputs: (1) a revision flow field $\\mathbf { r } _ { i j } \\in \\mathbb { R } ^ { H \\times W \\times 2 }$ and (2) associated confidence map $\\mathbf { w } _ { i j } \\in \\mathbb { R } _ { + } ^ { H \\times W \\times 2 }$ . The revision $\\mathbf { r } _ { i j }$ is a correction term predicted by the network to correct errors in the dense correspondence field. We denote the corrected correspondence as $\\mathbf { p } _ { i j } ^ { * } = \\mathbf { r } _ { i j } + \\mathbf { p } _ { i j }$ ",
598
+ "bbox": [
599
+ 173,
600
+ 415,
601
+ 825,
602
+ 503
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "We then pool the hidden state over all features which share the same source view $i$ and predict a pixel-wise damping factor $\\lambda$ . We use the softplus operator to ensure that the damping term is positive. Additionally, we use the pooled features to predict a $8 \\mathrm { x } 8$ mask which can be used to upsample the inverse depth estimate. ",
609
+ "bbox": [
610
+ 174,
611
+ 507,
612
+ 825,
613
+ 563
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "Dense Bundle Adjustment Layer (DBA) The Dense Bundle Adjustment Layer (DBA) maps the set of flow revisions into a set of pose and pixelwise depth updates. We define the cost function over the entire frame graph ",
620
+ "bbox": [
621
+ 174,
622
+ 569,
623
+ 825,
624
+ 612
625
+ ],
626
+ "page_idx": 4
627
+ },
628
+ {
629
+ "type": "equation",
630
+ "img_path": "images/52708fb800e9cf761b0e2ecb07689bc1cdc00682c91d4465da5afdfda5ea9a73.jpg",
631
+ "text": "$$\n\\mathbf { E } ( \\mathbf { G } ^ { \\prime } , \\mathbf { d } ^ { \\prime } ) = \\sum _ { ( i , j ) \\in \\mathcal { E } } \\big \\| \\mathbf { p } _ { i j } ^ { * } - \\Pi _ { c } \\big ( \\mathbf { G } _ { i j } ^ { \\prime } \\circ \\Pi _ { c } ^ { - 1 } \\big ( \\mathbf { p } _ { i } , \\mathbf { d } _ { i } ^ { \\prime } \\big ) \\big ) \\big \\| _ { \\Sigma _ { i j } } ^ { 2 } \\qquad \\Sigma _ { i j } = \\mathrm { d i a g } \\mathbf { w } _ { i j } .\n$$",
632
+ "text_format": "latex",
633
+ "bbox": [
634
+ 240,
635
+ 617,
636
+ 756,
637
+ 656
638
+ ],
639
+ "page_idx": 4
640
+ },
641
+ {
642
+ "type": "text",
643
+ "text": "where $\\lVert \\cdot \\rVert _ { \\Sigma }$ is the Mahalanobis distance which weights the error terms based on the confidence weights $\\mathbf { w } _ { i j }$ . Eqn. 4 states that we want an updated pose $\\mathbf { G } ^ { \\prime }$ and depth $\\mathbf { d } ^ { \\prime }$ such that reprojected points match the revised correspondence $\\mathbf { p } _ { i j } ^ { * }$ as predicted by the update operator. ",
644
+ "bbox": [
645
+ 173,
646
+ 662,
647
+ 825,
648
+ 705
649
+ ],
650
+ "page_idx": 4
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "We use local parameterization to linearize Eqn. 4 and use the Gauss-Newton algorithm solve for updates $( \\Delta \\xi , \\Delta \\mathbf { d } )$ . Since each term in Eqn. 4 only includes a single depth variable, the Hessian matrix has block diagonal structure. Separating pose and depth variables, the system can be solved efficiently using the Schur complement with the pixelwise damping factor $\\lambda$ added to the depth block ",
655
+ "bbox": [
656
+ 174,
657
+ 710,
658
+ 825,
659
+ 767
660
+ ],
661
+ "page_idx": 4
662
+ },
663
+ {
664
+ "type": "equation",
665
+ "img_path": "images/3df14bb8b9411e7d558e199464e00020318e281ad8cd725ea81aadc90d814247.jpg",
666
+ "text": "$$\n\\begin{array} { r } \\left[ \\begin{array} { l l } { \\mathbf { B } } & { \\mathbf { E } } \\\\ { \\mathbf { E } ^ { T } } & { \\mathbf { C } } \\end{array} \\right] \\left[ \\boldsymbol { \\Delta } \\pmb { \\xi } \\right] = \\left[ \\mathbf { v } \\right] \\qquad \\begin{array} { r l } & { \\boldsymbol { \\Delta } \\pmb { \\xi } = [ \\mathbf { B } - \\mathbf { E } \\mathbf { C } ^ { - 1 } \\mathbf { E } ^ { T } ] ^ { - 1 } ( \\mathbf { v } - \\mathbf { E } \\mathbf { C } ^ { - 1 } \\mathbf { w } ) } \\\\ & { \\boldsymbol { \\Delta } \\mathbf { d } = \\mathbf { C } ^ { - 1 } ( \\mathbf { w } - \\mathbf { E } ^ { T } \\boldsymbol { \\Delta } \\pmb { \\xi } ) } \\end{array} \\end{array}\n$$",
667
+ "text_format": "latex",
668
+ "bbox": [
669
+ 243,
670
+ 772,
671
+ 745,
672
+ 809
673
+ ],
674
+ "page_idx": 4
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "where $\\mathbf { C }$ is diagonal and can be cheaply inverted ${ \\bf C } ^ { - 1 } = 1 / { \\bf C }$ . The DBA layer is implemented as part of the computation graph and backpropogation is performed through the layer during training. ",
679
+ "bbox": [
680
+ 173,
681
+ 815,
682
+ 825,
683
+ 845
684
+ ],
685
+ "page_idx": 4
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "3.3 Training ",
690
+ "text_level": 1,
691
+ "bbox": [
692
+ 173,
693
+ 861,
694
+ 274,
695
+ 876
696
+ ],
697
+ "page_idx": 4
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "Our SLAM system is implemented in PyTorch and we use the LieTorch extension [49] to perform backprogation in the tangent space of all group elements. ",
702
+ "bbox": [
703
+ 173,
704
+ 882,
705
+ 821,
706
+ 912
707
+ ],
708
+ "page_idx": 4
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "Removing gauge freedom In the monocular setting, the network is only able to recover the trajectory of the camera up to a similarity transform. One solution is to define a loss which is invariant to similarity transforms. However, the gauge-freedom still exists during training which poorly impacts the conditioning of the linear system and the stability of the gradients. We solve this problem by fixing the first two poses to the ground-truth poses of each training sequence. Fixing the first pose removes the 6-dof gauge freedom. Fixing the second pose resolves the scale freedom. ",
713
+ "bbox": [
714
+ 174,
715
+ 90,
716
+ 825,
717
+ 174
718
+ ],
719
+ "page_idx": 5
720
+ },
721
+ {
722
+ "type": "text",
723
+ "text": "Constructing training video Each training example consists of a 7-frame video sequence. In order to ensure stable training and good downstream performance, we want to sample videos which are not too easy nor too difficult. ",
724
+ "bbox": [
725
+ 176,
726
+ 181,
727
+ 821,
728
+ 222
729
+ ],
730
+ "page_idx": 5
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "The training set is composed of a collection of videos. For each video $i$ of length $N _ { i }$ , we precompute an $N _ { i } \\times N _ { i }$ distance matrix storing the average optical flow magnitude between each pair of frames. However, not all frames are covisible; and frames pairs with less than $50 \\%$ overlap are assigned a distance of infinity. During training, we dynamically generate videos by sampling paths in the distance matrix, such that the average flow between adjacent video frames is between 8px and 96px. ",
735
+ "bbox": [
736
+ 174,
737
+ 228,
738
+ 825,
739
+ 299
740
+ ],
741
+ "page_idx": 5
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Supervision We supervise our network using a combination of pose loss and flow loss. The flow loss is applied to pairs of adjacent frames. We compute the optical flow induced by the predicted depth and poses and the flow induced by the ground truth depth and poses. The loss is taken to be the average l2 distance between the two flow fields. ",
746
+ "bbox": [
747
+ 174,
748
+ 304,
749
+ 825,
750
+ 359
751
+ ],
752
+ "page_idx": 5
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Given a set of ground truth poses $\\{ \\mathbf { T } \\} _ { i } ^ { N }$ and predicted poses $\\{ \\mathbf { G } \\} _ { i } ^ { N }$ , the pose loss is taken to be the distance between the ground truth and predicted poses, $\\begin{array} { r } { \\mathcal { L } _ { p o s e } = \\sum _ { i } | | \\operatorname { L o g } _ { S E 3 } ( \\mathbf { T } _ { i } ^ { - 1 } \\cdot \\mathbf { G } _ { i } ) | | _ { 2 } } \\end{array}$ . We apply the losses to the output of every iteration with exponentially increasing weight using $\\gamma = 0 . 9$ . ",
757
+ "bbox": [
758
+ 174,
759
+ 366,
760
+ 825,
761
+ 411
762
+ ],
763
+ "page_idx": 5
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "3.4 SLAM System ",
768
+ "text_level": 1,
769
+ "bbox": [
770
+ 174,
771
+ 435,
772
+ 313,
773
+ 450
774
+ ],
775
+ "page_idx": 5
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "During inference, we compose the network into a full SLAM system. The SLAM system takes a video stream as input, and performs reconstruction and localization in real-time. Our system contains two threads which run asynchronously. The frontend thread takes in new frames, extracts features, selects keyframes, and performs local bundle adjustment. The backend thread simultaneously performs global bundle adjustment over the entire history of keyframes. We provide an overview of the system here, and provide more information in the appendix. ",
780
+ "bbox": [
781
+ 174,
782
+ 462,
783
+ 825,
784
+ 546
785
+ ],
786
+ "page_idx": 5
787
+ },
788
+ {
789
+ "type": "text",
790
+ "text": "Initialization Initialization is simple with DROID-SLAM. We simply collect frames until we have a set of 12. As we accumulate frames, we only keep the previous frame if optical flow is greater than 16px (estimated by applying one update iteration). Once 12 frames have been accumulated, we initialize a frame graph by creating an edges between keyframes which are within 3 timesteps apart, then run 10 iterations of the update operator. ",
791
+ "bbox": [
792
+ 173,
793
+ 551,
794
+ 825,
795
+ 622
796
+ ],
797
+ "page_idx": 5
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "Frontend The frontend operates directly on the incoming video stream. It maintains a collection of keyframes and a frame graph storing edges between covisible kefyrames. Keyframe poses and depths are actively being optimized. Features are first extracted from the incoming frames. The new frame is then added to the frame graph adding edges with its 3 closest neighbors as measured by mean optical flow. The pose is initialized using a linear motion model. We then apply several iterations of the update operator to update keyframe poses and depths. We fix the first two poses to remove gauge freedom but treat all depths as free variables. ",
802
+ "bbox": [
803
+ 174,
804
+ 627,
805
+ 825,
806
+ 726
807
+ ],
808
+ "page_idx": 5
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "After the new frame is tracked, we select a keyframe for removal. We compute distance between pairs of frames by computing the average optical flow magnitude and remove redundant frames. If no frame is a good candidate for removal, we remove the oldest keyframe. ",
813
+ "bbox": [
814
+ 174,
815
+ 731,
816
+ 825,
817
+ 773
818
+ ],
819
+ "page_idx": 5
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Backend The backend performs global bundle adjustment over the entire history of keyframes. During each iteration, we rebuild the frame graph using the flow between all pairs of keyframes, represented as an $N \\times N$ distance matrix. We first add edges between temporally adjacent keyframes. We then sample new edges from the distance matrix in order of increasing flow. With each selected edge, we suppress neighboring edges within a distance of 2, where distance is defined as the Chebyshev distance between index pairs $| | ( i , j ) - ( k , l ) | | _ { \\infty } = \\operatorname* { m a x } ( | i - k | , | j - l | )$ . ",
824
+ "bbox": [
825
+ 174,
826
+ 779,
827
+ 825,
828
+ 864
829
+ ],
830
+ "page_idx": 5
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "We then apply the update operator to the entire frame graph, often consisting of thousands of frames and edges. Storing the full set of correlation volumes would quickly exceed video memory. Instead, we use the memory efficient implementation proposed in RAFT [48]. ",
835
+ "bbox": [
836
+ 176,
837
+ 869,
838
+ 825,
839
+ 911
840
+ ],
841
+ "page_idx": 5
842
+ },
843
+ {
844
+ "type": "image",
845
+ "img_path": "images/9272db540c28a43e8ab054074f443b10bc601aba4494a3370e157a7c168fc922.jpg",
846
+ "image_caption": [
847
+ "Figure 3: DROID-SLAM can generalize to new datasets. In order, we show results from Tanks & Temples [21], ScanNet [10], Sintel [3], and ETH-3D [41]; all using monocular video. "
848
+ ],
849
+ "image_footnote": [],
850
+ "bbox": [
851
+ 181,
852
+ 97,
853
+ 807,
854
+ 309
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "During training, we implement dense bundle adjustment in PyTorch to leverage the automatic differentiation engine. At inference time, we use a custom CUDA kernel which takes advantage of the block-sparse structure of the problem, then perform sparse Cholesky decomposition on the reduced camera block. ",
861
+ "bbox": [
862
+ 174,
863
+ 387,
864
+ 825,
865
+ 443
866
+ ],
867
+ "page_idx": 6
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "We only perform full bundle adjustment on keyframe images. In order to recover the poses of non-keyframes, we perform motion-only bundle adjustment by iteratively estimating flow between each keyframe and its neighboring non-keyframes. During testing, we evaluate on the full camera trajectory, not just keyframes. ",
872
+ "bbox": [
873
+ 173,
874
+ 449,
875
+ 825,
876
+ 506
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "Stereo and RGB-D Our system can be easily modified for stereo and RGB-D video. In the case of RGB-D, we still treat depth as a variable, since sensor depth can be noisy and have missing observations, and simply add a term to the optimization objective (Eqn. 4) which penalizes the squared distance between the measured and predicted depth. For stereo, we use the exact same system described above, with just double the frames, and fix the relative pose between the left and right frames in the DBA layer. Cross camera edges in the graph allow us to leverage stereo information. ",
883
+ "bbox": [
884
+ 174,
885
+ 511,
886
+ 825,
887
+ 595
888
+ ],
889
+ "page_idx": 6
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "4 Experiments ",
894
+ "text_level": 1,
895
+ "bbox": [
896
+ 174,
897
+ 619,
898
+ 312,
899
+ 637
900
+ ],
901
+ "page_idx": 6
902
+ },
903
+ {
904
+ "type": "text",
905
+ "text": "We experiment on a diverse set of datasets and sensor modalities. We compare to both deep learning and established classical SLAM algorithms and put specific emphasis on cross-dataset generalization. Following prior work, we evaluate the accuracy of the camera trajectory [31, 15, 41], primarily using Absolute Trajectory Error (ATE) [43]. While some datasets have ground truth point clouds [21], there is no standard protocol to compare 3D reconstructions directly given by SLAM systems because a SLAM systems can choose which 3D points to reconstruct. Evaluating dense 3D reconstruction is typically considered in the domain of Multiview Stereo [19] and outside the scope of this work. ",
906
+ "bbox": [
907
+ 173,
908
+ 655,
909
+ 825,
910
+ 752
911
+ ],
912
+ "page_idx": 6
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "Our network is trained entirely on monocular video from the synthetic TartanAir dataset [54]. We train our network for 250k steps with a batch size of 4, resolution $3 8 4 \\times 5 1 2$ , and 7 frame clips, and unroll 15 update iterations. Training takes 1 week on 4 RTX-3090 GPUs. ",
917
+ "bbox": [
918
+ 176,
919
+ 758,
920
+ 823,
921
+ 801
922
+ ],
923
+ "page_idx": 6
924
+ },
925
+ {
926
+ "type": "table",
927
+ "img_path": "images/450f39f80018c9c4f55e15e250efc8eddad8b3fb05c6d45f53d3b499c061c4c8.jpg",
928
+ "table_caption": [
929
+ "Table 1: Results on the TartanAir monocular benchmark. "
930
+ ],
931
+ "table_footnote": [],
932
+ "table_body": "<table><tr><td>Monocular</td><td>MH000</td><td>MH001</td><td>MH002</td><td>MH003</td><td>MH004</td><td>MH005</td><td>MH006</td><td>MH007</td><td>Avg</td></tr><tr><td>ORB-SLAM[31]</td><td>1.30</td><td>0.04</td><td>2.37</td><td>2.45</td><td>X</td><td>X</td><td>21.47</td><td>2.73</td><td>-</td></tr><tr><td>DeepV2D[47]</td><td>6.15</td><td>2.12</td><td>4.54</td><td>3.89</td><td>2.71</td><td>11.55</td><td>5.53</td><td>3.76</td><td>5.03</td></tr><tr><td>TartanVO [53]</td><td>4.88</td><td>0.26</td><td>2.00</td><td>0.94</td><td>1.07</td><td>3.19</td><td>1.00</td><td>2.04</td><td>1.92</td></tr><tr><td>Ours</td><td>0.08</td><td>0.05</td><td>0.04</td><td>0.02</td><td>0.01</td><td>1.31</td><td>0.30</td><td>0.07</td><td>0.24</td></tr></table>",
933
+ "bbox": [
934
+ 238,
935
+ 823,
936
+ 753,
937
+ 881
938
+ ],
939
+ "page_idx": 6
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "TartanAir [54] (Monocular & Stereo) The TartanAir dataset is a challenging synthetic benchmark for evaluating SLAM algorithms and was used as part of the ECCV 2020 SLAM competition. We use the official test split [54], and provide ATE across all “Hard” sequences in Tab. 1. ",
944
+ "bbox": [
945
+ 173,
946
+ 90,
947
+ 825,
948
+ 133
949
+ ],
950
+ "page_idx": 7
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "Tab. 1 demonstrates both the robustness of our method (no catastrophic failures) and accuracy (very low drift). We retrain DeepV2D [47] on TartanAir as a baseline. On most sequences, we outperform existing methods by an order-of-magnitude and achieve ${ } ^ { 8 \\mathrm { { X } } }$ lower average error than TartanVO [53] and $2 0 \\mathrm { x }$ lower than DeepV2D [47]. We also use the TartanAir dataset to compare with the top submissions to the ECCV 2020 SLAM competition in Tab. 2. The top two submissions use systems ",
955
+ "bbox": [
956
+ 174,
957
+ 140,
958
+ 825,
959
+ 209
960
+ ],
961
+ "page_idx": 7
962
+ },
963
+ {
964
+ "type": "table",
965
+ "img_path": "images/ee6578f34f60b072bc389edc23210edd2aa143835d1110fe80c60802022651c4.jpg",
966
+ "table_caption": [],
967
+ "table_footnote": [],
968
+ "table_body": "<table><tr><td></td><td>Mono.</td><td>Stereo</td></tr><tr><td>OV²SLAM[17]</td><td>0.510</td><td>0.182</td></tr><tr><td>VOLDOR [28] + COLMAP [40]</td><td>0.440</td><td>0.177</td></tr><tr><td>SuperGlue [38] + SuperPoint [13] + COLMAP [40]</td><td>0.340</td><td>0.119</td></tr><tr><td>Ours</td><td>0.129</td><td>0.047</td></tr></table>",
969
+ "bbox": [
970
+ 334,
971
+ 224,
972
+ 660,
973
+ 285
974
+ ],
975
+ "page_idx": 7
976
+ },
977
+ {
978
+ "type": "text",
979
+ "text": "Table 2: Results on the TartanAir test set, compared with the top 3 submission to the ECCV 2020 SLAM competition. The score is computed using normalized relative pose error for all possible sequences of length $\\{ 5 , 1 0 , 1 5 , . . . , 4 0 \\}$ meters, see competition page for details. ",
980
+ "bbox": [
981
+ 174,
982
+ 295,
983
+ 825,
984
+ 337
985
+ ],
986
+ "page_idx": 7
987
+ },
988
+ {
989
+ "type": "text",
990
+ "text": "built on top of COLMAP [40] and run $4 0 \\mathbf { x }$ slower than real-time. Our method, on the other hand, runs 16x faster and achieves an error $62 \\%$ lower on the monocular benchmark and $60 \\%$ lower on the stereo benchmark. ",
991
+ "bbox": [
992
+ 176,
993
+ 356,
994
+ 821,
995
+ 397
996
+ ],
997
+ "page_idx": 7
998
+ },
999
+ {
1000
+ "type": "text",
1001
+ "text": "EuRoC [2] (Monocular & Stereo) In the remaining experiments, we are interested in the ability of our network to generalize to new cameras and environments. The EuRoC dataset consists of video captured from sensor on-board a micro aerial vehicle (MAV) and is a widely used benchmark to evaluate SLAM systems. We use the EuRoC dataset to evaluate both monocular and stereo performance and report results on Tab. 3. ",
1002
+ "bbox": [
1003
+ 174,
1004
+ 404,
1005
+ 825,
1006
+ 473
1007
+ ],
1008
+ "page_idx": 7
1009
+ },
1010
+ {
1011
+ "type": "table",
1012
+ "img_path": "images/821b2e37bd70840d578bc00372d6e2c64ec767491a7f3ece64daa00e1e5ae5a3.jpg",
1013
+ "table_caption": [
1014
+ "Table 3: Monocular SLAM on the EuRoC datasets, ATE[m]. † denotes visual odometry methods. "
1015
+ ],
1016
+ "table_footnote": [],
1017
+ "table_body": "<table><tr><td colspan=\"2\"></td><td>MH01</td><td>MH02</td><td>MH03</td><td>MH04</td><td>MH05</td><td>V101</td><td>V102</td><td>V103</td><td>V201</td><td>V202</td><td>V203</td><td>Avg</td></tr><tr><td rowspan=\"5\">qH/deea</td><td>DeepFactors [9]</td><td>1.587</td><td>1.479</td><td>3.139</td><td>5.331</td><td>4.002</td><td>1.520</td><td>0.679</td><td>0.900</td><td>0.876</td><td>1.905</td><td>1.021</td><td>2.040</td></tr><tr><td>DeepV2D [47]t</td><td>0.739</td><td>1.144</td><td>0.752</td><td>1.492</td><td>1.567</td><td>0.981</td><td>0.801</td><td>1.570</td><td>0.290</td><td>2.202</td><td>2.743</td><td>1.298</td></tr><tr><td>DeepV2D (Tartan Air)†</td><td>1.614</td><td>1.492</td><td>1.635</td><td>1.775</td><td>1.013</td><td>0.717</td><td>0.695</td><td>1.483</td><td>0.839</td><td>1.052</td><td>0.591</td><td>1.173</td></tr><tr><td>TartanVO1 [53]†</td><td>0.639</td><td>0.325</td><td>0.550</td><td>1.153</td><td>1.021</td><td>0.447</td><td>0.389</td><td>0.622</td><td>0.433</td><td>0.749</td><td>1.152</td><td>0.680</td></tr><tr><td>D3VO + DSO [57]t</td><td>-</td><td>-</td><td>0.08</td><td>-</td><td>0.09</td><td>-</td><td>-</td><td>0.11</td><td>-</td><td>0.05</td><td>0.19</td><td>-</td></tr><tr><td rowspan=\"4\">Cesssssr</td><td>ORB-SLAM [31]</td><td>0.071</td><td>0.067</td><td>0.071</td><td>0.082</td><td>0.060</td><td>0.015</td><td>0.020</td><td>X</td><td>0.021</td><td>0.018</td><td>X</td><td>-</td></tr><tr><td>DSO [15]t</td><td>0.046</td><td>0.046</td><td>0.172</td><td>3.810</td><td>0.110</td><td>0.089</td><td>0.107</td><td>0.903</td><td>0.044</td><td>0.132</td><td>1.152</td><td>0.601</td></tr><tr><td>SVO[18]t</td><td>0.100</td><td>0.120</td><td>0.410</td><td>0.430</td><td>0.300</td><td>0.070</td><td>0.210</td><td>X</td><td>0.110</td><td>0.110</td><td>1.080</td><td>·</td></tr><tr><td>DSM[60] ORB-SLAM3 [5]</td><td>0.039</td><td>0.036</td><td>0.055</td><td>0.057</td><td>0.067</td><td>0.095</td><td>0.059</td><td>0.076</td><td>0.056</td><td>0.057</td><td>0.784</td><td>0.126</td></tr><tr><td colspan=\"2\">Ours (odometry only)†</td><td>0.016</td><td>0.027</td><td>0.028</td><td>0.138</td><td>0.072</td><td>0.033</td><td>0.015</td><td>0.033</td><td>0.023</td><td>0.029</td><td>X</td><td>-</td></tr><tr><td colspan=\"2\">Ours</td><td>0.163 0.013</td><td>0.121 0.014</td><td>0.242 0.022</td><td>0.399 0.043</td><td>0.270 0.043</td><td>0.103 0.037</td><td>0.165 0.012</td><td>0.158</td><td>0.020</td><td>0.102 0.115 0.017 0.013</td><td>0.204 0.014</td><td>0.186 0.022</td></tr></table>",
1018
+ "bbox": [
1019
+ 205,
1020
+ 487,
1021
+ 790,
1022
+ 623
1023
+ ],
1024
+ "page_idx": 7
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "In the monocular setting, we achieve an average ATE of $2 . 2 \\mathrm { c m }$ , reducing error by $82 \\%$ among methods with zero failures, and by $43 \\%$ over ORB-SLAM3 when only comparing sequences where ORB-SLAM3 is successful. ",
1029
+ "bbox": [
1030
+ 176,
1031
+ 669,
1032
+ 823,
1033
+ 710
1034
+ ],
1035
+ "page_idx": 7
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "We compare to several deep learning approaches. We compare to DeepV2D trained on the TartanAir dataset and the publicly available version trained on NYUv2 [33] and ScanNet[10]. DeepFactors [9] was trained on ScanNet. We find that recent deep learning approaches [9, 47, 53] perform poorly on the EuRoC dataset compared to classical SLAM systems. This is due to poor generalization and dataset biases which lead to large amounts of drift; our method does not suffer from these issues. D3VO [57] is able to achieve both good robustness and accuracy by combining a neural network frontend with DSO as a backend, using 6 of the 11 sequences for evaluation and performing unsupervised training on the remaining ones, which contain the same scenes used for evaluation. ",
1040
+ "bbox": [
1041
+ 173,
1042
+ 717,
1043
+ 825,
1044
+ 829
1045
+ ],
1046
+ "page_idx": 7
1047
+ },
1048
+ {
1049
+ "type": "text",
1050
+ "text": "TUM-RGBD [43] The RGBD dataset consists of indoor scenes captured with handheld camera. This is a notoriously difficult dataset for monocular methods due to rolling shutter artifacts, motion blur, and heavy rotation. We benchmark prior work on the entirety of the freiburg1 set in Tab. 4. ",
1051
+ "bbox": [
1052
+ 174,
1053
+ 835,
1054
+ 825,
1055
+ 877
1056
+ ],
1057
+ "page_idx": 7
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "Classical SLAM algorithms such as ORB-SLAM tend to fail on most of the sequences. While deep learning methods are more robust, they obtain low accuracy on most of the evaluated sequences. Our ",
1062
+ "bbox": [
1063
+ 174,
1064
+ 882,
1065
+ 823,
1066
+ 911
1067
+ ],
1068
+ "page_idx": 7
1069
+ },
1070
+ {
1071
+ "type": "table",
1072
+ "img_path": "images/40fd359eb6e696b2a7bd8c74e1fc5a70af8c2bf44945768d8a3e5b27e9696eab.jpg",
1073
+ "table_caption": [],
1074
+ "table_footnote": [],
1075
+ "table_body": "<table><tr><td></td><td>360</td><td>desk</td><td>desk2</td><td>floor</td><td>plant</td><td>room</td><td>rpy</td><td>teddy</td><td>xyz</td><td>avg</td></tr><tr><td>ORB-SLAM2 [32] ORB-SLAM3[5]</td><td>X X</td><td>0.071 0.017</td><td>X 0.210</td><td>0.023 X</td><td>X 0.034</td><td>X X</td><td>X X</td><td>X X</td><td>0.010 0.009</td><td>: -</td></tr><tr><td>DeepTAM1 [59]</td><td>0.111</td><td>0.053</td><td>0.103</td><td>0.206</td><td>0.064</td><td>0.239</td><td>0.093</td><td>0.144</td><td>0.036</td><td>0.116</td></tr><tr><td>TartanVO² [53]</td><td>0.178</td><td>0.125</td><td>0.122</td><td>0.349</td><td>0.297</td><td>0.333</td><td>0.049</td><td>0.339</td><td>0.062</td><td>0.206</td></tr><tr><td>DeepV2D [47]</td><td>0.243</td><td>0.166</td><td>0.379</td><td>1.653</td><td>0.203</td><td>0.246</td><td>0.105</td><td>0.316</td><td>0.064</td><td>0.375</td></tr><tr><td>DeepV2D (TartanAir)</td><td>0.182</td><td>0.652</td><td>0.633</td><td>0.579</td><td>0.582</td><td>0.776</td><td>0.053</td><td>0.602</td><td>0.150</td><td>0.468</td></tr><tr><td>DeepFactors [9]</td><td>0.159</td><td>0.170</td><td>0.253</td><td>0.169</td><td>0.305</td><td>0.364</td><td>0.043</td><td>0.601</td><td>0.035</td><td>0.233</td></tr><tr><td>Ours</td><td>0.111</td><td>0.018</td><td>0.042</td><td>0.021</td><td>0.016</td><td>0.049</td><td>0.026</td><td>0.048</td><td>0.012</td><td>0.038</td></tr></table>",
1076
+ "bbox": [
1077
+ 276,
1078
+ 87,
1079
+ 718,
1080
+ 179
1081
+ ],
1082
+ "page_idx": 8
1083
+ },
1084
+ {
1085
+ "type": "text",
1086
+ "text": "Table 4: ATE on the TUM-RGBD benchmark. All methods are provided mono. video, 1except DeepTAM which uses RGB-D and 2TartanVO which uses ground truth to scale relative pose. ",
1087
+ "bbox": [
1088
+ 173,
1089
+ 191,
1090
+ 823,
1091
+ 219
1092
+ ],
1093
+ "page_idx": 8
1094
+ },
1095
+ {
1096
+ "type": "text",
1097
+ "text": "method is both robust and accurate. It successfully tracks all 9 sequences while achieving $83 \\%$ lower ATE than DeepFactors [9] and which succeeds on all videos and $90 \\%$ lower ATE than DeepV2D [47]. ",
1098
+ "bbox": [
1099
+ 173,
1100
+ 246,
1101
+ 825,
1102
+ 275
1103
+ ],
1104
+ "page_idx": 8
1105
+ },
1106
+ {
1107
+ "type": "image",
1108
+ "img_path": "images/be9d1f884bf4e0054f381943dd26e4c24baf1db7982edbe0eb27578756eb52ae.jpg",
1109
+ "image_caption": [
1110
+ "Figure 4: Generalization results on the RGB-D ETH3D-SLAM benchmark. (Left) Our method, which is trained only on the synthetic TartanAir dataset, ranks 1st on both the train and test splits. (Right) Plot of the number successful trajectories as a function of ATE. Our method successfully tracks 30/32 of the datasets where image data is available. "
1111
+ ],
1112
+ "image_footnote": [],
1113
+ "bbox": [
1114
+ 187,
1115
+ 292,
1116
+ 795,
1117
+ 407
1118
+ ],
1119
+ "page_idx": 8
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "ETH3D-SLAM [41] (RGB-D) Finally, we evaluate the RGB-D performance on the ETH3D-SLAM benchmark. In this setup, the network is also provided measurements from an RGB-D camera. We take our network trained on TartanAir and add an addition term in the optimization objective penalizing the distance between the predicted inv. depth and inv. depth measured by the sensor. Without any finetuning, our method ranks 1st on both the train and test splits. Several of the datasets are \"dark\" meaning no image data is available; on these datasets we do not submit any predictions. On the test set, we successfully track 30/32 RGB-D, improving over the next best of 19/32. ",
1124
+ "bbox": [
1125
+ 173,
1126
+ 481,
1127
+ 825,
1128
+ 578
1129
+ ],
1130
+ "page_idx": 8
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Timing and Memory Our system can run in real-time with 2 3090 GPUs. Tracking and local BA is run on the first GPU, while global BA and loop closure is run on the second. On EuRoC, we average 20fps (camera hz) by downsampling to $3 2 0 \\times 5 1 2$ resolution and skipping every other frame. Results in Tab. 3 were obtained in this setting. On TUM-RGBD, we average 30fps by downsampling to $2 4 0 \\times 3 2 0$ and skipping every other frame, again the reported results where obtained in this setting. On TartanAir, due to much faster camera motion, we are unable to run in real-time, averaging 8fps. However, this is still a 16x speedup over the top 2 submissions to the TartanAir SLAM challenge, which rely on COLMAP [40]. ",
1135
+ "bbox": [
1136
+ 173,
1137
+ 584,
1138
+ 826,
1139
+ 695
1140
+ ],
1141
+ "page_idx": 8
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "The SLAM frontend can be run on GPUs with 8GB of memory. The backend, which requires storing feature maps from the full set of images, is more memory intensive. All results on TUM-RGBD can be produced on a single 1080Ti graphics card. Results on EuRoC, TartanAir and ETH-3D (where video can be up to 5000 frames) requires a GPU with 24GB memory. While memory and resource requirements are currently the biggest limitation of our system, we believe these can be drastically reduced by culling redundant computation and more efficient representations. ",
1146
+ "bbox": [
1147
+ 174,
1148
+ 700,
1149
+ 825,
1150
+ 785
1151
+ ],
1152
+ "page_idx": 8
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "5 Conclusion ",
1157
+ "text_level": 1,
1158
+ "bbox": [
1159
+ 174,
1160
+ 804,
1161
+ 299,
1162
+ 820
1163
+ ],
1164
+ "page_idx": 8
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "We introduce DROID-SLAM, an end-to-end neural architecture for visual SLAM. DROID-SLAM is accurate, robust, and versatile and can be used on monocular, stereo, and RGB-D video. It outperforms prior work by large margins on challenging benchmarks. ",
1169
+ "bbox": [
1170
+ 174,
1171
+ 835,
1172
+ 825,
1173
+ 877
1174
+ ],
1175
+ "page_idx": 8
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Acknowledgements This work is partially supported by the National Science Foundation under Award IIS-1942981. ",
1180
+ "bbox": [
1181
+ 174,
1182
+ 882,
1183
+ 820,
1184
+ 911
1185
+ ],
1186
+ "page_idx": 8
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "References ",
1191
+ "text_level": 1,
1192
+ "bbox": [
1193
+ 174,
1194
+ 90,
1195
+ 266,
1196
+ 106
1197
+ ],
1198
+ "page_idx": 9
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "optimisable representation for dense visual slam. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 2560–2568, 2018. \n[2] M. Burri, J. Nikolic, P. Gohl, T. Schneider, J. Rehder, S. Omari, M. W. Achtelik, and R. Siegwart. The euroc micro aerial vehicle datasets. The International Journal of Robotics Research, 35(10):1157–1163, 2016. \n[3] D. J. Butler, J. Wulff, G. B. Stanley, and M. J. Black. A naturalistic open source movie for optical flow evaluation. In A. Fitzgibbon et al. (Eds.), editor, European Conf. on Computer Vision (ECCV), Part IV, LNCS 7577, pages 611–625. Springer-Verlag, Oct. 2012. \n[4] C. Cadena, L. Carlone, H. Carrillo, Y. Latif, D. Scaramuzza, J. Neira, I. Reid, and J. J. Leonard. Past, present, and future of simultaneous localization and mapping: Toward the robust-perception age. IEEE Transactions on robotics, 32(6):1309–1332, 2016. \n[5] C. Campos, R. Elvira, J. J. G. Rodríguez, J. M. Montiel, and J. D. Tardós. Orb-slam3: An accurate open-source library for visual, visual-inertial and multi-map slam. arXiv preprint arXiv:2007.11898, 2020. \n[6] D. Caruso, J. Engel, and D. Cremers. Large-scale direct slam for omnidirectional cameras. In 2015 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 141–148. IEEE, 2015. \n[7] C. B. Choy, J. Gwak, S. Savarese, and M. Chandraker. Universal correspondence network. arXiv preprint arXiv:1606.03558, 2016. \n[8] R. Clark, M. Bloesch, J. Czarnowski, S. Leutenegger, and A. J. Davison. Ls-net: Learning to solve nonlinear least squares for monocular stereo. arXiv preprint arXiv:1809.02966, 2018. [9] J. Czarnowski, T. Laidlow, R. Clark, and A. J. Davison. Deepfactors: Real-time probabilistic dense monocular slam. IEEE Robotics and Automation Letters, 5(2):721–728, 2020. \n[10] A. Dai, A. X. Chang, M. Savva, M. Halber, T. Funkhouser, and M. Nießner. Scannet: Richly-annotated 3d reconstructions of indoor scenes. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5828–5839, 2017. \n[11] A. Dai, M. Nießner, M. Zollhöfer, S. Izadi, and C. Theobalt. Bundlefusion: Real-time globally consistent 3d reconstruction using on-the-fly surface reintegration. ACM Transactions on Graphics (ToG), 36(4):1, 2017. \n[12] A. J. Davison, I. D. Reid, N. D. Molton, and O. Stasse. Monoslam: Real-time single camera slam. IEEE transactions on pattern analysis and machine intelligence, 29(6):1052–1067, 2007. \n[13] D. DeTone, T. Malisiewicz, and A. Rabinovich. Superpoint: Self-supervised interest point detection and description. In Proceedings of the IEEE conference on computer vision and pattern recognition workshops, pages 224–236, 2018. \n[14] M. Dusmanu, J. L. Schonberger, and M. Pollefeys. Multi-view optimization of local feature geometry. In Proceedings of the 2020 European Conference on Computer Vision, 2020. \n[15] J. Engel, V. Koltun, and D. Cremers. Direct sparse odometry. IEEE transactions on pattern analysis and machine intelligence, 40(3):611–625, 2017. \n[16] J. Engel, T. Schöps, and D. Cremers. Lsd-slam: Large-scale direct monocular slam. In European conference on computer vision, pages 834–849. Springer, 2014. \n[17] M. Ferrera, A. Eudes, J. Moras, M. Sanfourche, and G. Le Besnerais. Ov2 slam: A fully online and versatile visual slam for real-time applications. IEEE Robotics and Automation Letters, 6(2):1399–1406, 2021. \n[18] C. Forster, Z. Zhang, M. Gassner, M. Werlberger, and D. Scaramuzza. Svo: Semidirect visual odometry for monocular and multicamera systems. IEEE Transactions on Robotics, 33(2):249–265, 2016. \n[19] Y. Furukawa and C. Hernández. Multi-view stereo: A tutorial. Foundations and Trends® in Computer Graphics and Vision, 9(1-2):1–148, 2015. \n[20] C. Kerl, J. Sturm, and D. Cremers. Dense visual slam for rgb-d cameras. In 2013 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 2100–2106. IEEE, 2013. \n[21] A. Knapitsch, J. Park, Q.-Y. Zhou, and V. Koltun. Tanks and temples: Benchmarking large-scale scene reconstruction. ACM Transactions on Graphics (ToG), 36(4):1–13, 2017. \n[22] J. Kopf, X. Rong, and J.-B. Huang. Robust consistent video depth estimation. arXiv preprint arXiv:2012.05901, 2020. \n[23] J. Krishna Murthy, S. Saryazdi, G. Iyer, and L. Paull. gradslam: Dense slam meets automatic differentiation. arXiv, 2020. \n[24] C. Liu, J. Gu, K. Kim, S. G. Narasimhan, and J. Kautz. Neural rgb (r) d sensing: Depth and uncertainty from a video camera. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 10986–10995, 2019. \n[25] X. Luo, J.-B. Huang, R. Szeliski, K. Matzen, and J. Kopf. Consistent video depth estimation. ACM Transactions on Graphics (TOG), 39(4):71–1, 2020. \n[26] Zhu, R. Zhang, Yao, Quan. Learning local descriptors by integrating geometry constraints. In Proceedings of the European conference on computer vision (ECCV), pages 168–183, 2018. \n[27] H. Matsuki, L. von Stumberg, V. Usenko, J. Stückler, and D. Cremers. Omnidirectional dso: Direct sparse odometry with fisheye cameras. IEEE Robotics and Automation Letters, 3(4):3693–3700, 2018. \n[28] Z. Min, Y. Yang, and E. Dunn. Voldor: Visual odometry from log-logistic dense optical flow residuals. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4898–4909, 2020. \n[29] A. Mishchuk, D. Mishkin, F. Radenovic, and J. Matas. Working hard to know your neighbor’s margins: Local descriptor learning loss. arXiv preprint arXiv:1705.10872, 2017. \n[30] A. I. Mourikis and S. I. Roumeliotis. A multi-state constraint kalman filter for vision-aided inertial navigation. In Proceedings 2007 IEEE International Conference on Robotics and Automation, pages 3565–3572. IEEE, 2007. \n[31] R. Mur-Artal, J. M. M. Montiel, and J. D. Tardos. Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics, 31(5):1147–1163, 2015. \n[32] R. Mur-Artal and J. D. Tardós. Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras. IEEE Transactions on Robotics, 33(5):1255–1262, 2017. \n[33] P. K. Nathan Silberman, Derek Hoiem and R. Fergus. Indoor segmentation and support inference from rgbd images. In ECCV, 2012. \n[34] R. A. Newcombe, S. J. Lovegrove, and A. J. Davison. Dtam: Dense tracking and mapping in real-time. In 2011 international conference on computer vision, pages 2320–2327. IEEE, 2011. \n[35] Y. Ono, E. Trulls, P. Fua, and K. M. Yi. Lf-net: Learning local features from images. arXiv preprint arXiv:1805.09662, 2018. \n[36] R. Ranftl and V. Koltun. Deep fundamental matrix estimation. In Proceedings of the European conference on computer vision (ECCV), pages 284–299, 2018. \n[37] A. Rosinol, M. Abate, Y. Chang, and L. Carlone. Kimera: an open-source library for real-time metricsemantic localization and mapping. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 1689–1696. IEEE, 2020. \n[38] P.-E. Sarlin, D. DeTone, T. Malisiewicz, and A. Rabinovich. Superglue: Learning feature matching with graph neural networks. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 4938–4947, 2020. \n[39] P.-E. Sarlin, A. Unagar, M. Larsson, H. Germain, C. Toft, V. Larsson, M. Pollefeys, V. Lepetit, L. Hammarstrand, F. Kahl, et al. Back to the feature: Learning robust camera localization from pixels to pose. arXiv preprint arXiv:2103.09213, 2021. \n[40] J. L. Schonberger and J.-M. Frahm. Structure-from-motion revisited. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 4104–4113, 2016. \n[41] T. Schops, T. Sattler, and M. Pollefeys. Bad slam: Bundle adjusted direct rgb-d slam. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 134–144, 2019. \n[42] D. Schubert, N. Demmel, V. Usenko, J. Stuckler, and D. Cremers. Direct sparse odometry with rolling shutter. In Proceedings of the European Conference on Computer Vision (ECCV), pages 682–697, 2018. \n[43] J. Sturm, N. Engelhard, F. Endres, W. Burgard, and D. Cremers. A benchmark for the evaluation of rgb-d slam systems. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 573–580. IEEE, 2012. \n[44] E. Sucar, S. Liu, J. Ortiz, and A. J. Davison. imap: Implicit mapping and positioning in real-time. arXiv preprint arXiv:2103.12352, 2021. \n[45] E. Sucar, K. Wada, and A. Davison. Nodeslam: Neural object descriptors for multi-view shape reconstruction. In 2020 International Conference on 3D Vision (3DV), pages 949–958. IEEE, 2020. \n[46] C. Tang and P. Tan. Ba-net: Dense bundle adjustment network. arXiv preprint arXiv:1806.04807, 2018. \n[47] Z. Teed and J. Deng. Deepv2d: Video to depth with differentiable structure from motion. arXiv preprint arXiv:1812.04605, 2018. \n[48] Z. Teed and J. Deng. Raft: Recurrent all-pairs field transforms for optical flow. In European Conference on Computer Vision, pages 402–419. Springer, 2020. \n[49] Z. Teed and J. Deng. Tangent space backpropagation for 3d transformation groups. In Conference on Computer Vision and Pattern Recognition, 2021. \n[50] B. Ummenhofer, H. Zhou, J. Uhrig, N. Mayer, E. Ilg, A. Dosovitskiy, and T. Brox. Demon: Depth and motion network for learning monocular stereo. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5038–5047, 2017. \n[51] L. von Stumberg, P. Wenzel, N. Yang, and D. Cremers. Lm-reloc: Levenberg-marquardt based direct visual relocalization. arXiv preprint arXiv:2010.06323, 2020. \n[52] S. Wang, R. Clark, H. Wen, and N. Trigoni. Deepvo: Towards end-to-end visual odometry with deep recurrent convolutional neural networks. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pages 2043–2050. IEEE, 2017. \n[53] W. Wang, Y. Hu, and S. Scherer. Tartanvo: A generalizable learning-based vo. arXiv preprint arXiv:2011.00359, 2020. \n[54] W. Wang, D. Zhu, X. Wang, Y. Hu, Y. Qiu, C. Wang, Y. Hu, A. Kapoor, and S. Scherer. Tartanair: A dataset to push the limits of visual slam. arXiv preprint arXiv:2003.14338, 2020. \n[55] T. Whelan, M. Kaess, H. Johannsson, M. Fallon, J. J. Leonard, and J. McDonald. Real-time large-scale dense rgb-d slam with volumetric fusion. The International Journal of Robotics Research, 34(4-5):598–626, 2015. \n[56] T. Whelan, S. Leutenegger, R. Salas-Moreno, B. Glocker, and A. Davison. Elasticfusion: Dense slam without a pose graph. Robotics: Science and Systems, 2015. \n[57] N. Yang, L. v. Stumberg, R. Wang, and D. Cremers. D3vo: Deep depth, deep pose and deep uncertainty for monocular visual odometry. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 1281–1292, 2020. \n[58] N. Yang, R. Wang, J. Stuckler, and D. Cremers. Deep virtual stereo odometry: Leveraging deep depth prediction for monocular direct sparse odometry. In Proceedings of the European Conference on Computer Vision (ECCV), pages 817–833, 2018. \n[59] H. Zhou, B. Ummenhofer, and T. Brox. Deeptam: Deep tracking and mapping. In Proceedings of the European conference on computer vision (ECCV), pages 822–838, 2018. \n[60] J. Zubizarreta, I. Aguinaga, and J. M. M. Montiel. Direct sparse mapping. IEEE Transactions on Robotics, 36(4):1363–1370, 2020. ",
1203
+ "bbox": [
1204
+ 171,
1205
+ 132,
1206
+ 828,
1207
+ 914
1208
+ ],
1209
+ "page_idx": 9
1210
+ },
1211
+ {
1212
+ "type": "text",
1213
+ "text": "",
1214
+ "bbox": [
1215
+ 171,
1216
+ 101,
1217
+ 828,
1218
+ 909
1219
+ ],
1220
+ "page_idx": 10
1221
+ },
1222
+ {
1223
+ "type": "text",
1224
+ "text": "",
1225
+ "bbox": [
1226
+ 171,
1227
+ 90,
1228
+ 828,
1229
+ 342
1230
+ ],
1231
+ "page_idx": 11
1232
+ }
1233
+ ]
parse/train/ZBfUo_dr4H/ZBfUo_dr4H_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ZBfUo_dr4H/ZBfUo_dr4H_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ZRcjSOmYraB/ZRcjSOmYraB.md ADDED
@@ -0,0 +1,203 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Learning Distilled Collaboration Graph for Multi-Agent Perception
2
+
3
+ Yiming Li New York University yimingli@nyu.edu
4
+
5
+ Shunli Ren Shanghai Jiao Tong University renshunli@sjtu.edu.cn
6
+
7
+ Pengxiang Wu Rutgers University pxiangwu@gmail.com
8
+
9
+ Siheng Chen∗ Shanghai Jiao Tong University sihengc@sjtu.edu.cn
10
+
11
+ Chen Feng∗ New York University cfeng@nyu.edu
12
+
13
+ Wenjun Zhang Shanghai Jiao Tong University zhangwenjun@sjtu.edu.cn
14
+
15
+ # Abstract
16
+
17
+ To promote better performance-bandwidth trade-off for multi-agent perception, we propose a novel distilled collaboration graph (DiscoGraph) to model trainable, pose-aware, and adaptive collaboration among agents. Our key novelties lie in two aspects. First, we propose a teacher-student framework to train DiscoGraph via knowledge distillation. The teacher model employs an early collaboration with holistic-view inputs; the student model is based on intermediate collaboration with single-view inputs. Our framework trains DiscoGraph by constraining postcollaboration feature maps in the student model to match the correspondences in the teacher model. Second, we propose a matrix-valued edge weight in DiscoGraph. In such a matrix, each element reflects the inter-agent attention at a specific spatial region, allowing an agent to adaptively highlight the informative regions. During inference, we only need to use the student model named as the distilled collaboration network (DiscoNet). Attributed to the teacher-student framework, multiple agents with the shared DiscoNet could collaboratively approach the performance of a hypothetical teacher model with a holistic view. Our approach is validated on V2X$\mathrm { S i m } 1 . 0$ , a large-scale multi-agent perception dataset that we synthesized using CARLA and SUMO co-simulation. Our quantitative and qualitative experiments in multi-agent 3D object detection show that DiscoNet could not only achieve a better performance-bandwidth trade-off than the state-of-the-art collaborative perception methods, but also bring more straightforward design rationale. Our code is available on https://github.com/ai4ce/DiscoNet.
18
+
19
+ # 1 Introduction
20
+
21
+ Perception, which involves organizing, identifying and interpreting sensory information, is a crucial ability for intelligent agents to understand the environment. Single-agent perception [4] has been studied extensively in recent years, e.g., 2D/3D object detection [18, 27], tracking [23, 22] and segmentation [25, 16], etc. Despite its great progress, single-agent perception suffers from a number of shortcomings stemmed from its individual perspective. For example, in autonomous driving [8], the LiDAR-based perception system can hardly perceive the target in the occluded or long-range areas. Intuitively, with an appropriate collaboration strategy, multi-agent perception could fundamentally upgrade the perception ability over single-agent perception.
22
+
23
+ To design a collaboration strategy, current approaches mainly include raw-measurement-based early collaboration, output-based late collaboration and feature-based intermediate collaboration.
24
+
25
+ ![](images/1c66afcc6198f0995246098a2b12241266dfde33ae9237b23f6b144bf6eb2c3c.jpg)
26
+ Figure 1: Scheme comparison. (a) Early collaboration requires an expensive bandwidth for raw data transmission. (b) Intermediate collaboration needs an appropriate collaboration strategy. (c) The proposed method incorporates both early and intermediate collaboration into a knowledge distillation framework, enabling the knowledge of early collaboration to guide the training of an intermediate collaboration strategy, leading to better trade-off between performance and bandwidth.
27
+
28
+ Early collaboration [3] aggregates the raw measurements from all the agents, promoting a holistic perspective; see Fig. 1 (a). It can fundamentally solve the occlusion and long-range issues occurring in the single-agent perception; however, it requires a lot of communication bandwidth. Contrarily, late collaboration aggregates each agent’s perception outputs. Although it is bandwidth-efficient, each individual perception output could be noisy and incomplete, causing unsatisfying fusion results. To deal with the performance-bandwidth trade-off, intermediate collaboration [19, 34, 20] has been proposed to aggregate intermediate features across agents; see Fig. 1 (b). Since we can squeeze representative information to compact features, this approach can potentially both achieve communication bandwidth efficiency and upgrade perception ability; however, a bad design of collaboration strategy might cause information loss during feature abstraction and fusion, leading to limited improvement of the perception ability.
29
+
30
+ To achieve an effective design of intermediate collaboration, we propose a distilled collaboration graph (DiscoGraph) to model the collaboration among agents. In DiscoGraph, each node is an agent with real-time pose information and each edge reflects the pair-wise collaboration between two agents. The proposed DiscoGraph is trainable, pose-aware, and adaptive to real-time measurements, reflecting dynamic collaboration among agents. It is novel from two aspects. First, from the training aspect, we propose a teacher-student framework to train DiscoGraph through knowledge distillation [1, 10, 26]; see Fig. 1 (c). Here the teacher model is based on early collaboration with holistic-view inputs and the student model is based on intermediate collaboration with single-view inputs. The knowledge-distillation-based framework enhances the training of DiscoGraph by constraining the postcollaboration feature maps in the student model to match the correspondences in the teacher model. With the guidance of both output-level supervision from perception and feature-level supervision from knowledge distillation, the distilled collaboration graph promotes better feature abstraction and aggregation, improving the performance-bandwidth trade-off. Second, from the modeling aspect, we propose a matrix-valued edge weight in DiscoGraph to reflect the collaboration strength with a high spatial resolution. In the matrix, each element represents the inter-agent attention at a specific spatial region. This design allows the agents to adaptively highlight the informative regions and strategically select appropriate partners to request supplementary information.
31
+
32
+ During inference, we only need to use the student model. Since it leverages DiscoGraph as the key component, we call the student model as the distilled collaboration network (DiscoNet). Multiple agents with the shared DiscoNet could collaboratively approach the performance of a hypothetical teacher model with the holistic view.
33
+
34
+ To validate the proposed method, we build V2X-Sim 1.0, a new large-scale multi-agent 3D object detection dataset in autonomous driving scenarios based on CARLA and SUMO co-simulation platform [6]. Comprehensive experiments conducted in 3D object detection [37, 28, 29, 17] have shown that the proposed DiscoNet achieves better performance-bandwidth trade-off and lower communication latency than the state-of-the-art intermediate collaboration methods.
35
+
36
+ ![](images/840c243044307a32e675ccc3354761110a2f63d547ea8c4da9f56dd0b071cd01.jpg)
37
+ Figure 2: Overall teacher-student training framework. In the student model, for Agent 1 (in red), its input single-view point cloud can be converted to a BEV map, and then be consumed by a shared encoder $\Theta ^ { \mathrm { s } }$ to obtain the feature map $\mathbf { F } _ { i } ^ { \mathrm { s } }$ . Based on the collaboration graph $\mathcal { G } _ { \Pi }$ , Agent 1 aggregates the neural messages from other agents and obtains the updated feature map $\mathbf { H } _ { i } ^ { \mathrm { s } }$ . The shared header following the shared decoder outputs the 3D detection results. In the teacher model, we aggregate the points collected from all agents to obtain a holistic-view point cloud. We crop the region and align the pose to ensure the BEV maps in both teacher and student models are synchronized. We constrain all the post-collaboration feature maps in the student model to match the correspondences in the teacher model through knowledge distillation, resulting in a collaborative student model.
38
+
39
+ # 2 Multi-Agent Perception System with Distilled Collaboration Graph
40
+
41
+ This work considers a collaborative perception system to perceive a scene, where multiple agents can perceive and collaborate with each other through a broadcast communication channel. We assume each agent is provided with an accurate pose and the perceived measurements are well synchronized. Then, given a certain communication bandwidth, we aim to maximize the perception ability of each agent through optimizing a collaboration strategy. To design such a strategy, we consider a teacher-student training framework to integrate the strengths from both early and intermediate collaboration. During training, we leverage an early-collaboration model (teacher) to teach an intermediate-collaboration model (student) how to collaborate through knowledge distillation. Here the teacher model and the student model are shared by all the agents, but each agent would input raw measurements from its own view to either model; see Fig. 2. During inference, we only need the student model, where multiple agents with the shared student model could collaboratively approach the performance of the teacher model with the hypothetical holistic view.
42
+
43
+ In this work, we focus on the perception task of LiDAR-based 3D object detection because the unifying 3D space naturally allows the aggregation of multiple LiDAR scans. Note that in principle the proposed method is generally-applicable in collaborative perception if there exists a unified space to aggregate raw data across multiple agents.
44
+
45
+ # 2.1 Student: Intermediate collaboration via graphs
46
+
47
+ Feature encoder. The functionality is to extract informative features from raw measurements for each agent. Let $\mathcal { X } _ { i }$ be the 3D point cloud collected by the $i$ th agent ( $M$ agents in total), the feature of the ith agent is obtained as $\mathbf { F } _ { i } ^ { \mathrm { s } } \gets \Theta ^ { \mathrm { s } } ( \mathcal { X } _ { i } )$ , where $\Theta ^ { \mathrm { s } } ( \cdot )$ is the feature encoder shared by all the agents and the superscript s reflects the student mode. To implement the encoder, we convert a 3D point cloud to a bird’s-eye-view (BEV) map, which is amenable to classic 2D convolutions. Specifically, we quantize the 3D points into regular voxels and represent the 3D voxel lattice as a 2D pseudo-image, with the height dimension corresponding to image channels. Such a 2D image is virtually a BEV map, whose basic element is a cell that is associated with a binary vector along the vertical axis. Let $\mathbf { B } _ { i } \in \{ 0 , 1 \} ^ { K \times K \times C }$ be the BEV map of the $i$ th agent associated with $\mathcal { X } _ { i }$ . With this map, we can apply four blocks composed of 2D convolutions, batch normalization and ReLU activation to gradually reduce the spatial dimension and increase the number of channels for the BEV, to obtain the feature map $\mathbf { F } _ { i } ^ { \mathrm { s } } \in \bar { \mathbb { R } } ^ { \bar { K } \times \bar { K } \times \bar { C } }$ with $\bar { K } \times \bar { K }$ the spatial resolution and $\bar { C }$ the number of channels.
48
+
49
+ Feature compression. To save the communication bandwidth, each agent could compress its feature map prior to transmission. Here we consider a $1 \times 1$ convolutional autoencoder [24] to compress/decompress the feature maps along the channel dimension. The autoencoder is trained together with the whole system, making the system work with limited collaboration information.
50
+
51
+ Collaboration graph process. The functionality is to update the feature map through data transmission among the agents. The core component here is a collaboration graph1 $\dot { \mathcal { G } } _ { \Pi } ( \nu , \bar { \mathcal { E } } _ { \Pi } )$ , where $\nu$ is the fixed node set and $\mathcal { E } _ { \Pi }$ is the trainable edge set. Each node in $\nu$ is an agent with the real-time pose information; for instance, $\pmb { \xi } _ { i } \in \mathfrak { s e } ( 3 )$ is the ith agent’s pose in the global coordinate system; and each edge in $\mathcal { E } _ { \Pi }$ is trainable and models the collaboration between two agents, with $\Pi$ an edge-weight encoder, reflecting the trainable collaboration strength between agents. Let $\mathcal { M } _ { \mathcal { G } _ { \Pi } } ( \cdot )$ be the collaboration process defined on the collaboration graph $\mathcal { G } _ { \Pi }$ . The feature maps of all the agents after collaboration are $\{ \mathbf { H } _ { i } ^ { \mathrm { s } } \} _ { i = 1 } ^ { M } \mathcal { M } _ { \mathcal { G } _ { \Pi } } ( \{ \mathbf { F } _ { i } ^ { \mathrm { s } } \} _ { i = 1 } ^ { M } )$ . This process has three stages: neural message transmission (S1), neural message attention (S2) and neural message aggregation (S3).
52
+
53
+ In the neural message transmission stage (S1), each agent transmits its BEV-based feature map to the other agents. Since the BEV-based feature map summarizes the information of each agent, we consider it as a neural message. In the neural message attention stage (S2), each agent receives others’ neural messages and determines the matrix-valued edge weights, which reflect the importance of the neural message from one agent to another at each individual cell. Since each agent has its unique pose, we leverage the collaboration graph to achieve feature transformation across agents. For the ith agent, the transformed BEV-based feature map from the $j$ th agent is then $\mathbf { F } _ { j i } ^ { \mathrm { s } } = \bar { \Gamma } _ { j i } ( \mathbf { F } _ { i } ^ { \mathrm { s } } ) \in \mathbb { R } ^ { \bar { K } \times \bar { K } \times \bar { C } }$ where the transformation $\Gamma _ { j i } ( \cdot )$ is based on two ego poses $\xi _ { j }$ and $\pmb { \xi } _ { i }$ . Now $\mathbf { F } _ { j i } ^ { \mathrm { s } }$ and $\mathbf { F } _ { i } ^ { \mathrm { s } }$ are supported in the same coordinate system. To determine the edge weights, we use the edge encoder $\Pi$ to correlate the ego feature map and the feature map from another agent; that is, the matrix-valued edge weight from the $j$ th agent to the ith agent is $\mathbf { W } _ { j i } = \bar { \Pi } ( \bar { \mathbf { F } _ { j i } ^ { \mathrm { s } } } , \mathbf { F } _ { i } ^ { \mathrm { s } } ) \in \mathbb { R } ^ { \bar { K } \times \bar { K } }$ , where $\Pi$ concatenates two feature maps along the channel dimension and then uses four $1 \times 1$ convolutional layers to gradually reduce the number of channels from $2 \bar { C }$ to 1. Meanwhile, there is a softmax operation applied at each cell in the feature map to normalize the edge weights across multiple agents. Note that previous works [19, 20, 34] generally consider a scalar-valued edge weight to reflect the overall collaboration strength between two agents; while we consider a matrix-valued edge weight $\mathbf { W } _ { j i }$ , which models the collaboration strength from the $j$ th agent to the ith agent with a ${ \bar { K } } \times { \bar { K } }$ spatial resolution. In this matrix, each element corresponds to a cell in the BEV map, indicating a specific spatial region; thus, this matrix reflects the spatial attention at a cell-level resolution. In the neural message aggregation stage (S3), each agent aggregates the feature maps from all the agents based on the normalized matrix-valued edge weights. The updated feature map of the agent $i$ is $\begin{array} { r } { \mathbf { H } _ { i } ^ { \mathrm { s } } = \sum _ { j = 1 } ^ { M } \mathbf { W } _ { j i } \odot \mathbf { F } _ { j i } ^ { \mathrm { s } } } \end{array}$ , where $\odot$ denotes the dot product with channel-wise broadcasting.
54
+
55
+ Remark. The proposed collaboration graph is trainable because each matrix-valued edge weight is a trainable matrix to reflect the agent-to-agent attention in a cell-level spatial resolution; it is poseaware, empowering all the agents to work with the synchronized coordinate system; furthermore, it is dynamic at each timestamp as each edge weight would adapt to the real-time neural messages. According to the proposed collaboration graph, the agents can discover the region requiring collaboration on the fly, and strategically select appropriate partners to request supplementary information.
56
+
57
+ Decoder and header. After collaboration, each agent decodes the updated BEV-based feature map. The decoded feature map is ${ \bf M } _ { i } ^ { \mathrm { s } } \Psi ^ { \mathrm { s } } ( { \bf H } _ { i } ^ { \mathrm { s } } )$ . To implement the decoder $\Psi ^ { \mathrm { s } } ( \cdot )$ , we progressively up-sample $\mathbf { H } _ { i } ^ { \mathrm { s } }$ with four layers, where each layer first concatenates the previous feature map with the corresponding feature map in the encoder and then uses a $1 \times 1$ convolutional operation to halve the number of channels. Finally, we use an output header to generate the final detection outputs, $\hat { \mathbf { Y } } _ { i } ^ { \mathrm { s } } \gets \Phi ^ { \mathrm { s } } ( \mathbf { M } _ { i } ^ { \mathrm { s } } )$ . To implement the header $\Psi ^ { \mathrm { s } } ( \cdot )$ , we use two branches of convolutional layers to classify the foreground-background categories and regress the bounding boxes.
58
+
59
+ # 2.2 Teacher: Early collaboration
60
+
61
+ During the training phase, an early-collaboration model, as the teacher, is introduced to guide the intermediate-collaboration model, which is a student. Similar to the student model, the teacher’s pipeline has the feature encoder $\Theta ^ { \mathrm { t } }$ , feature decoder $\Psi ^ { \mathrm { t } }$ and the output header $\Phi ^ { \mathrm { t } }$ . Note that all the agents share the same teacher model to guide one student model; however, each agent provides the inputs with its own pose, and its inputs to both the teacher and student models should be well aligned.
62
+
63
+ Feature encoder. Let $\mathcal { X } = \mathcal { A } ( \pmb { \xi } _ { 1 } \circ \mathcal { X } _ { 1 } , \pmb { \xi } _ { 2 } \circ \mathcal { X } _ { 2 } , . . . , \pmb { \xi } _ { M } \circ \mathcal { X } _ { M } )$ be a holistic-view 3D point cloud that aggregates all the points from all $M$ agents in the global coordinate system, where $\mathcal { A } ( \cdot , . . . , \cdot )$ is the aggregation operator of multiple 3D point clouds, and $\pmb { \xi } _ { i }$ and $\mathcal { X } _ { i }$ are the pose and the 3D point cloud of the ith agent, respectively. To ensure the inputs to the teacher model and the student model are aligned, we transform the holistic-view point cloud $\mathcal { X }$ to an agent’s own coordinate based on the pose information. Now, for the ith agent, the input to the teacher model $\pmb { \xi } _ { i } ^ { - 1 } \circ \pmb { \chi }$ and the input to the student model $\mathcal { X } _ { i }$ are in the same coordinate system. Similarly to the feature encoder in the student model, we convert the 3D point cloud $\pmb { \xi } _ { i } ^ { - 1 } \circ \mathscr { X }$ to a BEV map and use 2D convolutions to obtain the feature map of the ith agent in the teacher model, $\mathbf { H } _ { i } ^ { \mathrm { t } } \in \mathbb { R } ^ { \bar { K } \times \bar { K } \times \bar { C } }$ . Here we crop the BEV map to ensure it has the same spatial range and resolution with the BEV map in the student model.
64
+
65
+ Decoder and header. Similarly to the decoder and header in the student model, we adopt $\mathbf { M } _ { i } ^ { \mathrm { t } } \gets$ $\Psi ^ { \mathrm { t } } ( \mathbf { H } _ { i } ^ { \mathrm { t } } )$ to obtain the decoded BEV-based feature map and $\widehat { \mathbf { Y } } _ { i } ^ { \mathrm { t } } \gets \Phi ^ { \mathrm { t } } ( \mathbf { M } _ { i } ^ { \mathrm { t } } )$ to obtain the predicted foreground-background categories and regressed bounding boxes.
66
+
67
+ Teacher training scheme. As in common teacher-student frameworks, we train the teacher model
68
+ separately. We employ the binary cross-entropy loss to supervise foreground-background classifi
69
+ cation andloss functidenoted as $L _ { 1 }$ ise the bounding-box regression. Overall, we min, where classification and regression losses are cound-truth detection in the perception region of the mize thelectivelyth agent. $\begin{array} { r } { \mathcal { L } ^ { \mathrm { t } } = \sum _ { i = 1 } ^ { M } \mathcal { L } _ { \mathrm { d e t } } ( \mathbf { Y } _ { i } ^ { \mathrm { t } } , \widehat { \mathbf { Y } } _ { i } ^ { \mathrm { t } } ) } \end{array}$ $\mathcal { L } _ { \mathrm { d e t } }$ $\mathbf { Y } _ { i } ^ { \mathrm { t } } = \mathbf { Y } _ { i } ^ { \mathrm { s } }$ $i$
70
+
71
+ # 2.3 System training with knowledge distillation
72
+
73
+ Given a well-trained teacher model, we use both detection loss and knowledge distillation loss to supervise the training of the student model. We consider minimizing the following loss
74
+
75
+ $$
76
+ \mathcal { L } ^ { \mathrm { s } } = \sum _ { i = 1 } ^ { M } \left( \mathcal { L } _ { \mathrm { d e t } } ( \mathbf { Y } _ { i } ^ { \mathrm { s } } , \widehat { \mathbf { Y } } _ { i } ^ { \mathrm { s } } ) + \lambda _ { \mathrm { k d } } \mathcal { L } _ { \mathrm { k d } } ( \mathbf { H } _ { i } ^ { \mathrm { s } } , \mathbf { H } _ { i } ^ { \mathrm { t } } ) + \lambda _ { \mathrm { k d } } \mathcal { L } _ { \mathrm { k d } } ( \mathbf { M } _ { i } ^ { \mathrm { s } } , \mathbf { M } _ { i } ^ { \mathrm { t } } ) \right) .
77
+ $$
78
+
79
+ The detection loss $\mathcal { L } _ { \mathrm { d e t } }$ is similar to that of the teacher, including both foreground-background classification loss and the bounding box regression loss, pushing the detection result of each agent to be close to its local ground-truth. The second and third terms form a knowledge distillation loss, regularizing the student model to generate similar feature maps with the teacher model. The hyperparameter $\lambda _ { \mathrm { k d } }$ controls the weight of the knowledge distillation loss $\mathcal { L } _ { \mathrm { k d } }$ defined as follows
80
+
81
+ $$
82
+ \mathcal { L } _ { \mathrm { k d } } ( \mathbf { H } _ { i } ^ { \mathrm { s } } , \mathbf { H } _ { i } ^ { \mathrm { t } } ) = \sum _ { n = 1 } ^ { { \bar { K } } \times { \bar { K } } } D _ { \mathrm { K L } } \left( \sigma \left( \left( \mathbf { H } _ { i } ^ { \mathrm { t } } \right) _ { n } \right) \vert \vert \sigma \left( \left( \mathbf { H } _ { i } ^ { \mathrm { s } } \right) _ { n } \right) \right) ,
83
+ $$
84
+
85
+ where $D _ { K L } ( p ( \mathbf { x } ) | | q ( \mathbf { x } ) )$ denotes the Kullback-Leibler (KL) divergence of distribution $q ( \mathbf { x } )$ from distribution $p ( \mathbf { x } ) , \sigma ( \cdot )$ indicates the softmax operation of the feature vector along the channel dimension, and $( \mathbf { H } _ { i } ^ { \mathrm { s } } ) _ { n }$ and $( { \bf { H } } _ { i } ^ { \mathrm { { t } } } ) _ { n }$ denote the feature vectors at the $n$ th cell of the ith agent’s feature map in the student model and teacher model, respectively. Similarly, the loss on decoded feature maps $\mathcal { L } _ { \mathrm { k d } } ( \mathbf { M } _ { i } ^ { \mathrm { s } } , \mathbf { M } _ { i } ^ { \mathrm { t } } )$ can be introduced to enhance the regularization.
86
+
87
+ Remark. As mentioned in Section 2.in the student model is computed by $\{ \mathbf { H } _ { i } ^ { \mathrm { s } } \} _ { i = 1 } ^ { M } \mathcal { M } _ { \mathcal { G } _ { \Pi } } ( \{ \mathbf { \dot { F } } _ { i } ^ { \mathrm { s } } \} _ { i = 1 } ^ { M ^ { - } } ) .$ the collaboration graph process. Intuitively, the feature map of the teacher model $\{ \mathbf { H } _ { i } ^ { \mathrm { t } } \} _ { i = 1 } ^ { M }$ would be the desired output of the collaboration graph process $\mathcal { M } _ { \mathcal { G } _ { \Pi } } ( \cdot )$ . Therefore, we constrain all the post-collaboration feature maps in the student model to match the correspondences in the teacher model through knowledge distillation. This constraint would further regularize the upfront trainable components: i) the distilled student encoder $\Theta ^ { \mathrm { s } }$ , which abstracts the features from raw measurements and produces the input to $\mathcal { M } _ { \mathcal { G } _ { \Pi } } ( \cdot )$ , and ii) the edge-weight encoder $\Pi$ in the distilled collaboration graph. Consequently, through knowledge distillation and back-propagation, the distilled student encoder would learn to abstract informative features from raw data for better collaboration; and the distilled edge-weight encoder would learn how to control the collaboration based on agents’ features. In a word, our distilled collaboration network (DiscoNet) can comprehend feature abstraction and fusion via the proposed knowledge distillation framework.
88
+
89
+ # 3 Related Work
90
+
91
+ Multi-agent communication. As core components in a multi-agent system, communication strategy among agents has been actively studied in previous works [30, 7, 31]. For example, CommNet [32] adopted the averaging operation to achieve continuous communication in multi-agent system; VAIN [11] considered an attention mechanism to determine which agents would share information;
92
+
93
+ ![](images/8102d95755f63e0f194402216f3f8f1f81f9dc1f52403b9bae6360d3da1ad034.jpg)
94
+ Figure $3 \colon \mathrm { V } 2 \mathrm { X } { \cdot } \mathrm { S i m } 1 . 0$ dataset. (a) Point clouds from multiple agents in a top-down view (each color indicates an individual agent). (b) Snapshot of the rendered CARLA-SUMO co-simulation. (c) The map of Town05 which is a squared-grid town with cross junctions and multiple lanes per direction.
95
+
96
+ ATOC [12] exploited an attention unit to determine what information to share with other agents; and TarMAC [5] implicitly learned a signature-based soft attention mechanism to let agents actively select which agents should receive the messages. In this work, we focus on the 3D perception task and propose a trainable, dynamic collaboration graph to control the communication among agents.
97
+
98
+ Collaborative perception. Collaborative perception is an application of multi-agent communication system to perception tasks [9, 36, 14]. Who2com [20] exploited a handshake communication mechanism to determine which two agents should communicate for image segmentation; When2com [19] introduced an asymmetric attention mechanism to decide when to communicate and how to create communication groups for image segmentation; V2VNet [34] proposed multiple rounds of message passing on a spatial-aware graph neural network for joint perception and prediction in autonomous driving; and [33] proposed a pose error regression module to learn to correct pose errors when the pose information from other agents is noisy.
99
+
100
+ Knowledge distillation. Knowledge distillation (KD) is a widely used technique to compress a larger teacher network to a smaller student network by pushing the student to approach the teacher in either output or intermediate feature space [10], and it has been applied to various tasks such as semantic segmentation [21], single-agent 3D detection [35], and object re-identification [13]. In this work, we apply the KD technique to a new application scenario: multi-agent graph learning. The teacher is an early-collaboration model with privileged information, and the student is an intermediatecollaboration model with limited viewpoint. The distilled collaboration graph could enable effective and efficient inference for the student model without teacher’s supervision.
101
+
102
+ Advantages and limitation of DiscoNet. First, previous collaborative perception only rely on the final detection supervision; while DiscoNet leverages both detection supervision and intermediate feature supervision, acquiring more explicit guidance. Second, the collaboration attention in previous methods is a scalar, which cannot reflect the significance of each region; while DiscoNet uses a matrix, leading to more flexible collaboration at various spatial regions. Third, previous methods uses multiple-round collaboration: When2com needs at least one more round of communication after the first handshake, and V2VNet claims three rounds to ensure reliable performance; while DiscoNet only requires one round, suffering less from latency. Admittedly, DiscoNet has a limitation by assuming accurate pose for each agent, which could be improved by method like [33].
103
+
104
+ # 4 Experiment
105
+
106
+ # 4.1 V2X-Sim 1.0: A multi-agent 3D object detection dataset
107
+
108
+ Since there is no public dataset to support the research on multi-agent 3D object detection in selfdriving scenarios, we build such a dataset named as $\mathrm { V } 2 \mathrm { X } { \mathrm { - } } \mathrm { S i m ~ } 1 . 0 ^ { \circ }$ , based on both SUMO [15], a micro-traffic simulation, and CARLA [6], a widely-used open-source simulator for autonomous driving research. SUMO is firstly used to produce numerically-realistic traffic flow and CARLA is employed to get realistic sensory streams including LiDAR and RGB data, from multiple vehicles located in the same geographical area. The simulated LiDAR is rotated at a frequency of $2 0 \mathrm { H z }$ and has 32 channels; the range which denotes the maximum distance to capture is 70 meters. We use Town05 with multiple lanes and cross junctions for dense traffic simulation; see Fig. 3.
109
+
110
+ Table 1: Detection comparison. Our method is in bold and ∗ indicates the pose-aware version. The proposed DiscoNet is the best among intermediate collaboration. Even with 16 times compression, DiscoNet(16) still outperforms V2VNet without compression.
111
+
112
+ <table><tr><td>Method</td><td colspan="3">Collaboration Approach Early Intermediate Late</td><td colspan="2">Average Precision (AP)</td></tr><tr><td>Upper-bound</td><td></td><td></td><td>X</td><td>IoU=0.5 63.3</td><td>IoU=0.7 60.2</td></tr><tr><td></td><td>、</td><td>X</td><td>√</td><td>59.7</td><td>55.8</td></tr><tr><td>When2com*[19]</td><td>X</td><td>√</td><td>X</td><td>45.7</td><td>41.7</td></tr><tr><td>When2com[19]</td><td>X</td><td>√</td><td>X</td><td>45.7</td><td>41.8</td></tr><tr><td>Who2com*[20]</td><td>X</td><td>√</td><td>X</td><td>44.3</td><td>40.3</td></tr><tr><td>Who2com [20]</td><td>X</td><td>√</td><td>X</td><td>44.8</td><td>40.4</td></tr><tr><td>V2VNet [34]</td><td>X</td><td>√</td><td>X</td><td>56.8</td><td>50.7</td></tr><tr><td>DiscoNet</td><td>X</td><td>√</td><td>X</td><td>60.3</td><td>53.9</td></tr><tr><td>DiscoNet(16)</td><td>X</td><td>√</td><td>X</td><td>58.5</td><td>53.0</td></tr><tr><td>Lower-bound</td><td>X</td><td>X</td><td>√</td><td>57.6</td><td>54.2</td></tr><tr><td></td><td>X</td><td>X</td><td>X</td><td>45.8</td><td>42.3</td></tr></table>
113
+
114
+ Table 2: Detection performance by regularizing various layers via knowledge distillation (KD). ${ \bf M } _ { i } ^ { \mathrm { s } } \{ n \} ( n \stackrel { \cdot } { = } 1 , 2 , 3 , 4 )$ denotes different layers in the decoder. The performance significantly boots once the KD regularization is applied. Further regularization has a slight effect on the detection performance.
115
+
116
+ <table><tr><td colspan="4">KD Regularization M{3}</td><td colspan="2">Average Precision (AP)</td></tr><tr><td colspan="4">H M{1} M{2}</td><td>IoU=0.5</td><td>IoU=0.7</td></tr><tr><td>xν&lt;√</td><td></td><td></td><td>M{4}</td><td>57.2</td><td>52.3</td></tr><tr><td></td><td></td><td>xxxx&lt;&lt;&gt;</td><td>xxxxx&lt;v</td><td>57.5</td><td>52.7</td></tr><tr><td></td><td></td><td></td><td></td><td>58.2</td><td>52.7</td></tr><tr><td></td><td></td><td></td><td></td><td>59.7</td><td>53.5</td></tr><tr><td></td><td></td><td></td><td></td><td>60.3</td><td>53.9</td></tr><tr><td></td><td></td><td></td><td></td><td>59.1 58.3</td><td>53.8</td></tr><tr><td>v/x</td><td>xx&lt;&lt;&lt;&lt;&gt;</td><td>xxx&lt;&lt;&lt;&gt;</td><td></td><td></td><td>52.6</td></tr></table>
117
+
118
+ $\mathrm { V } 2 \mathrm { X } { \cdot } \mathrm { S i m } 1 . 0$ follows the same storage format of nuScenes [2], a widely-used autonomous driving dataset. nuScenes collected real-world single-agent data; while we simulate multi-agent scenarios. Each scene includes a 20 second traffic flow at a certain intersection of Town05, and the LiDAR streams are recorded every 0.2 second, so each scene consists of 100 frames. We generate 100 scenes with a total of 10,000 frames, and in each scene, we randomly select 2-5 vehicles as the collaboration agents. We use 8,000/900/1,100 frames for training/validation/testing. Each frame has multiple samples, and there are 23,500 samples in the training set and 3,100 samples in the test set.
119
+
120
+ # 4.2 Quantitative evaluation
121
+
122
+ Implementation and evaluation. We crop the points located in the region of $[ - 3 2 , 3 2 ] \times [ - 3 2 , 3 2 ] \times$ $[ - 3 , 2 ]$ meters defined in the ego-vehicle $X Y Z$ coordinate. We set the width/length of each voxel as 0.25 meter, and the height as 0.4 meter; therefore the BEV map input to the student/teacher encoder has a dimension of $2 5 6 \times 2 5 6 \times 1 3$ . The intermediate feature output by the encoder has a dimension of $3 2 \times 3 2 \times 2 5 6$ , and we use an autoencoder (AE) for compression to save bandwidth: the sent message is the embedding output by AE. After the agents receive the embedding, they will decode it to the original resolution $3 2 \times 3 2 \times 2 5 6$ for intermediate collaboration. The hyperparameter $\lambda _ { \mathrm { k d } }$ is set as $1 0 ^ { 5 }$ . We train all the models using NVIDIA GeForce RTX 3090 GPU. We employ the generic BEV detection evaluation metric: Average Precision (AP) at Intersection-over-Union (IoU) threshold of 0.5 and 0.7. We target the detection of the car category and report the results on the test set.
123
+
124
+ Baselines and existing methods. We consider the single-agent perception model; called Lowerbound, which consumes a single-view point cloud. The teacher model based on early collaboration with a holistic view is considered as the Upper-bound. Both lower-bound and upper-bound can involve late collaboration, which aggregates all the boxes and applies a global non-maximum suppression (NMS). We also consider three intermediate-collaboration methods, Who2com [20], When2com [19] and V2VNet [34]. Since the original Who2com and When2com do not consider pose information, we consider both pose-aware and pose-agnostic versions to achieve fair comparisons. All the methods use the same detection architecture and conduct collaboration at the same intermediate feature layer.
125
+
126
+ Results and comparisons. Table 1 shows the comparisons in terms of AP ( $\textcircled { a } \mathrm { I o U } = 0 . 5 / 0 . 7 $ ). We see that i) early collaboration (first row) achieves the best detection performance, and there is an obvious improvement over no collaboration (last row), i.e., $\mathrm { A P } @ 0 . 5$ and $\mathrm { A P @ 0 . 7 }$ are increased by $3 8 . 2 \%$ and $4 2 . 3 \%$ respectively, reflecting the significance of collaboration; ii) late collaboration improves the lower-bound (second last row), but hurts the upper-bound (second row), reflecting the unreliability of late collaboration. This is because the final, global NMS can remove a lot of noisy boxes for the lower-bound, but would also remove many useful boxes for the upper-bound; and iii) among the intermediate collaboration-based methods, the proposed DiscoNet achieves the best performance. Comparing to the pose-aware When2com, DiscoNet improves by $3 1 . 9 \%$ in $\mathrm { A P } @ 0 . 5$ and $2 9 . 3 \%$ in $\mathrm { A P @ 0 . 7 }$ . Comparing to V2VNet, DiscoNet improves by $6 . 2 \%$ in $\mathsf { A P @ 0 . 5 }$ and $6 . 3 \ \%$ in $\mathrm { A P @ 0 . 7 }$ Even with 16-times compression by the autoencoder, DiscoNet(16) still outperforms V2VNet.
127
+
128
+ Table 3: Comparison of various intermediate collaboration strategies. KD indicates knowledge distillation. With KD and matrix-valued edge weights, our DiscoGraph outperforms the others.
129
+
130
+ <table><tr><td rowspan="2">Collaboration Strategy</td><td colspan="4">Scalar Weight</td><td colspan="3">Matrix Weight</td></tr><tr><td>No</td><td>Sum</td><td>Average</td><td>Weighted Average</td><td>Max</td><td>Cat</td><td>DiscoGraph</td></tr><tr><td>w/o KD (AP@IoU 0.5/0.7)</td><td>45.8/42.3</td><td>55.7/50.9</td><td>55.7/50.4</td><td>56.1/51.4</td><td>56.7/51.4</td><td>55.0/50.2</td><td>57.2/52.3</td></tr><tr><td>w/ KD (AP@IoU 0.5/0.7)</td><td>46.5/42.9</td><td>54.4/46.3</td><td>56.4/51.1</td><td>56.7/50.9</td><td>56.7/51.8</td><td>57.5/52.6</td><td>60.3/53.9</td></tr><tr><td>Gain</td><td>0.7/0.6</td><td>-1.3/-4.6</td><td>0.7/0.7</td><td>0.6/-0.5</td><td>0.0/0.4</td><td>2.5/2.4</td><td>3.1/1.6</td></tr><tr><td>Gain (%)</td><td>1.5/1.4</td><td>-2.3/-9.0</td><td>1.3/1.4</td><td>1.1/-1.0</td><td>0.0/0.7</td><td>3.3/4.6</td><td>5.4/3.1</td></tr></table>
131
+
132
+ ![](images/94f9630b277421bc78f106f725e6c54e342f61f6fb6857034dede40d2030fcb0.jpg)
133
+ Figure 4: Performance-bandwidth trade-off. DiscoNet(64) achieves 192 times less communication volume and still outperforms V2VNet [34].
134
+
135
+ Performance-bandwidth trade-off analysis. Fig. 4 thoroughly compares the proposed DiscoNet with the baseline methods in terms of the trade-off between detection performance and communication bandwidth. In Plots (a) and (b), the lower-bound with no collaboration is shown as a dashed line since the communication volume is zero, and the other method is shown as one dot in the plot. We see that i) DiscoNet with feature-map compression by an autoencoder achieves a far-more superior trade-off than the other methods; ii) DiscoNet(64), which is DiscoNet with 64-times feature compression by autoencoder, achieves 192 times less communication volume and still outperforms V2VNet for both $\mathrm { A P } @ 0 . 5$ and 0.7; and iii) feature compression does not significantly hurt the detection performance.
136
+
137
+ Comparison of training times with and without KD. Incorporating KD will increase the training time a little bit, from ${ \sim } 1 2 0 0 \mathrm { s }$ to ${ \sim } 1 5 0 0 \mathrm { s }$ per epoch (each epoch consists of 2,000 iterations). However, during inference, DiscoNet does not need the teacher model anymore and can work alone without extra computations. Note that our key advantage is to push the computation burden into the training stage in pursuit of efficient and effective inference which is crucial in the real-world deployment.
138
+
139
+ # 4.3 Qualitative evaluation
140
+
141
+ Visualization of edge weight. To understand the working mechanism of the proposed collaboration graph, we visualize the detection results and the corresponding edge weights; see Fig. 5 and Fig. 7. Note that the proposed edge weight is a matrix, reflecting the collaboration attention in a cell-level resolution, which is shown as a heat map. Fig. 5 (a), (b) and (c) show three exemplar detection results of Agent 1 based on the lower-bound, upper-bound and the proposed DiscoNet, respectively. We see that with the collaboration, DiscoNet is able to detect boxes in those occluded and long-range regions. To understand why, Fig. 5 (d) and (e) provide the corresponding ego edge weight and the edge weight from agent 2 to agent 1, respectively. We clearly see that with the proposed collaboration graph, Agent 1 is able to receive complementary information from the other agents. Take the first row in Fig. 5 as an example, we see that in Plot (d), the bottom-left spatial region has a much darker color, indicating that Agent 1 has less confidence about this region; while in Plot (e), the bottom-left spatial region has a much brighter color, indicating that Agent 1 has much stronger demands to request information from Agent 2.
142
+
143
+ ![](images/0f9e147c78da7f3c0138848ca13b5cbee6a5beb02d6f1e7fad34e2efc16b7424.jpg)
144
+ Figure 5: Detection and matrix-valued edge weight for Agent 1. Green and red boxes denote groundtruth (GT) and predictions, respectively. (a-c) shows the outputs of lower-bound, upper-bound and DiscoNet compared to GT. (d) Ego matrix-valued edge weight for Agent 1. Attention to the region with sparse/no measurement is suppressed. (e) Matrix-valued edge weight from Agent 2 to Agent 1. Attention to the region with complementary information from Agent 2 is enhanced.
145
+
146
+ ![](images/d2db0446ec6e857e4e2fc34a2f9cbc4fb04277e3bcd1ced0b2260b2d983fb515.jpg)
147
+ Figure 6: DiscoNet qualitatively outperforms the state-of-the-art methods. Green and red boxes denote ground-truth and detection, respectively. (a) Output of when2com. (b) Output of V2VNet. (c) Output of DiscoNet. (d)-(f) Matrix-valued edge weights. (Ego agent: 1; neighbour agents: 2 and 3.)
148
+
149
+ Comparison with When2com and V2VNet. Fig. 6 shows two examples to compare the proposed DiscoNet with When2com, V2VNet. We see that DiscoNet is able to detect more objects. The reason is that both V2VNet and when2com employ a scalar to denote the agent-to-agent attention, which cannot distinguish which region is more informative; while DiscoNet can adaptively find beneficial region in a cell-level resolution; see the visualization of matrix-valued edge weights in Fig. 6 (d)-(f).
150
+
151
+ # 4.4 Ablation study
152
+
153
+ Effect of collaboration strategy. Table 3 compares the proposed method with five baselines using different intermediate collaboration strategies. Sum simply sums all the intermediate feature maps. Average calculates the mean of all the feature maps. Max selects the maximum value of all the feature maps at each cell to produce the final feature. Cat concatenates the mean of others’ features with its own feature, and then uses a convolution layer to halve the channel number. Weighted Average appends one convolutional layer to our edge encoder $\Pi$ , to generate a scalar value as the agent-wise edge weight. We use a matrix-valued edge weight to model the collaboration among agents. Without knowledge distillation, Max has achieved the second best performance probably because it ignores the noisy information with lower value. We see that with the proposed matrix-valued edge weight and knowledge distillation, DiscoGraph significantly outperforms all the other collaboration choices.
154
+
155
+ ![](images/67f9b034777ad954f1f371bd61a8d1c42e83002a642125dbfaff38747b0b1953.jpg)
156
+ Figure 7: Detection and matrix-valued edge weight for Agent 1. Green/red boxes denote GT/predictions. (a)(b) show the outputs of upper-bound and DiscoNet. (c) Ego edge weight for Agent 1. (d) Edge weight from Agent 2 to Agent 1. The spatial regions containing complementary information for Agent 1 are highlighted by green circles in (d) and red circles in (a).
157
+
158
+ Effect of knowledge distillation. In Table 3 we investigate the versions with and without knowledge distillation, We see that i) for our method, the knowledge distillation can guide the learning of collaboration graph, and the agents can work collaboratively to approach the teacher’s performance; ii) for max without a learnable module during collaboration, knowledge distillation has no impact; and iii) for cat and average, their performances are improved a little bit, as knowledge distillation can influence the feature abstraction process. Table 2 further shows the detection performances when we apply knowledge-distillation regularization at various network layers. We see that i) once we apply knowledge distillation to regularize the feature map, the proposed method starts to achieve improvement; and ii) applying regularization on four layers has the best performance.
159
+
160
+ # 5 Conclusion
161
+
162
+ We propose a novel intermediate-collaboration method, called distilled collaboration network (DiscoNet), for multi-agent perception. Its core component is a distilled collaboration graph (DiscoGraph), which is novel in both the training paradigm and the edge weight setting. DiscoGraph is also pose-aware and adaptive to perception measurements, allowing multiple agents with the shared DiscoNet to collaboratively approach the performance of the teacher model. To validate, we build $\mathrm { V } 2 \mathrm { X } { \cdot } \mathrm { S i m } 1 . 0$ , a large-scale multi-agent 3D object detection dataset based on CARLA and SUMO. Comprehensive quantitative and qualitative experiments show that DiscoNet achieves appealing performance-bandwidth trade-off with a more straightforward design rationale.
163
+
164
+ Acknowledgment. This research is partially supported by the NSF CPS program under CMMI1932187, the National Natural Science Foundation of China under Grant 6217010074, and the Science and Technology Commission of Shanghai Municipal under Grant 21511100900. The authors gratefully acknowledge the useful comments and suggestions from anonymous reviewers.
165
+
166
+ References
167
+ [1] Rohan Anil, Gabriel Pereyra, Alexandre Passos, Robert Ormandi, George E Dahl, and Geoffrey E Hinton. Large scale distributed neural network training through online distillation. In International Conference on Learning Representations, 2018. 2
168
+ [2] Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11621–11631, 2020. 7
169
+ [3] Qi Chen, Sihai Tang, Qing Yang, and Song Fu. Cooper: Cooperative perception for connected autonomous vehicles based on 3d point clouds. In IEEE International Conference on Distributed Computing Systems (ICDCS), pages 514–524, 2019. 2
170
+ [4] Siheng Chen, Baoan Liu, Chen Feng, Carlos Vallespi-Gonzalez, and Carl K. Wellington. 3d point cloud processing and learning for autonomous driving: Impacting map creation, localization, and perception. IEEE Signal Processing Magazine, 38:68–86, 2021. 1
171
+ [5] Abhishek Das, Théophile Gervet, Joshua Romoff, Dhruv Batra, Devi Parikh, Mike Rabbat, and Joelle Pineau. Tarmac: Targeted multi-agent communication. In International Conference on Machine Learning, pages 1538–1546, 2019. 6
172
+ [6] Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. CARLA: An open urban driving simulator. In Proceedings of the 1st Annual Conference on Robot Learning, pages 1–16, 2017. 2, 6
173
+ [7] Jakob N. Foerster, Yannis M. Assael, N. D. Freitas, and S. Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In NeurIPS, 2016. 5
174
+ [8] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 3354–3361, 2012. 1
175
+ [9] Ramyad Hadidi, Jiashen Cao, Matthew Woodward, Michael S Ryoo, and Hyesoon Kim. Distributed perception by collaborative robots. IEEE Robotics and Automation Letters, 3(4):3709–3716, 2018. 6
176
+ [10] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 2, 6
177
+ [11] Yedid Hoshen. Vain: Attentional multi-agent predictive modeling. In NeurIPS, 2017. 5
178
+ [12] Jiechuan Jiang and Zongqing Lu. Learning attentional communication for multi-agent cooperation. In NeurIPS, 2018. 6
179
+ [13] Xin Jin, Cuiling Lan, Wenjun Zeng, and Zhibo Chen. Uncertainty-aware multi-shot knowledge distillation for image-based object re-identification. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 11165–11172, 2020. 6
180
+ [14] Saifullah Khan, Franz Andert, Nicolai Wojke, Julian Schindler, Alejandro Correa, and Anton Wijbenga. Towards collaborative perception for automated vehicles in heterogeneous traffic. In International Forum on Advanced Microsystems for Automotive Applications, pages 31–42, 2018. 6
181
+ [15] Daniel Krajzewicz, Jakob Erdmann, Michael Behrisch, and Laura Bieker. Recent development and applications of sumo-simulation of urban mobility. International journal on advances in systems and measurements, 5(3&4), 2012. 6
182
+ [16] Loic Landrieu and Martin Simonovsky. Large-scale point cloud semantic segmentation with superpoint graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4558–4567, 2018. 1
183
+ [17] Yiming Li, Congcong Wen, Felix Juefei-Xu, and Chen Feng. Fooling lidar perception via adversarial trajectory perturbation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 7898–7907, October 2021. 2
184
+ [18] Li Liu, Wanli Ouyang, Xiaogang Wang, Paul Fieguth, Jie Chen, Xinwang Liu, and Matti Pietikäinen. Deep learning for generic object detection: A survey. International journal of computer vision, 128(2):261–318, 2020. 1
185
+ [19] Yen-Cheng Liu, Junjiao Tian, Nathaniel Glaser, and Zsolt Kira. When2com: multi-agent perception via communication graph grouping. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4106–4115, 2020. 2, 4, 6, 7
186
+ [20] Yen-Cheng Liu, Junjiao Tian, Chih-Yao Ma, Nathan Glaser, Chia-Wen Kuo, and Zsolt Kira. Who2com: Collaborative perception via learnable handshake communication. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 6876–6883, 2020. 2, 4, 6, 7
187
+ [21] Yifan Liu, Ke Chen, Chris Liu, Zengchang Qin, Zhenbo Luo, and Jingdong Wang. Structured knowledge distillation for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2604–2613, 2019. 6
188
+ [22] Wenjie Luo, Bin Yang, and Raquel Urtasun. Fast and furious: Real time end-to-end 3d detection, tracking and motion forecasting with a single convolutional net. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 3569–3577, 2018. 1
189
+ [23] Seyed Mojtaba Marvasti-Zadeh, Li Cheng, Hossein Ghanei-Yakhdan, and Shohreh Kasaei. Deep learning for visual tracking: A comprehensive survey. IEEE Transactions on Intelligent Transportation Systems, 2021. 1
190
+ [24] Jonathan Masci, Ueli Meier, Dan Cire¸san, and Jürgen Schmidhuber. Stacked convolutional auto-encoders for hierarchical feature extraction. In International conference on artificial neural networks, pages 52–59, 2011. 4
191
+ [25] Shervin Minaee, Yuri Boykov, F. Porikli, A. Plaza, N. Kehtarnavaz, and Demetri Terzopoulos. Image segmentation using deep learning: A survey. IEEE transactions on pattern analysis and machine intelligence, PP, 2021. 1
192
+ [26] Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. CoRR, abs/1412.6550, 2015. 2
193
+ [27] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointrcnn: 3d object proposal generation and detection from point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–779, 2019. 1
194
+ [28] Shaoshuai Shi, Zhe Wang, Jianping Shi, Xiaogang Wang, and Hongsheng Li. From points to parts: 3d object detection from point cloud with part-aware and part-aggregation network. IEEE transactions on pattern analysis and machine intelligence, 2020. 2
195
+ [29] Weijing Shi and Raj Rajkumar. Point-gnn: Graph neural network for 3d object detection in a point cloud. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1711–1719, 2020. 2
196
+ [30] Yoav Shoham and Kevin Leyton-Brown. Multiagent systems: Algorithmic, game-theoretic, and logical foundations. Cambridge University Press, 2008. 5
197
+ [31] Amanpreet Singh, Tushar Jain, and Sainbayar Sukhbaatar. Learning when to communicate at scale in multiagent cooperative and competitive tasks. In International Conference on Learning Representations, 2018. 5
198
+ [32] Sainbayar Sukhbaatar, Arthur D. Szlam, and Rob Fergus. Learning multiagent communication with backpropagation. In NeurIPS, 2016. 5
199
+ [33] Nicholas Vadivelu, Mengye Ren, James Tu, Jingkang Wang, and Raquel Urtasun. Learning to communicate and correct pose errors. In 4th Conference on Robot Learning (CoRL), 2020. 6
200
+ [34] Tsun-Hsuan Wang, Sivabalan Manivasagam, Ming Liang, Bin Yang, Wenyuan Zeng, and Raquel Urtasun. V2vnet: Vehicle-to-vehicle communication for joint perception and prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pages 605–621, 2020. 2, 4, 6, 7, 8
201
+ [35] Yue Wang, Alireza Fathi, Jiajun Wu, Thomas Funkhouser, and Justin Solomon. Multi-frame to singleframe: Knowledge distillation for 3d object detection. In Proceedings of the European Conference on Computer Vision Workshops, 2020. 6
202
+ [36] Yufeng Yue, Chunyang Zhao, Mingxing Wen, Zhenyu Wu, and Danwei Wang. Collaborative semantic perception and relative localization based on map matching. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 6188–6193, 2020. 6
203
+ [37] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4490–4499, 2018. 2
parse/train/ZRcjSOmYraB/ZRcjSOmYraB_content_list.json ADDED
@@ -0,0 +1,932 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Learning Distilled Collaboration Graph for Multi-Agent Perception ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 256,
8
+ 122,
9
+ 740,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yiming Li New York University yimingli@nyu.edu ",
17
+ "bbox": [
18
+ 196,
19
+ 226,
20
+ 356,
21
+ 268
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Shunli Ren Shanghai Jiao Tong University renshunli@sjtu.edu.cn ",
28
+ "bbox": [
29
+ 387,
30
+ 226,
31
+ 591,
32
+ 268
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Pengxiang Wu Rutgers University pxiangwu@gmail.com ",
39
+ "bbox": [
40
+ 622,
41
+ 226,
42
+ 802,
43
+ 268
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Siheng Chen∗ Shanghai Jiao Tong University sihengc@sjtu.edu.cn ",
50
+ "bbox": [
51
+ 191,
52
+ 289,
53
+ 392,
54
+ 332
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Chen Feng∗ New York University cfeng@nyu.edu ",
61
+ "bbox": [
62
+ 416,
63
+ 289,
64
+ 557,
65
+ 332
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Wenjun Zhang Shanghai Jiao Tong University zhangwenjun@sjtu.edu.cn ",
72
+ "bbox": [
73
+ 580,
74
+ 289,
75
+ 807,
76
+ 332
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "Abstract ",
83
+ "text_level": 1,
84
+ "bbox": [
85
+ 462,
86
+ 367,
87
+ 535,
88
+ 382
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "To promote better performance-bandwidth trade-off for multi-agent perception, we propose a novel distilled collaboration graph (DiscoGraph) to model trainable, pose-aware, and adaptive collaboration among agents. Our key novelties lie in two aspects. First, we propose a teacher-student framework to train DiscoGraph via knowledge distillation. The teacher model employs an early collaboration with holistic-view inputs; the student model is based on intermediate collaboration with single-view inputs. Our framework trains DiscoGraph by constraining postcollaboration feature maps in the student model to match the correspondences in the teacher model. Second, we propose a matrix-valued edge weight in DiscoGraph. In such a matrix, each element reflects the inter-agent attention at a specific spatial region, allowing an agent to adaptively highlight the informative regions. During inference, we only need to use the student model named as the distilled collaboration network (DiscoNet). Attributed to the teacher-student framework, multiple agents with the shared DiscoNet could collaboratively approach the performance of a hypothetical teacher model with a holistic view. Our approach is validated on V2X$\\mathrm { S i m } 1 . 0$ , a large-scale multi-agent perception dataset that we synthesized using CARLA and SUMO co-simulation. Our quantitative and qualitative experiments in multi-agent 3D object detection show that DiscoNet could not only achieve a better performance-bandwidth trade-off than the state-of-the-art collaborative perception methods, but also bring more straightforward design rationale. Our code is available on https://github.com/ai4ce/DiscoNet. ",
95
+ "bbox": [
96
+ 232,
97
+ 397,
98
+ 766,
99
+ 686
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "1 Introduction ",
106
+ "text_level": 1,
107
+ "bbox": [
108
+ 174,
109
+ 710,
110
+ 310,
111
+ 727
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "Perception, which involves organizing, identifying and interpreting sensory information, is a crucial ability for intelligent agents to understand the environment. Single-agent perception [4] has been studied extensively in recent years, e.g., 2D/3D object detection [18, 27], tracking [23, 22] and segmentation [25, 16], etc. Despite its great progress, single-agent perception suffers from a number of shortcomings stemmed from its individual perspective. For example, in autonomous driving [8], the LiDAR-based perception system can hardly perceive the target in the occluded or long-range areas. Intuitively, with an appropriate collaboration strategy, multi-agent perception could fundamentally upgrade the perception ability over single-agent perception. ",
118
+ "bbox": [
119
+ 174,
120
+ 734,
121
+ 825,
122
+ 844
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "To design a collaboration strategy, current approaches mainly include raw-measurement-based early collaboration, output-based late collaboration and feature-based intermediate collaboration. ",
129
+ "bbox": [
130
+ 176,
131
+ 852,
132
+ 825,
133
+ 878
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "image",
139
+ "img_path": "images/1c66afcc6198f0995246098a2b12241266dfde33ae9237b23f6b144bf6eb2c3c.jpg",
140
+ "image_caption": [
141
+ "Figure 1: Scheme comparison. (a) Early collaboration requires an expensive bandwidth for raw data transmission. (b) Intermediate collaboration needs an appropriate collaboration strategy. (c) The proposed method incorporates both early and intermediate collaboration into a knowledge distillation framework, enabling the knowledge of early collaboration to guide the training of an intermediate collaboration strategy, leading to better trade-off between performance and bandwidth. "
142
+ ],
143
+ "image_footnote": [],
144
+ "bbox": [
145
+ 227,
146
+ 89,
147
+ 789,
148
+ 290
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Early collaboration [3] aggregates the raw measurements from all the agents, promoting a holistic perspective; see Fig. 1 (a). It can fundamentally solve the occlusion and long-range issues occurring in the single-agent perception; however, it requires a lot of communication bandwidth. Contrarily, late collaboration aggregates each agent’s perception outputs. Although it is bandwidth-efficient, each individual perception output could be noisy and incomplete, causing unsatisfying fusion results. To deal with the performance-bandwidth trade-off, intermediate collaboration [19, 34, 20] has been proposed to aggregate intermediate features across agents; see Fig. 1 (b). Since we can squeeze representative information to compact features, this approach can potentially both achieve communication bandwidth efficiency and upgrade perception ability; however, a bad design of collaboration strategy might cause information loss during feature abstraction and fusion, leading to limited improvement of the perception ability. ",
155
+ "bbox": [
156
+ 174,
157
+ 385,
158
+ 825,
159
+ 536
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "To achieve an effective design of intermediate collaboration, we propose a distilled collaboration graph (DiscoGraph) to model the collaboration among agents. In DiscoGraph, each node is an agent with real-time pose information and each edge reflects the pair-wise collaboration between two agents. The proposed DiscoGraph is trainable, pose-aware, and adaptive to real-time measurements, reflecting dynamic collaboration among agents. It is novel from two aspects. First, from the training aspect, we propose a teacher-student framework to train DiscoGraph through knowledge distillation [1, 10, 26]; see Fig. 1 (c). Here the teacher model is based on early collaboration with holistic-view inputs and the student model is based on intermediate collaboration with single-view inputs. The knowledge-distillation-based framework enhances the training of DiscoGraph by constraining the postcollaboration feature maps in the student model to match the correspondences in the teacher model. With the guidance of both output-level supervision from perception and feature-level supervision from knowledge distillation, the distilled collaboration graph promotes better feature abstraction and aggregation, improving the performance-bandwidth trade-off. Second, from the modeling aspect, we propose a matrix-valued edge weight in DiscoGraph to reflect the collaboration strength with a high spatial resolution. In the matrix, each element represents the inter-agent attention at a specific spatial region. This design allows the agents to adaptively highlight the informative regions and strategically select appropriate partners to request supplementary information. ",
166
+ "bbox": [
167
+ 173,
168
+ 542,
169
+ 826,
170
+ 777
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "During inference, we only need to use the student model. Since it leverages DiscoGraph as the key component, we call the student model as the distilled collaboration network (DiscoNet). Multiple agents with the shared DiscoNet could collaboratively approach the performance of a hypothetical teacher model with the holistic view. ",
177
+ "bbox": [
178
+ 174,
179
+ 785,
180
+ 823,
181
+ 839
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "To validate the proposed method, we build V2X-Sim 1.0, a new large-scale multi-agent 3D object detection dataset in autonomous driving scenarios based on CARLA and SUMO co-simulation platform [6]. Comprehensive experiments conducted in 3D object detection [37, 28, 29, 17] have shown that the proposed DiscoNet achieves better performance-bandwidth trade-off and lower communication latency than the state-of-the-art intermediate collaboration methods. ",
188
+ "bbox": [
189
+ 174,
190
+ 847,
191
+ 823,
192
+ 915
193
+ ],
194
+ "page_idx": 1
195
+ },
196
+ {
197
+ "type": "image",
198
+ "img_path": "images/840c243044307a32e675ccc3354761110a2f63d547ea8c4da9f56dd0b071cd01.jpg",
199
+ "image_caption": [
200
+ "Figure 2: Overall teacher-student training framework. In the student model, for Agent 1 (in red), its input single-view point cloud can be converted to a BEV map, and then be consumed by a shared encoder $\\Theta ^ { \\mathrm { s } }$ to obtain the feature map $\\mathbf { F } _ { i } ^ { \\mathrm { s } }$ . Based on the collaboration graph $\\mathcal { G } _ { \\Pi }$ , Agent 1 aggregates the neural messages from other agents and obtains the updated feature map $\\mathbf { H } _ { i } ^ { \\mathrm { s } }$ . The shared header following the shared decoder outputs the 3D detection results. In the teacher model, we aggregate the points collected from all agents to obtain a holistic-view point cloud. We crop the region and align the pose to ensure the BEV maps in both teacher and student models are synchronized. We constrain all the post-collaboration feature maps in the student model to match the correspondences in the teacher model through knowledge distillation, resulting in a collaborative student model. "
201
+ ],
202
+ "image_footnote": [],
203
+ "bbox": [
204
+ 181,
205
+ 89,
206
+ 813,
207
+ 313
208
+ ],
209
+ "page_idx": 2
210
+ },
211
+ {
212
+ "type": "text",
213
+ "text": "2 Multi-Agent Perception System with Distilled Collaboration Graph ",
214
+ "text_level": 1,
215
+ "bbox": [
216
+ 173,
217
+ 458,
218
+ 764,
219
+ 477
220
+ ],
221
+ "page_idx": 2
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "This work considers a collaborative perception system to perceive a scene, where multiple agents can perceive and collaborate with each other through a broadcast communication channel. We assume each agent is provided with an accurate pose and the perceived measurements are well synchronized. Then, given a certain communication bandwidth, we aim to maximize the perception ability of each agent through optimizing a collaboration strategy. To design such a strategy, we consider a teacher-student training framework to integrate the strengths from both early and intermediate collaboration. During training, we leverage an early-collaboration model (teacher) to teach an intermediate-collaboration model (student) how to collaborate through knowledge distillation. Here the teacher model and the student model are shared by all the agents, but each agent would input raw measurements from its own view to either model; see Fig. 2. During inference, we only need the student model, where multiple agents with the shared student model could collaboratively approach the performance of the teacher model with the hypothetical holistic view. ",
226
+ "bbox": [
227
+ 174,
228
+ 484,
229
+ 825,
230
+ 650
231
+ ],
232
+ "page_idx": 2
233
+ },
234
+ {
235
+ "type": "text",
236
+ "text": "In this work, we focus on the perception task of LiDAR-based 3D object detection because the unifying 3D space naturally allows the aggregation of multiple LiDAR scans. Note that in principle the proposed method is generally-applicable in collaborative perception if there exists a unified space to aggregate raw data across multiple agents. ",
237
+ "bbox": [
238
+ 174,
239
+ 656,
240
+ 825,
241
+ 712
242
+ ],
243
+ "page_idx": 2
244
+ },
245
+ {
246
+ "type": "text",
247
+ "text": "2.1 Student: Intermediate collaboration via graphs ",
248
+ "text_level": 1,
249
+ "bbox": [
250
+ 174,
251
+ 724,
252
+ 542,
253
+ 738
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Feature encoder. The functionality is to extract informative features from raw measurements for each agent. Let $\\mathcal { X } _ { i }$ be the 3D point cloud collected by the $i$ th agent ( $M$ agents in total), the feature of the ith agent is obtained as $\\mathbf { F } _ { i } ^ { \\mathrm { s } } \\gets \\Theta ^ { \\mathrm { s } } ( \\mathcal { X } _ { i } )$ , where $\\Theta ^ { \\mathrm { s } } ( \\cdot )$ is the feature encoder shared by all the agents and the superscript s reflects the student mode. To implement the encoder, we convert a 3D point cloud to a bird’s-eye-view (BEV) map, which is amenable to classic 2D convolutions. Specifically, we quantize the 3D points into regular voxels and represent the 3D voxel lattice as a 2D pseudo-image, with the height dimension corresponding to image channels. Such a 2D image is virtually a BEV map, whose basic element is a cell that is associated with a binary vector along the vertical axis. Let $\\mathbf { B } _ { i } \\in \\{ 0 , 1 \\} ^ { K \\times K \\times C }$ be the BEV map of the $i$ th agent associated with $\\mathcal { X } _ { i }$ . With this map, we can apply four blocks composed of 2D convolutions, batch normalization and ReLU activation to gradually reduce the spatial dimension and increase the number of channels for the BEV, to obtain the feature map $\\mathbf { F } _ { i } ^ { \\mathrm { s } } \\in \\bar { \\mathbb { R } } ^ { \\bar { K } \\times \\bar { K } \\times \\bar { C } }$ with $\\bar { K } \\times \\bar { K }$ the spatial resolution and $\\bar { C }$ the number of channels. ",
260
+ "bbox": [
261
+ 173,
262
+ 743,
263
+ 826,
264
+ 911
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "Feature compression. To save the communication bandwidth, each agent could compress its feature map prior to transmission. Here we consider a $1 \\times 1$ convolutional autoencoder [24] to compress/decompress the feature maps along the channel dimension. The autoencoder is trained together with the whole system, making the system work with limited collaboration information. ",
271
+ "bbox": [
272
+ 174,
273
+ 92,
274
+ 825,
275
+ 147
276
+ ],
277
+ "page_idx": 3
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "Collaboration graph process. The functionality is to update the feature map through data transmission among the agents. The core component here is a collaboration graph1 $\\dot { \\mathcal { G } } _ { \\Pi } ( \\nu , \\bar { \\mathcal { E } } _ { \\Pi } )$ , where $\\nu$ is the fixed node set and $\\mathcal { E } _ { \\Pi }$ is the trainable edge set. Each node in $\\nu$ is an agent with the real-time pose information; for instance, $\\pmb { \\xi } _ { i } \\in \\mathfrak { s e } ( 3 )$ is the ith agent’s pose in the global coordinate system; and each edge in $\\mathcal { E } _ { \\Pi }$ is trainable and models the collaboration between two agents, with $\\Pi$ an edge-weight encoder, reflecting the trainable collaboration strength between agents. Let $\\mathcal { M } _ { \\mathcal { G } _ { \\Pi } } ( \\cdot )$ be the collaboration process defined on the collaboration graph $\\mathcal { G } _ { \\Pi }$ . The feature maps of all the agents after collaboration are $\\{ \\mathbf { H } _ { i } ^ { \\mathrm { s } } \\} _ { i = 1 } ^ { M } \\mathcal { M } _ { \\mathcal { G } _ { \\Pi } } ( \\{ \\mathbf { F } _ { i } ^ { \\mathrm { s } } \\} _ { i = 1 } ^ { M } )$ . This process has three stages: neural message transmission (S1), neural message attention (S2) and neural message aggregation (S3). ",
282
+ "bbox": [
283
+ 174,
284
+ 152,
285
+ 825,
286
+ 279
287
+ ],
288
+ "page_idx": 3
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "In the neural message transmission stage (S1), each agent transmits its BEV-based feature map to the other agents. Since the BEV-based feature map summarizes the information of each agent, we consider it as a neural message. In the neural message attention stage (S2), each agent receives others’ neural messages and determines the matrix-valued edge weights, which reflect the importance of the neural message from one agent to another at each individual cell. Since each agent has its unique pose, we leverage the collaboration graph to achieve feature transformation across agents. For the ith agent, the transformed BEV-based feature map from the $j$ th agent is then $\\mathbf { F } _ { j i } ^ { \\mathrm { s } } = \\bar { \\Gamma } _ { j i } ( \\mathbf { F } _ { i } ^ { \\mathrm { s } } ) \\in \\mathbb { R } ^ { \\bar { K } \\times \\bar { K } \\times \\bar { C } }$ where the transformation $\\Gamma _ { j i } ( \\cdot )$ is based on two ego poses $\\xi _ { j }$ and $\\pmb { \\xi } _ { i }$ . Now $\\mathbf { F } _ { j i } ^ { \\mathrm { s } }$ and $\\mathbf { F } _ { i } ^ { \\mathrm { s } }$ are supported in the same coordinate system. To determine the edge weights, we use the edge encoder $\\Pi$ to correlate the ego feature map and the feature map from another agent; that is, the matrix-valued edge weight from the $j$ th agent to the ith agent is $\\mathbf { W } _ { j i } = \\bar { \\Pi } ( \\bar { \\mathbf { F } _ { j i } ^ { \\mathrm { s } } } , \\mathbf { F } _ { i } ^ { \\mathrm { s } } ) \\in \\mathbb { R } ^ { \\bar { K } \\times \\bar { K } }$ , where $\\Pi$ concatenates two feature maps along the channel dimension and then uses four $1 \\times 1$ convolutional layers to gradually reduce the number of channels from $2 \\bar { C }$ to 1. Meanwhile, there is a softmax operation applied at each cell in the feature map to normalize the edge weights across multiple agents. Note that previous works [19, 20, 34] generally consider a scalar-valued edge weight to reflect the overall collaboration strength between two agents; while we consider a matrix-valued edge weight $\\mathbf { W } _ { j i }$ , which models the collaboration strength from the $j$ th agent to the ith agent with a ${ \\bar { K } } \\times { \\bar { K } }$ spatial resolution. In this matrix, each element corresponds to a cell in the BEV map, indicating a specific spatial region; thus, this matrix reflects the spatial attention at a cell-level resolution. In the neural message aggregation stage (S3), each agent aggregates the feature maps from all the agents based on the normalized matrix-valued edge weights. The updated feature map of the agent $i$ is $\\begin{array} { r } { \\mathbf { H } _ { i } ^ { \\mathrm { s } } = \\sum _ { j = 1 } ^ { M } \\mathbf { W } _ { j i } \\odot \\mathbf { F } _ { j i } ^ { \\mathrm { s } } } \\end{array}$ , where $\\odot$ denotes the dot product with channel-wise broadcasting. ",
293
+ "bbox": [
294
+ 173,
295
+ 284,
296
+ 825,
297
+ 598
298
+ ],
299
+ "page_idx": 3
300
+ },
301
+ {
302
+ "type": "text",
303
+ "text": "Remark. The proposed collaboration graph is trainable because each matrix-valued edge weight is a trainable matrix to reflect the agent-to-agent attention in a cell-level spatial resolution; it is poseaware, empowering all the agents to work with the synchronized coordinate system; furthermore, it is dynamic at each timestamp as each edge weight would adapt to the real-time neural messages. According to the proposed collaboration graph, the agents can discover the region requiring collaboration on the fly, and strategically select appropriate partners to request supplementary information. ",
304
+ "bbox": [
305
+ 173,
306
+ 604,
307
+ 825,
308
+ 688
309
+ ],
310
+ "page_idx": 3
311
+ },
312
+ {
313
+ "type": "text",
314
+ "text": "Decoder and header. After collaboration, each agent decodes the updated BEV-based feature map. The decoded feature map is ${ \\bf M } _ { i } ^ { \\mathrm { s } } \\Psi ^ { \\mathrm { s } } ( { \\bf H } _ { i } ^ { \\mathrm { s } } )$ . To implement the decoder $\\Psi ^ { \\mathrm { s } } ( \\cdot )$ , we progressively up-sample $\\mathbf { H } _ { i } ^ { \\mathrm { s } }$ with four layers, where each layer first concatenates the previous feature map with the corresponding feature map in the encoder and then uses a $1 \\times 1$ convolutional operation to halve the number of channels. Finally, we use an output header to generate the final detection outputs, $\\hat { \\mathbf { Y } } _ { i } ^ { \\mathrm { s } } \\gets \\Phi ^ { \\mathrm { s } } ( \\mathbf { M } _ { i } ^ { \\mathrm { s } } )$ . To implement the header $\\Psi ^ { \\mathrm { s } } ( \\cdot )$ , we use two branches of convolutional layers to classify the foreground-background categories and regress the bounding boxes. ",
315
+ "bbox": [
316
+ 174,
317
+ 694,
318
+ 825,
319
+ 794
320
+ ],
321
+ "page_idx": 3
322
+ },
323
+ {
324
+ "type": "text",
325
+ "text": "2.2 Teacher: Early collaboration ",
326
+ "text_level": 1,
327
+ "bbox": [
328
+ 176,
329
+ 799,
330
+ 413,
331
+ 814
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "During the training phase, an early-collaboration model, as the teacher, is introduced to guide the intermediate-collaboration model, which is a student. Similar to the student model, the teacher’s pipeline has the feature encoder $\\Theta ^ { \\mathrm { t } }$ , feature decoder $\\Psi ^ { \\mathrm { t } }$ and the output header $\\Phi ^ { \\mathrm { t } }$ . Note that all the agents share the same teacher model to guide one student model; however, each agent provides the inputs with its own pose, and its inputs to both the teacher and student models should be well aligned. ",
338
+ "bbox": [
339
+ 174,
340
+ 818,
341
+ 825,
342
+ 887
343
+ ],
344
+ "page_idx": 3
345
+ },
346
+ {
347
+ "type": "text",
348
+ "text": "Feature encoder. Let $\\mathcal { X } = \\mathcal { A } ( \\pmb { \\xi } _ { 1 } \\circ \\mathcal { X } _ { 1 } , \\pmb { \\xi } _ { 2 } \\circ \\mathcal { X } _ { 2 } , . . . , \\pmb { \\xi } _ { M } \\circ \\mathcal { X } _ { M } )$ be a holistic-view 3D point cloud that aggregates all the points from all $M$ agents in the global coordinate system, where $\\mathcal { A } ( \\cdot , . . . , \\cdot )$ is the aggregation operator of multiple 3D point clouds, and $\\pmb { \\xi } _ { i }$ and $\\mathcal { X } _ { i }$ are the pose and the 3D point cloud of the ith agent, respectively. To ensure the inputs to the teacher model and the student model are aligned, we transform the holistic-view point cloud $\\mathcal { X }$ to an agent’s own coordinate based on the pose information. Now, for the ith agent, the input to the teacher model $\\pmb { \\xi } _ { i } ^ { - 1 } \\circ \\pmb { \\chi }$ and the input to the student model $\\mathcal { X } _ { i }$ are in the same coordinate system. Similarly to the feature encoder in the student model, we convert the 3D point cloud $\\pmb { \\xi } _ { i } ^ { - 1 } \\circ \\mathscr { X }$ to a BEV map and use 2D convolutions to obtain the feature map of the ith agent in the teacher model, $\\mathbf { H } _ { i } ^ { \\mathrm { t } } \\in \\mathbb { R } ^ { \\bar { K } \\times \\bar { K } \\times \\bar { C } }$ . Here we crop the BEV map to ensure it has the same spatial range and resolution with the BEV map in the student model. ",
349
+ "bbox": [
350
+ 174,
351
+ 90,
352
+ 825,
353
+ 236
354
+ ],
355
+ "page_idx": 4
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "Decoder and header. Similarly to the decoder and header in the student model, we adopt $\\mathbf { M } _ { i } ^ { \\mathrm { t } } \\gets$ $\\Psi ^ { \\mathrm { t } } ( \\mathbf { H } _ { i } ^ { \\mathrm { t } } )$ to obtain the decoded BEV-based feature map and $\\widehat { \\mathbf { Y } } _ { i } ^ { \\mathrm { t } } \\gets \\Phi ^ { \\mathrm { t } } ( \\mathbf { M } _ { i } ^ { \\mathrm { t } } )$ to obtain the predicted foreground-background categories and regressed bounding boxes. ",
360
+ "bbox": [
361
+ 174,
362
+ 241,
363
+ 825,
364
+ 286
365
+ ],
366
+ "page_idx": 4
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "Teacher training scheme. As in common teacher-student frameworks, we train the teacher model \nseparately. We employ the binary cross-entropy loss to supervise foreground-background classifi \ncation andloss functidenoted as $L _ { 1 }$ ise the bounding-box regression. Overall, we min, where classification and regression losses are cound-truth detection in the perception region of the mize thelectivelyth agent. $\\begin{array} { r } { \\mathcal { L } ^ { \\mathrm { t } } = \\sum _ { i = 1 } ^ { M } \\mathcal { L } _ { \\mathrm { d e t } } ( \\mathbf { Y } _ { i } ^ { \\mathrm { t } } , \\widehat { \\mathbf { Y } } _ { i } ^ { \\mathrm { t } } ) } \\end{array}$ $\\mathcal { L } _ { \\mathrm { d e t } }$ $\\mathbf { Y } _ { i } ^ { \\mathrm { t } } = \\mathbf { Y } _ { i } ^ { \\mathrm { s } }$ $i$ ",
371
+ "bbox": [
372
+ 173,
373
+ 292,
374
+ 825,
375
+ 366
376
+ ],
377
+ "page_idx": 4
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "2.3 System training with knowledge distillation ",
382
+ "text_level": 1,
383
+ "bbox": [
384
+ 173,
385
+ 369,
386
+ 516,
387
+ 385
388
+ ],
389
+ "page_idx": 4
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "Given a well-trained teacher model, we use both detection loss and knowledge distillation loss to supervise the training of the student model. We consider minimizing the following loss ",
394
+ "bbox": [
395
+ 174,
396
+ 386,
397
+ 823,
398
+ 412
399
+ ],
400
+ "page_idx": 4
401
+ },
402
+ {
403
+ "type": "equation",
404
+ "img_path": "images/5eb583b04d98a3eeb458cc35cc50b09c0ccee6af703317d14c232ae4f0b061b9.jpg",
405
+ "text": "$$\n\\mathcal { L } ^ { \\mathrm { s } } = \\sum _ { i = 1 } ^ { M } \\left( \\mathcal { L } _ { \\mathrm { d e t } } ( \\mathbf { Y } _ { i } ^ { \\mathrm { s } } , \\widehat { \\mathbf { Y } } _ { i } ^ { \\mathrm { s } } ) + \\lambda _ { \\mathrm { k d } } \\mathcal { L } _ { \\mathrm { k d } } ( \\mathbf { H } _ { i } ^ { \\mathrm { s } } , \\mathbf { H } _ { i } ^ { \\mathrm { t } } ) + \\lambda _ { \\mathrm { k d } } \\mathcal { L } _ { \\mathrm { k d } } ( \\mathbf { M } _ { i } ^ { \\mathrm { s } } , \\mathbf { M } _ { i } ^ { \\mathrm { t } } ) \\right) .\n$$",
406
+ "text_format": "latex",
407
+ "bbox": [
408
+ 269,
409
+ 411,
410
+ 727,
411
+ 454
412
+ ],
413
+ "page_idx": 4
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "The detection loss $\\mathcal { L } _ { \\mathrm { d e t } }$ is similar to that of the teacher, including both foreground-background classification loss and the bounding box regression loss, pushing the detection result of each agent to be close to its local ground-truth. The second and third terms form a knowledge distillation loss, regularizing the student model to generate similar feature maps with the teacher model. The hyperparameter $\\lambda _ { \\mathrm { k d } }$ controls the weight of the knowledge distillation loss $\\mathcal { L } _ { \\mathrm { k d } }$ defined as follows ",
418
+ "bbox": [
419
+ 174,
420
+ 458,
421
+ 825,
422
+ 529
423
+ ],
424
+ "page_idx": 4
425
+ },
426
+ {
427
+ "type": "equation",
428
+ "img_path": "images/2847bbc5a51ed27e7dd1b0c0221ad5fc0cbaaa154b8f9d8677755ad6648a2a30.jpg",
429
+ "text": "$$\n\\mathcal { L } _ { \\mathrm { k d } } ( \\mathbf { H } _ { i } ^ { \\mathrm { s } } , \\mathbf { H } _ { i } ^ { \\mathrm { t } } ) = \\sum _ { n = 1 } ^ { { \\bar { K } } \\times { \\bar { K } } } D _ { \\mathrm { K L } } \\left( \\sigma \\left( \\left( \\mathbf { H } _ { i } ^ { \\mathrm { t } } \\right) _ { n } \\right) \\vert \\vert \\sigma \\left( \\left( \\mathbf { H } _ { i } ^ { \\mathrm { s } } \\right) _ { n } \\right) \\right) ,\n$$",
430
+ "text_format": "latex",
431
+ "bbox": [
432
+ 320,
433
+ 526,
434
+ 676,
435
+ 570
436
+ ],
437
+ "page_idx": 4
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "where $D _ { K L } ( p ( \\mathbf { x } ) | | q ( \\mathbf { x } ) )$ denotes the Kullback-Leibler (KL) divergence of distribution $q ( \\mathbf { x } )$ from distribution $p ( \\mathbf { x } ) , \\sigma ( \\cdot )$ indicates the softmax operation of the feature vector along the channel dimension, and $( \\mathbf { H } _ { i } ^ { \\mathrm { s } } ) _ { n }$ and $( { \\bf { H } } _ { i } ^ { \\mathrm { { t } } } ) _ { n }$ denote the feature vectors at the $n$ th cell of the ith agent’s feature map in the student model and teacher model, respectively. Similarly, the loss on decoded feature maps $\\mathcal { L } _ { \\mathrm { k d } } ( \\mathbf { M } _ { i } ^ { \\mathrm { s } } , \\mathbf { M } _ { i } ^ { \\mathrm { t } } )$ can be introduced to enhance the regularization. ",
442
+ "bbox": [
443
+ 173,
444
+ 574,
445
+ 825,
446
+ 646
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "Remark. As mentioned in Section 2.in the student model is computed by $\\{ \\mathbf { H } _ { i } ^ { \\mathrm { s } } \\} _ { i = 1 } ^ { M } \\mathcal { M } _ { \\mathcal { G } _ { \\Pi } } ( \\{ \\mathbf { \\dot { F } } _ { i } ^ { \\mathrm { s } } \\} _ { i = 1 } ^ { M ^ { - } } ) .$ the collaboration graph process. Intuitively, the feature map of the teacher model $\\{ \\mathbf { H } _ { i } ^ { \\mathrm { t } } \\} _ { i = 1 } ^ { M }$ would be the desired output of the collaboration graph process $\\mathcal { M } _ { \\mathcal { G } _ { \\Pi } } ( \\cdot )$ . Therefore, we constrain all the post-collaboration feature maps in the student model to match the correspondences in the teacher model through knowledge distillation. This constraint would further regularize the upfront trainable components: i) the distilled student encoder $\\Theta ^ { \\mathrm { s } }$ , which abstracts the features from raw measurements and produces the input to $\\mathcal { M } _ { \\mathcal { G } _ { \\Pi } } ( \\cdot )$ , and ii) the edge-weight encoder $\\Pi$ in the distilled collaboration graph. Consequently, through knowledge distillation and back-propagation, the distilled student encoder would learn to abstract informative features from raw data for better collaboration; and the distilled edge-weight encoder would learn how to control the collaboration based on agents’ features. In a word, our distilled collaboration network (DiscoNet) can comprehend feature abstraction and fusion via the proposed knowledge distillation framework. ",
453
+ "bbox": [
454
+ 173,
455
+ 650,
456
+ 826,
457
+ 820
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "3 Related Work ",
464
+ "text_level": 1,
465
+ "bbox": [
466
+ 174,
467
+ 830,
468
+ 323,
469
+ 848
470
+ ],
471
+ "page_idx": 4
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "Multi-agent communication. As core components in a multi-agent system, communication strategy among agents has been actively studied in previous works [30, 7, 31]. For example, CommNet [32] adopted the averaging operation to achieve continuous communication in multi-agent system; VAIN [11] considered an attention mechanism to determine which agents would share information; ",
476
+ "bbox": [
477
+ 174,
478
+ 856,
479
+ 825,
480
+ 911
481
+ ],
482
+ "page_idx": 4
483
+ },
484
+ {
485
+ "type": "image",
486
+ "img_path": "images/8102d95755f63e0f194402216f3f8f1f81f9dc1f52403b9bae6360d3da1ad034.jpg",
487
+ "image_caption": [
488
+ "Figure $3 \\colon \\mathrm { V } 2 \\mathrm { X } { \\cdot } \\mathrm { S i m } 1 . 0$ dataset. (a) Point clouds from multiple agents in a top-down view (each color indicates an individual agent). (b) Snapshot of the rendered CARLA-SUMO co-simulation. (c) The map of Town05 which is a squared-grid town with cross junctions and multiple lanes per direction. "
489
+ ],
490
+ "image_footnote": [],
491
+ "bbox": [
492
+ 199,
493
+ 93,
494
+ 810,
495
+ 246
496
+ ],
497
+ "page_idx": 5
498
+ },
499
+ {
500
+ "type": "text",
501
+ "text": "ATOC [12] exploited an attention unit to determine what information to share with other agents; and TarMAC [5] implicitly learned a signature-based soft attention mechanism to let agents actively select which agents should receive the messages. In this work, we focus on the 3D perception task and propose a trainable, dynamic collaboration graph to control the communication among agents. ",
502
+ "bbox": [
503
+ 174,
504
+ 314,
505
+ 825,
506
+ 369
507
+ ],
508
+ "page_idx": 5
509
+ },
510
+ {
511
+ "type": "text",
512
+ "text": "Collaborative perception. Collaborative perception is an application of multi-agent communication system to perception tasks [9, 36, 14]. Who2com [20] exploited a handshake communication mechanism to determine which two agents should communicate for image segmentation; When2com [19] introduced an asymmetric attention mechanism to decide when to communicate and how to create communication groups for image segmentation; V2VNet [34] proposed multiple rounds of message passing on a spatial-aware graph neural network for joint perception and prediction in autonomous driving; and [33] proposed a pose error regression module to learn to correct pose errors when the pose information from other agents is noisy. ",
513
+ "bbox": [
514
+ 174,
515
+ 376,
516
+ 825,
517
+ 487
518
+ ],
519
+ "page_idx": 5
520
+ },
521
+ {
522
+ "type": "text",
523
+ "text": "Knowledge distillation. Knowledge distillation (KD) is a widely used technique to compress a larger teacher network to a smaller student network by pushing the student to approach the teacher in either output or intermediate feature space [10], and it has been applied to various tasks such as semantic segmentation [21], single-agent 3D detection [35], and object re-identification [13]. In this work, we apply the KD technique to a new application scenario: multi-agent graph learning. The teacher is an early-collaboration model with privileged information, and the student is an intermediatecollaboration model with limited viewpoint. The distilled collaboration graph could enable effective and efficient inference for the student model without teacher’s supervision. ",
524
+ "bbox": [
525
+ 174,
526
+ 493,
527
+ 825,
528
+ 603
529
+ ],
530
+ "page_idx": 5
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "Advantages and limitation of DiscoNet. First, previous collaborative perception only rely on the final detection supervision; while DiscoNet leverages both detection supervision and intermediate feature supervision, acquiring more explicit guidance. Second, the collaboration attention in previous methods is a scalar, which cannot reflect the significance of each region; while DiscoNet uses a matrix, leading to more flexible collaboration at various spatial regions. Third, previous methods uses multiple-round collaboration: When2com needs at least one more round of communication after the first handshake, and V2VNet claims three rounds to ensure reliable performance; while DiscoNet only requires one round, suffering less from latency. Admittedly, DiscoNet has a limitation by assuming accurate pose for each agent, which could be improved by method like [33]. ",
535
+ "bbox": [
536
+ 174,
537
+ 611,
538
+ 825,
539
+ 734
540
+ ],
541
+ "page_idx": 5
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "4 Experiment ",
546
+ "text_level": 1,
547
+ "bbox": [
548
+ 174,
549
+ 748,
550
+ 303,
551
+ 766
552
+ ],
553
+ "page_idx": 5
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "4.1 V2X-Sim 1.0: A multi-agent 3D object detection dataset ",
558
+ "text_level": 1,
559
+ "bbox": [
560
+ 173,
561
+ 776,
562
+ 602,
563
+ 792
564
+ ],
565
+ "page_idx": 5
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "Since there is no public dataset to support the research on multi-agent 3D object detection in selfdriving scenarios, we build such a dataset named as $\\mathrm { V } 2 \\mathrm { X } { \\mathrm { - } } \\mathrm { S i m ~ } 1 . 0 ^ { \\circ }$ , based on both SUMO [15], a micro-traffic simulation, and CARLA [6], a widely-used open-source simulator for autonomous driving research. SUMO is firstly used to produce numerically-realistic traffic flow and CARLA is employed to get realistic sensory streams including LiDAR and RGB data, from multiple vehicles located in the same geographical area. The simulated LiDAR is rotated at a frequency of $2 0 \\mathrm { H z }$ and has 32 channels; the range which denotes the maximum distance to capture is 70 meters. We use Town05 with multiple lanes and cross junctions for dense traffic simulation; see Fig. 3. ",
570
+ "bbox": [
571
+ 174,
572
+ 803,
573
+ 825,
574
+ 859
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "table",
580
+ "img_path": "images/5faa349dce73bb052d4f1953397bc845db1f2114e413bb9bac7cb1b9c167d1b1.jpg",
581
+ "table_caption": [
582
+ "Table 1: Detection comparison. Our method is in bold and ∗ indicates the pose-aware version. The proposed DiscoNet is the best among intermediate collaboration. Even with 16 times compression, DiscoNet(16) still outperforms V2VNet without compression. "
583
+ ],
584
+ "table_footnote": [],
585
+ "table_body": "<table><tr><td>Method</td><td colspan=\"3\">Collaboration Approach Early Intermediate Late</td><td colspan=\"2\">Average Precision (AP)</td></tr><tr><td>Upper-bound</td><td></td><td></td><td>X</td><td>IoU=0.5 63.3</td><td>IoU=0.7 60.2</td></tr><tr><td></td><td>、</td><td>X</td><td>√</td><td>59.7</td><td>55.8</td></tr><tr><td>When2com*[19]</td><td>X</td><td>√</td><td>X</td><td>45.7</td><td>41.7</td></tr><tr><td>When2com[19]</td><td>X</td><td>√</td><td>X</td><td>45.7</td><td>41.8</td></tr><tr><td>Who2com*[20]</td><td>X</td><td>√</td><td>X</td><td>44.3</td><td>40.3</td></tr><tr><td>Who2com [20]</td><td>X</td><td>√</td><td>X</td><td>44.8</td><td>40.4</td></tr><tr><td>V2VNet [34]</td><td>X</td><td>√</td><td>X</td><td>56.8</td><td>50.7</td></tr><tr><td>DiscoNet</td><td>X</td><td>√</td><td>X</td><td>60.3</td><td>53.9</td></tr><tr><td>DiscoNet(16)</td><td>X</td><td>√</td><td>X</td><td>58.5</td><td>53.0</td></tr><tr><td>Lower-bound</td><td>X</td><td>X</td><td>√</td><td>57.6</td><td>54.2</td></tr><tr><td></td><td>X</td><td>X</td><td>X</td><td>45.8</td><td>42.3</td></tr></table>",
586
+ "bbox": [
587
+ 174,
588
+ 184,
589
+ 464,
590
+ 319
591
+ ],
592
+ "page_idx": 6
593
+ },
594
+ {
595
+ "type": "table",
596
+ "img_path": "images/cdabaf0cbd0b4b45241bf688e834bff16144eed8d9fdda9baf78ff66e5e8d9ca.jpg",
597
+ "table_caption": [
598
+ "Table 2: Detection performance by regularizing various layers via knowledge distillation (KD). ${ \\bf M } _ { i } ^ { \\mathrm { s } } \\{ n \\} ( n \\stackrel { \\cdot } { = } 1 , 2 , 3 , 4 )$ denotes different layers in the decoder. The performance significantly boots once the KD regularization is applied. Further regularization has a slight effect on the detection performance. "
599
+ ],
600
+ "table_footnote": [],
601
+ "table_body": "<table><tr><td colspan=\"4\">KD Regularization M{3}</td><td colspan=\"2\">Average Precision (AP)</td></tr><tr><td colspan=\"4\">H M{1} M{2}</td><td>IoU=0.5</td><td>IoU=0.7</td></tr><tr><td>xν&lt;√</td><td></td><td></td><td>M{4}</td><td>57.2</td><td>52.3</td></tr><tr><td></td><td></td><td>xxxx&lt;&lt;&gt;</td><td>xxxxx&lt;v</td><td>57.5</td><td>52.7</td></tr><tr><td></td><td></td><td></td><td></td><td>58.2</td><td>52.7</td></tr><tr><td></td><td></td><td></td><td></td><td>59.7</td><td>53.5</td></tr><tr><td></td><td></td><td></td><td></td><td>60.3</td><td>53.9</td></tr><tr><td></td><td></td><td></td><td></td><td>59.1 58.3</td><td>53.8</td></tr><tr><td>v/x</td><td>xx&lt;&lt;&lt;&lt;&gt;</td><td>xxx&lt;&lt;&lt;&gt;</td><td></td><td></td><td>52.6</td></tr></table>",
602
+ "bbox": [
603
+ 480,
604
+ 202,
605
+ 816,
606
+ 314
607
+ ],
608
+ "page_idx": 6
609
+ },
610
+ {
611
+ "type": "text",
612
+ "text": "",
613
+ "bbox": [
614
+ 174,
615
+ 340,
616
+ 825,
617
+ 396
618
+ ],
619
+ "page_idx": 6
620
+ },
621
+ {
622
+ "type": "text",
623
+ "text": "$\\mathrm { V } 2 \\mathrm { X } { \\cdot } \\mathrm { S i m } 1 . 0$ follows the same storage format of nuScenes [2], a widely-used autonomous driving dataset. nuScenes collected real-world single-agent data; while we simulate multi-agent scenarios. Each scene includes a 20 second traffic flow at a certain intersection of Town05, and the LiDAR streams are recorded every 0.2 second, so each scene consists of 100 frames. We generate 100 scenes with a total of 10,000 frames, and in each scene, we randomly select 2-5 vehicles as the collaboration agents. We use 8,000/900/1,100 frames for training/validation/testing. Each frame has multiple samples, and there are 23,500 samples in the training set and 3,100 samples in the test set. ",
624
+ "bbox": [
625
+ 173,
626
+ 401,
627
+ 825,
628
+ 500
629
+ ],
630
+ "page_idx": 6
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "4.2 Quantitative evaluation ",
635
+ "text_level": 1,
636
+ "bbox": [
637
+ 174,
638
+ 510,
639
+ 377,
640
+ 523
641
+ ],
642
+ "page_idx": 6
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "Implementation and evaluation. We crop the points located in the region of $[ - 3 2 , 3 2 ] \\times [ - 3 2 , 3 2 ] \\times$ $[ - 3 , 2 ]$ meters defined in the ego-vehicle $X Y Z$ coordinate. We set the width/length of each voxel as 0.25 meter, and the height as 0.4 meter; therefore the BEV map input to the student/teacher encoder has a dimension of $2 5 6 \\times 2 5 6 \\times 1 3$ . The intermediate feature output by the encoder has a dimension of $3 2 \\times 3 2 \\times 2 5 6$ , and we use an autoencoder (AE) for compression to save bandwidth: the sent message is the embedding output by AE. After the agents receive the embedding, they will decode it to the original resolution $3 2 \\times 3 2 \\times 2 5 6$ for intermediate collaboration. The hyperparameter $\\lambda _ { \\mathrm { k d } }$ is set as $1 0 ^ { 5 }$ . We train all the models using NVIDIA GeForce RTX 3090 GPU. We employ the generic BEV detection evaluation metric: Average Precision (AP) at Intersection-over-Union (IoU) threshold of 0.5 and 0.7. We target the detection of the car category and report the results on the test set. ",
647
+ "bbox": [
648
+ 173,
649
+ 525,
650
+ 825,
651
+ 662
652
+ ],
653
+ "page_idx": 6
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "Baselines and existing methods. We consider the single-agent perception model; called Lowerbound, which consumes a single-view point cloud. The teacher model based on early collaboration with a holistic view is considered as the Upper-bound. Both lower-bound and upper-bound can involve late collaboration, which aggregates all the boxes and applies a global non-maximum suppression (NMS). We also consider three intermediate-collaboration methods, Who2com [20], When2com [19] and V2VNet [34]. Since the original Who2com and When2com do not consider pose information, we consider both pose-aware and pose-agnostic versions to achieve fair comparisons. All the methods use the same detection architecture and conduct collaboration at the same intermediate feature layer. ",
658
+ "bbox": [
659
+ 173,
660
+ 670,
661
+ 825,
662
+ 780
663
+ ],
664
+ "page_idx": 6
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "Results and comparisons. Table 1 shows the comparisons in terms of AP ( $\\textcircled { a } \\mathrm { I o U } = 0 . 5 / 0 . 7 $ ). We see that i) early collaboration (first row) achieves the best detection performance, and there is an obvious improvement over no collaboration (last row), i.e., $\\mathrm { A P } @ 0 . 5$ and $\\mathrm { A P @ 0 . 7 }$ are increased by $3 8 . 2 \\%$ and $4 2 . 3 \\%$ respectively, reflecting the significance of collaboration; ii) late collaboration improves the lower-bound (second last row), but hurts the upper-bound (second row), reflecting the unreliability of late collaboration. This is because the final, global NMS can remove a lot of noisy boxes for the lower-bound, but would also remove many useful boxes for the upper-bound; and iii) among the intermediate collaboration-based methods, the proposed DiscoNet achieves the best performance. Comparing to the pose-aware When2com, DiscoNet improves by $3 1 . 9 \\%$ in $\\mathrm { A P } @ 0 . 5$ and $2 9 . 3 \\%$ in $\\mathrm { A P @ 0 . 7 }$ . Comparing to V2VNet, DiscoNet improves by $6 . 2 \\%$ in $\\mathsf { A P @ 0 . 5 }$ and $6 . 3 \\ \\%$ in $\\mathrm { A P @ 0 . 7 }$ Even with 16-times compression by the autoencoder, DiscoNet(16) still outperforms V2VNet. ",
669
+ "bbox": [
670
+ 174,
671
+ 786,
672
+ 825,
673
+ 911
674
+ ],
675
+ "page_idx": 6
676
+ },
677
+ {
678
+ "type": "table",
679
+ "img_path": "images/71e223f7cb5de70800b9fac28d1068dd0b00ad874617f68b45bb782c95c1330d.jpg",
680
+ "table_caption": [
681
+ "Table 3: Comparison of various intermediate collaboration strategies. KD indicates knowledge distillation. With KD and matrix-valued edge weights, our DiscoGraph outperforms the others. "
682
+ ],
683
+ "table_footnote": [],
684
+ "table_body": "<table><tr><td rowspan=\"2\">Collaboration Strategy</td><td colspan=\"4\">Scalar Weight</td><td colspan=\"3\">Matrix Weight</td></tr><tr><td>No</td><td>Sum</td><td>Average</td><td>Weighted Average</td><td>Max</td><td>Cat</td><td>DiscoGraph</td></tr><tr><td>w/o KD (AP@IoU 0.5/0.7)</td><td>45.8/42.3</td><td>55.7/50.9</td><td>55.7/50.4</td><td>56.1/51.4</td><td>56.7/51.4</td><td>55.0/50.2</td><td>57.2/52.3</td></tr><tr><td>w/ KD (AP@IoU 0.5/0.7)</td><td>46.5/42.9</td><td>54.4/46.3</td><td>56.4/51.1</td><td>56.7/50.9</td><td>56.7/51.8</td><td>57.5/52.6</td><td>60.3/53.9</td></tr><tr><td>Gain</td><td>0.7/0.6</td><td>-1.3/-4.6</td><td>0.7/0.7</td><td>0.6/-0.5</td><td>0.0/0.4</td><td>2.5/2.4</td><td>3.1/1.6</td></tr><tr><td>Gain (%)</td><td>1.5/1.4</td><td>-2.3/-9.0</td><td>1.3/1.4</td><td>1.1/-1.0</td><td>0.0/0.7</td><td>3.3/4.6</td><td>5.4/3.1</td></tr></table>",
685
+ "bbox": [
686
+ 176,
687
+ 123,
688
+ 818,
689
+ 208
690
+ ],
691
+ "page_idx": 7
692
+ },
693
+ {
694
+ "type": "image",
695
+ "img_path": "images/94f9630b277421bc78f106f725e6c54e342f61f6fb6857034dede40d2030fcb0.jpg",
696
+ "image_caption": [
697
+ "Figure 4: Performance-bandwidth trade-off. DiscoNet(64) achieves 192 times less communication volume and still outperforms V2VNet [34]. "
698
+ ],
699
+ "image_footnote": [],
700
+ "bbox": [
701
+ 197,
702
+ 236,
703
+ 782,
704
+ 478
705
+ ],
706
+ "page_idx": 7
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "",
711
+ "bbox": [
712
+ 173,
713
+ 517,
714
+ 825,
715
+ 546
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "Performance-bandwidth trade-off analysis. Fig. 4 thoroughly compares the proposed DiscoNet with the baseline methods in terms of the trade-off between detection performance and communication bandwidth. In Plots (a) and (b), the lower-bound with no collaboration is shown as a dashed line since the communication volume is zero, and the other method is shown as one dot in the plot. We see that i) DiscoNet with feature-map compression by an autoencoder achieves a far-more superior trade-off than the other methods; ii) DiscoNet(64), which is DiscoNet with 64-times feature compression by autoencoder, achieves 192 times less communication volume and still outperforms V2VNet for both $\\mathrm { A P } @ 0 . 5$ and 0.7; and iii) feature compression does not significantly hurt the detection performance. ",
722
+ "bbox": [
723
+ 173,
724
+ 551,
725
+ 825,
726
+ 662
727
+ ],
728
+ "page_idx": 7
729
+ },
730
+ {
731
+ "type": "text",
732
+ "text": "Comparison of training times with and without KD. Incorporating KD will increase the training time a little bit, from ${ \\sim } 1 2 0 0 \\mathrm { s }$ to ${ \\sim } 1 5 0 0 \\mathrm { s }$ per epoch (each epoch consists of 2,000 iterations). However, during inference, DiscoNet does not need the teacher model anymore and can work alone without extra computations. Note that our key advantage is to push the computation burden into the training stage in pursuit of efficient and effective inference which is crucial in the real-world deployment. ",
733
+ "bbox": [
734
+ 174,
735
+ 669,
736
+ 825,
737
+ 738
738
+ ],
739
+ "page_idx": 7
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "4.3 Qualitative evaluation ",
744
+ "text_level": 1,
745
+ "bbox": [
746
+ 174,
747
+ 744,
748
+ 367,
749
+ 758
750
+ ],
751
+ "page_idx": 7
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "Visualization of edge weight. To understand the working mechanism of the proposed collaboration graph, we visualize the detection results and the corresponding edge weights; see Fig. 5 and Fig. 7. Note that the proposed edge weight is a matrix, reflecting the collaboration attention in a cell-level resolution, which is shown as a heat map. Fig. 5 (a), (b) and (c) show three exemplar detection results of Agent 1 based on the lower-bound, upper-bound and the proposed DiscoNet, respectively. We see that with the collaboration, DiscoNet is able to detect boxes in those occluded and long-range regions. To understand why, Fig. 5 (d) and (e) provide the corresponding ego edge weight and the edge weight from agent 2 to agent 1, respectively. We clearly see that with the proposed collaboration graph, Agent 1 is able to receive complementary information from the other agents. Take the first row in Fig. 5 as an example, we see that in Plot (d), the bottom-left spatial region has a much darker color, indicating that Agent 1 has less confidence about this region; while in Plot (e), the bottom-left spatial region has a much brighter color, indicating that Agent 1 has much stronger demands to request information from Agent 2. ",
756
+ "bbox": [
757
+ 173,
758
+ 760,
759
+ 825,
760
+ 911
761
+ ],
762
+ "page_idx": 7
763
+ },
764
+ {
765
+ "type": "image",
766
+ "img_path": "images/0f9e147c78da7f3c0138848ca13b5cbee6a5beb02d6f1e7fad34e2efc16b7424.jpg",
767
+ "image_caption": [
768
+ "Figure 5: Detection and matrix-valued edge weight for Agent 1. Green and red boxes denote groundtruth (GT) and predictions, respectively. (a-c) shows the outputs of lower-bound, upper-bound and DiscoNet compared to GT. (d) Ego matrix-valued edge weight for Agent 1. Attention to the region with sparse/no measurement is suppressed. (e) Matrix-valued edge weight from Agent 2 to Agent 1. Attention to the region with complementary information from Agent 2 is enhanced. "
769
+ ],
770
+ "image_footnote": [],
771
+ "bbox": [
772
+ 189,
773
+ 98,
774
+ 818,
775
+ 359
776
+ ],
777
+ "page_idx": 8
778
+ },
779
+ {
780
+ "type": "image",
781
+ "img_path": "images/d2db0446ec6e857e4e2fc34a2f9cbc4fb04277e3bcd1ced0b2260b2d983fb515.jpg",
782
+ "image_caption": [
783
+ "Figure 6: DiscoNet qualitatively outperforms the state-of-the-art methods. Green and red boxes denote ground-truth and detection, respectively. (a) Output of when2com. (b) Output of V2VNet. (c) Output of DiscoNet. (d)-(f) Matrix-valued edge weights. (Ego agent: 1; neighbour agents: 2 and 3.) "
784
+ ],
785
+ "image_footnote": [],
786
+ "bbox": [
787
+ 186,
788
+ 454,
789
+ 833,
790
+ 613
791
+ ],
792
+ "page_idx": 8
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "",
797
+ "bbox": [
798
+ 174,
799
+ 671,
800
+ 823,
801
+ 700
802
+ ],
803
+ "page_idx": 8
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Comparison with When2com and V2VNet. Fig. 6 shows two examples to compare the proposed DiscoNet with When2com, V2VNet. We see that DiscoNet is able to detect more objects. The reason is that both V2VNet and when2com employ a scalar to denote the agent-to-agent attention, which cannot distinguish which region is more informative; while DiscoNet can adaptively find beneficial region in a cell-level resolution; see the visualization of matrix-valued edge weights in Fig. 6 (d)-(f). ",
808
+ "bbox": [
809
+ 174,
810
+ 707,
811
+ 825,
812
+ 776
813
+ ],
814
+ "page_idx": 8
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "4.4 Ablation study ",
819
+ "text_level": 1,
820
+ "bbox": [
821
+ 174,
822
+ 782,
823
+ 315,
824
+ 796
825
+ ],
826
+ "page_idx": 8
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "Effect of collaboration strategy. Table 3 compares the proposed method with five baselines using different intermediate collaboration strategies. Sum simply sums all the intermediate feature maps. Average calculates the mean of all the feature maps. Max selects the maximum value of all the feature maps at each cell to produce the final feature. Cat concatenates the mean of others’ features with its own feature, and then uses a convolution layer to halve the channel number. Weighted Average appends one convolutional layer to our edge encoder $\\Pi$ , to generate a scalar value as the agent-wise edge weight. We use a matrix-valued edge weight to model the collaboration among agents. Without knowledge distillation, Max has achieved the second best performance probably because it ignores the noisy information with lower value. We see that with the proposed matrix-valued edge weight and knowledge distillation, DiscoGraph significantly outperforms all the other collaboration choices. ",
831
+ "bbox": [
832
+ 174,
833
+ 800,
834
+ 825,
835
+ 911
836
+ ],
837
+ "page_idx": 8
838
+ },
839
+ {
840
+ "type": "image",
841
+ "img_path": "images/67f9b034777ad954f1f371bd61a8d1c42e83002a642125dbfaff38747b0b1953.jpg",
842
+ "image_caption": [
843
+ "Figure 7: Detection and matrix-valued edge weight for Agent 1. Green/red boxes denote GT/predictions. (a)(b) show the outputs of upper-bound and DiscoNet. (c) Ego edge weight for Agent 1. (d) Edge weight from Agent 2 to Agent 1. The spatial regions containing complementary information for Agent 1 are highlighted by green circles in (d) and red circles in (a). "
844
+ ],
845
+ "image_footnote": [],
846
+ "bbox": [
847
+ 189,
848
+ 92,
849
+ 820,
850
+ 444
851
+ ],
852
+ "page_idx": 9
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "",
857
+ "bbox": [
858
+ 173,
859
+ 531,
860
+ 825,
861
+ 559
862
+ ],
863
+ "page_idx": 9
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Effect of knowledge distillation. In Table 3 we investigate the versions with and without knowledge distillation, We see that i) for our method, the knowledge distillation can guide the learning of collaboration graph, and the agents can work collaboratively to approach the teacher’s performance; ii) for max without a learnable module during collaboration, knowledge distillation has no impact; and iii) for cat and average, their performances are improved a little bit, as knowledge distillation can influence the feature abstraction process. Table 2 further shows the detection performances when we apply knowledge-distillation regularization at various network layers. We see that i) once we apply knowledge distillation to regularize the feature map, the proposed method starts to achieve improvement; and ii) applying regularization on four layers has the best performance. ",
868
+ "bbox": [
869
+ 174,
870
+ 565,
871
+ 825,
872
+ 690
873
+ ],
874
+ "page_idx": 9
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "5 Conclusion ",
879
+ "text_level": 1,
880
+ "bbox": [
881
+ 174,
882
+ 708,
883
+ 299,
884
+ 726
885
+ ],
886
+ "page_idx": 9
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "We propose a novel intermediate-collaboration method, called distilled collaboration network (DiscoNet), for multi-agent perception. Its core component is a distilled collaboration graph (DiscoGraph), which is novel in both the training paradigm and the edge weight setting. DiscoGraph is also pose-aware and adaptive to perception measurements, allowing multiple agents with the shared DiscoNet to collaboratively approach the performance of the teacher model. To validate, we build $\\mathrm { V } 2 \\mathrm { X } { \\cdot } \\mathrm { S i m } 1 . 0$ , a large-scale multi-agent 3D object detection dataset based on CARLA and SUMO. Comprehensive quantitative and qualitative experiments show that DiscoNet achieves appealing performance-bandwidth trade-off with a more straightforward design rationale. ",
891
+ "bbox": [
892
+ 174,
893
+ 738,
894
+ 825,
895
+ 849
896
+ ],
897
+ "page_idx": 9
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "Acknowledgment. This research is partially supported by the NSF CPS program under CMMI1932187, the National Natural Science Foundation of China under Grant 6217010074, and the Science and Technology Commission of Shanghai Municipal under Grant 21511100900. The authors gratefully acknowledge the useful comments and suggestions from anonymous reviewers. ",
902
+ "bbox": [
903
+ 176,
904
+ 856,
905
+ 825,
906
+ 911
907
+ ],
908
+ "page_idx": 9
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "References \n[1] Rohan Anil, Gabriel Pereyra, Alexandre Passos, Robert Ormandi, George E Dahl, and Geoffrey E Hinton. Large scale distributed neural network training through online distillation. In International Conference on Learning Representations, 2018. 2 \n[2] Holger Caesar, Varun Bankiti, Alex H Lang, Sourabh Vora, Venice Erin Liong, Qiang Xu, Anush Krishnan, Yu Pan, Giancarlo Baldan, and Oscar Beijbom. nuscenes: A multimodal dataset for autonomous driving. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11621–11631, 2020. 7 \n[3] Qi Chen, Sihai Tang, Qing Yang, and Song Fu. Cooper: Cooperative perception for connected autonomous vehicles based on 3d point clouds. In IEEE International Conference on Distributed Computing Systems (ICDCS), pages 514–524, 2019. 2 \n[4] Siheng Chen, Baoan Liu, Chen Feng, Carlos Vallespi-Gonzalez, and Carl K. Wellington. 3d point cloud processing and learning for autonomous driving: Impacting map creation, localization, and perception. IEEE Signal Processing Magazine, 38:68–86, 2021. 1 \n[5] Abhishek Das, Théophile Gervet, Joshua Romoff, Dhruv Batra, Devi Parikh, Mike Rabbat, and Joelle Pineau. Tarmac: Targeted multi-agent communication. In International Conference on Machine Learning, pages 1538–1546, 2019. 6 \n[6] Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. CARLA: An open urban driving simulator. In Proceedings of the 1st Annual Conference on Robot Learning, pages 1–16, 2017. 2, 6 \n[7] Jakob N. Foerster, Yannis M. Assael, N. D. Freitas, and S. Whiteson. Learning to communicate with deep multi-agent reinforcement learning. In NeurIPS, 2016. 5 \n[8] Andreas Geiger, Philip Lenz, and Raquel Urtasun. Are we ready for autonomous driving? the kitti vision benchmark suite. In 2012 IEEE Conference on Computer Vision and Pattern Recognition, pages 3354–3361, 2012. 1 \n[9] Ramyad Hadidi, Jiashen Cao, Matthew Woodward, Michael S Ryoo, and Hyesoon Kim. Distributed perception by collaborative robots. IEEE Robotics and Automation Letters, 3(4):3709–3716, 2018. 6 \n[10] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. 2, 6 \n[11] Yedid Hoshen. Vain: Attentional multi-agent predictive modeling. In NeurIPS, 2017. 5 \n[12] Jiechuan Jiang and Zongqing Lu. Learning attentional communication for multi-agent cooperation. In NeurIPS, 2018. 6 \n[13] Xin Jin, Cuiling Lan, Wenjun Zeng, and Zhibo Chen. Uncertainty-aware multi-shot knowledge distillation for image-based object re-identification. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pages 11165–11172, 2020. 6 \n[14] Saifullah Khan, Franz Andert, Nicolai Wojke, Julian Schindler, Alejandro Correa, and Anton Wijbenga. Towards collaborative perception for automated vehicles in heterogeneous traffic. In International Forum on Advanced Microsystems for Automotive Applications, pages 31–42, 2018. 6 \n[15] Daniel Krajzewicz, Jakob Erdmann, Michael Behrisch, and Laura Bieker. Recent development and applications of sumo-simulation of urban mobility. International journal on advances in systems and measurements, 5(3&4), 2012. 6 \n[16] Loic Landrieu and Martin Simonovsky. Large-scale point cloud semantic segmentation with superpoint graphs. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4558–4567, 2018. 1 \n[17] Yiming Li, Congcong Wen, Felix Juefei-Xu, and Chen Feng. Fooling lidar perception via adversarial trajectory perturbation. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), pages 7898–7907, October 2021. 2 \n[18] Li Liu, Wanli Ouyang, Xiaogang Wang, Paul Fieguth, Jie Chen, Xinwang Liu, and Matti Pietikäinen. Deep learning for generic object detection: A survey. International journal of computer vision, 128(2):261–318, 2020. 1 \n[19] Yen-Cheng Liu, Junjiao Tian, Nathaniel Glaser, and Zsolt Kira. When2com: multi-agent perception via communication graph grouping. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 4106–4115, 2020. 2, 4, 6, 7 \n[20] Yen-Cheng Liu, Junjiao Tian, Chih-Yao Ma, Nathan Glaser, Chia-Wen Kuo, and Zsolt Kira. Who2com: Collaborative perception via learnable handshake communication. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pages 6876–6883, 2020. 2, 4, 6, 7 \n[21] Yifan Liu, Ke Chen, Chris Liu, Zengchang Qin, Zhenbo Luo, and Jingdong Wang. Structured knowledge distillation for semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 2604–2613, 2019. 6 \n[22] Wenjie Luo, Bin Yang, and Raquel Urtasun. Fast and furious: Real time end-to-end 3d detection, tracking and motion forecasting with a single convolutional net. In Proceedings of the IEEE conference on Computer Vision and Pattern Recognition, pages 3569–3577, 2018. 1 \n[23] Seyed Mojtaba Marvasti-Zadeh, Li Cheng, Hossein Ghanei-Yakhdan, and Shohreh Kasaei. Deep learning for visual tracking: A comprehensive survey. IEEE Transactions on Intelligent Transportation Systems, 2021. 1 \n[24] Jonathan Masci, Ueli Meier, Dan Cire¸san, and Jürgen Schmidhuber. Stacked convolutional auto-encoders for hierarchical feature extraction. In International conference on artificial neural networks, pages 52–59, 2011. 4 \n[25] Shervin Minaee, Yuri Boykov, F. Porikli, A. Plaza, N. Kehtarnavaz, and Demetri Terzopoulos. Image segmentation using deep learning: A survey. IEEE transactions on pattern analysis and machine intelligence, PP, 2021. 1 \n[26] Adriana Romero, Nicolas Ballas, Samira Ebrahimi Kahou, Antoine Chassang, Carlo Gatta, and Yoshua Bengio. Fitnets: Hints for thin deep nets. CoRR, abs/1412.6550, 2015. 2 \n[27] Shaoshuai Shi, Xiaogang Wang, and Hongsheng Li. Pointrcnn: 3d object proposal generation and detection from point cloud. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 770–779, 2019. 1 \n[28] Shaoshuai Shi, Zhe Wang, Jianping Shi, Xiaogang Wang, and Hongsheng Li. From points to parts: 3d object detection from point cloud with part-aware and part-aggregation network. IEEE transactions on pattern analysis and machine intelligence, 2020. 2 \n[29] Weijing Shi and Raj Rajkumar. Point-gnn: Graph neural network for 3d object detection in a point cloud. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 1711–1719, 2020. 2 \n[30] Yoav Shoham and Kevin Leyton-Brown. Multiagent systems: Algorithmic, game-theoretic, and logical foundations. Cambridge University Press, 2008. 5 \n[31] Amanpreet Singh, Tushar Jain, and Sainbayar Sukhbaatar. Learning when to communicate at scale in multiagent cooperative and competitive tasks. In International Conference on Learning Representations, 2018. 5 \n[32] Sainbayar Sukhbaatar, Arthur D. Szlam, and Rob Fergus. Learning multiagent communication with backpropagation. In NeurIPS, 2016. 5 \n[33] Nicholas Vadivelu, Mengye Ren, James Tu, Jingkang Wang, and Raquel Urtasun. Learning to communicate and correct pose errors. In 4th Conference on Robot Learning (CoRL), 2020. 6 \n[34] Tsun-Hsuan Wang, Sivabalan Manivasagam, Ming Liang, Bin Yang, Wenyuan Zeng, and Raquel Urtasun. V2vnet: Vehicle-to-vehicle communication for joint perception and prediction. In Proceedings of the European Conference on Computer Vision (ECCV), pages 605–621, 2020. 2, 4, 6, 7, 8 \n[35] Yue Wang, Alireza Fathi, Jiajun Wu, Thomas Funkhouser, and Justin Solomon. Multi-frame to singleframe: Knowledge distillation for 3d object detection. In Proceedings of the European Conference on Computer Vision Workshops, 2020. 6 \n[36] Yufeng Yue, Chunyang Zhao, Mingxing Wen, Zhenyu Wu, and Danwei Wang. Collaborative semantic perception and relative localization based on map matching. In IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), pages 6188–6193, 2020. 6 \n[37] Yin Zhou and Oncel Tuzel. Voxelnet: End-to-end learning for point cloud based 3d object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4490–4499, 2018. 2 ",
913
+ "bbox": [
914
+ 173,
915
+ 58,
916
+ 828,
917
+ 919
918
+ ],
919
+ "page_idx": 10
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "",
924
+ "bbox": [
925
+ 171,
926
+ 64,
927
+ 828,
928
+ 915
929
+ ],
930
+ "page_idx": 11
931
+ }
932
+ ]
parse/train/ZRcjSOmYraB/ZRcjSOmYraB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ZRcjSOmYraB/ZRcjSOmYraB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/_x4A8IZ-rRv/_x4A8IZ-rRv.md ADDED
@@ -0,0 +1,540 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Differentiable Sparsification for Deep Neural Networks
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 Deep neural networks have relieved the feature engineering burden on human
11
+ 2 experts. However, comparable efforts are instead required to determine an effective
12
+ 3 architecture. In addition, as the sizes of networks have over-grown, a considerable
13
+ 4 amount of resources is also invested in reducing the sizes. The sparsification of an
14
+ 5 over-complete model addresses these problems as it removes redundant parameters
15
+ 6 or connections. In this study, we propose a fully differentiable sparsification
16
+ 7 method for deep neural networks, which allows parameters to be zero during
17
+ 8 training with the stochastic gradient descent. Thus, the proposed method can
18
+ 9 simultaneously learn the sparsified structure and weights of networks in an end
19
+ 10 to-end manner, which can be directly applies to modern deep neural networks
20
+ 11 and imposes minimum overhead to the training process. To the authors’ best
21
+ 12 knowledge, it is the first fully [sub-]differentiable sparsification method that zeroes
22
+ 13 out components, and it provides a foundation for future structure learning and
23
+ 14 model compression methods.
24
+
25
+ # 15 1 Introduction
26
+
27
+ 16 The success of deep neural networks has changed the paradigm of machine learning and pattern
28
+ 17 recognition from feature engineering to architecture engineering [16, 14, 22, 7, 32]. Although deep
29
+ 18 neural networks have relieved the burden of feature engineering, comparable human efforts are instead
30
+ 19 required to determine an effective architecture, such as the number of neurons or layers and the
31
+ 20 connections between nodes. In addition, as deep neural networks have over-grown (even up to 10–68
32
+ 21 million parameters) [8, 10, 15, 32], considerable effort is also being invested in reducing existing
33
+ 22 model sizes and in meeting the demands of deploying such networks on constrained platforms at
34
+ 23 inference time [26, 25].
35
+ 24 These problems can be addressed by the sparsification of an over-complete model [20]. A network
36
+ 25 structure can be carved out of an over-complete model by removing redundant blocks [3, 29] or
37
+ 26 deleting unnecessary connections between nodes or blocks [2, 18, 30], which also reduces the network
38
+ 27 size. Among several approaches, pruning has long been adapted [17, 6, 26, 19, 5]. It typically requires
39
+ 28 a pre-trained model and several steps (select unimportant parameters of a pre-trained model, delete
40
+ 29 the parameters, and retrain the pruned model) and may repeat the process multiple times. Another
41
+ 30 approach is a sparsity regularizer with the proximal gradient [21, 3, 29, 33] which shrinks redundant
42
+ 31 parameters to zero during training and requires no pre-trained model. Among the most popular ones
43
+ 32 is $l _ { 1 }$ -regularizer [28]. However, as it acts on an individual parameter, it often produces unstructured
44
+ 33 irregular models; thus, it diminishes the benefit of parallel hardware computation, such as GPUs [29].
45
+ 34 In order to obtain regular sparse structures, a sparse regularization with $l _ { 2 }$ -norm [3, 29] was adopted
46
+ 35 on a group of parameters so that all parameters under the same group are either retained or zeroed
47
+ 36 out together. By zeroing-out parameters at a group level, the number of neurons or layers can be
48
+ 37 automatically determined as a part of training. However, the optimization of a regularization term is
49
+ 38 performed as a separate step separately from the gradient descent-based optimization for prediction
50
+ 39 loss. The update rules should be implemented manually and the approach is limited to the cases
51
+ 40 where closed form solutions for the proximal operation are known.
52
+ 41 In this work, we propose a fully [sub-]differentiable sparsification method for deep neural networks,
53
+ 42 which directly optimizes a regularized objective function and allows parameters to be exactly zero
54
+ 43 during training with the stochastic gradient descent. Thus, it can simultaneously learn the sparsified
55
+ 44 structure and weights of deep neural networks in an end-to-end manner. It leads to simpler implemen
56
+ 45 tation and it does not require to manually code a pruning step or an update rule like a soft-thresholding
57
+ 46 operator. It can adopt various norms as a regularizer regardless of whether their closed form solutions
58
+ 47 for the proximal operator are known or not. Another advantage of the proposed method is that it
59
+ 48 can be easily applied on a group of parameters or a building block; thus, it can produce a structured
60
+ 49 model and maximize the benefits of parallel hardware computation (e.g., GPUs) and it well suits the
61
+ 50 trend of a modularized design in deep learning [22, 27, 7, 32].
62
+
63
+ # 51 2 Related Work
64
+
65
+ # 2.1 Proximal Gradient
66
+
67
+ Our proposed method is related to sparsity regularization with the proximal gradient [21]. A regularized objective function is written as
68
+
69
+ $$
70
+ \mathcal { L } \left( D , W \right) + \lambda \mathcal { R } \left( W \right) ,
71
+ $$
72
+
73
+ 55 where $\mathcal { L }$ denotes a prediction loss, $\mathcal { R }$ is a regularization term, $D$ is a set of training data, $W$ is a set
74
+ 56 of model parameters, and $\lambda$ controls the trade-off between prediction loss and model complexity. The
75
+ 57 most popular regularizer is $l _ { 1 }$ -norm,
76
+
77
+ $$
78
+ { \mathcal { R } } \left( W \right) = \sum _ { i } \left| w _ { i } \right| ,
79
+ $$
80
+
81
+ 58 where $w _ { i }$ is an individual element of $W$ . To optimize the regularization term, parameter updating is
82
+ 59 performed with a proximal operator,
83
+
84
+ $$
85
+ w _ { i } s i g n ( w _ { i } ) ( | w _ { i } | - \eta \lambda ) _ { + } ,
86
+ $$
87
+
88
+ 60 where denotes an assignment operator, $\eta$ is a learning rate, and $( \cdot ) _ { + }$ represents $\operatorname* { m a x } ( \cdot , 0 )$ . As this
89
+ 61 approach acts on an individual parameter, it often produces unstructured irregular models. In order
90
+ 62 to obtain regular sparse structures, the sparse regularization with $l _ { 2 , 1 }$ -norm can be adopted [3, 29].
91
+ 63 All parameters in the same group are either retained or zeroed-out together. The regularization with
92
+ 64 $l _ { 2 , 1 }$ -norm is written as
93
+
94
+ $$
95
+ \mathcal { R } \left( W \right) = \sum _ { g } \left. \mathbf { w } _ { g } \right. _ { 2 } = \sum _ { g } \sqrt { \sum _ { i } w _ { g , i } ^ { 2 } } ,
96
+ $$
97
+
98
+ 65 where $W = \{ \mathbf { w } _ { g } \}$ and ${ \bf w } _ { g }$ represents a group of model parameters. The regularization term is
99
+ 66 optimized with a proximal operator,
100
+
101
+ $$
102
+ w _ { g , i } \gets \left( \frac { \left\| \mathbf { w } _ { g } \right\| _ { 2 } - \eta \lambda } { \left\| \mathbf { w } _ { g } \right\| _ { 2 } } \right) _ { + } w _ { g , i } .
103
+ $$
104
+
105
+ 67 When a group has only one single parameter, it degenerates to the $l _ { 1 }$ -norm regularization.
106
+
107
+ 68 Another group regularization is exclusive lasso with $l _ { 1 , 2 }$ -norm [34, 33]. Rather than either retaining
108
+ 69 or removing an entire group altogether, it promotes the competition or sparsity within a group. The
109
+ 70 regularization term is written as
110
+
111
+ $$
112
+ \mathcal { R } \left( W \right) = \frac { 1 } { 2 } \sum _ { g } \left. \mathbf { w } _ { g } \right. _ { 1 } ^ { 2 } = \frac { 1 } { 2 } \sum _ { g } \left( \sum _ { i } \left. w _ { g , i } \right. \right) ^ { 2 } ,
113
+ $$
114
+
115
+ 71 and its updating rule is derived as
116
+
117
+ $$
118
+ w _ { g , i } s i g n ( w _ { g , i } ) ( | w _ { g , i } | - \eta \lambda \big | \big | \mathbf { w } _ { g } \big | \big | _ { 1 } ) _ { + } .
119
+ $$
120
+
121
+ 72 These proximal operators consist of weight decaying and thresholding steps, and they are performed
122
+ 73 at every mini-batch or epoch in a sperate step after the optimization of a prediction loss. It requires
123
+ 74 some extra efforts to implement the update rules manually and applications are limited to the cases
124
+ 75 where closed form solutions for the proximal operator are known. In contrast, our approach optimizes
125
+ 76 a regularized objective function directly and allows parameters to be zero during training with the
126
+ 77 stochastic gradient descent. It leads to simpler implementations and it can employ various norms
127
+ 78 regardless of whether closed form solutions for proximal operators are known or not, for example
128
+ 79 $p$ -norm with $p < 1$ .
129
+
130
+ # 80 2.2 Differentiable Approach
131
+
132
+ 81 Similar to our work, previous differentiable approaches [2, 18] learn the structure of a neural
133
+ 82 network by optimizing architecture parameters in a relaxed continuous domain, where architecture
134
+ 83 parameters represent the importance scores of building blocks or the connection strengths between
135
+ 84 them. However, as the architecture parameter magnitudes cannot be zero during training, the
136
+ 85 top $k$ connections or components are stochastically or deterministically selected according to the
137
+ 86 architecture parameter values to derive a discretized architecture. Therefore, the approach may suffer
138
+ 87 from the discrepancy between a learned architecture and a final discretized one. Moreover, the
139
+ 88 value of $k$ should be pre-specified manually; thus, the same value is set for all blocks or modules,
140
+ 89 which may be sub-optimal. Our approach drives the architecture parameters to zero by optimizing a
141
+ 90 regularized objective function. This can minimize the model discrepancy, and a network can choose
142
+ 91 the different numbers of components or connections in each module through training.
143
+
144
+ # 92 3 Proposed Approach
145
+
146
+ # 3.1 Base Model
147
+
148
+ 94 We assume that there are $n$ components in a module. A component can be any building block for a
149
+ 95 deep neural network or its output. For example, it can be a channel or a layer of convolutional neural
150
+ 96 networks such as ResNet [7, 8] and DenseNet layer [10]. It can also represent a node in a neural
151
+ 97 graph [30] or a convolutional neural network [11]. A module represents a composite of components,
152
+ 98 such as a group of channels or nodes. For illustration purposes, we assume that a module $\mathbf { y }$ can be
153
+ 99 written as the linear combination of components $\mathbf { f } _ { i }$ :
154
+
155
+ $$
156
+ \mathbf { y } \left( \mathbf { x } \right) = \sum _ { i = 1 } ^ { n } a _ { i } \mathbf { f } _ { i } \left( \mathbf { x } ; \mathbf { w } _ { i } \right) ,
157
+ $$
158
+
159
+ 100 where $\mathbf { X }$ denotes a module input, $\mathbf { w } _ { i }$ model parameters for component $\mathbf { f } _ { i }$ , and $a _ { i }$ an architecture
160
+ 101 parameter. Model parameters $\mathbf { w } _ { i }$ denote ordinary parameters, such as a filter in a convolutional layer
161
+ 102 or weight in a fully connected layer. The value of $a _ { i }$ represents the importance of component $i$ , and it
162
+ 103 represents the connection strength between nodes in another context. Enforcing $a _ { i }$ to be zero amounts
163
+ 104 to removing component $\mathbf { f } _ { i }$ or zeroing-out $\mathbf { w } _ { i }$ . Thus, by creating the competition between elements of
164
+ 105 $a$ and driving them to be zero, we can eliminate unnecessary components or connections. The sample
165
+ 106 model is simple, but we will show that it can be applied to various cases.
166
+
167
+ # 107 3.2 Differentiable Sparse Parameterization
168
+
169
+ 08 First, we show how to parameterize architecture parameters with non-negative constraints, which is
170
+ 09 useful for the attention mechanism with the softmax. To set up the competition between the elements
171
+ 110 of $a$ and allow them to be zero, we parameterize the architecture parameters as follows:
172
+
173
+ $$
174
+ \gamma _ { i } = \exp \left( \alpha _ { i } \right)
175
+ $$
176
+
177
+ $$
178
+ \tilde { \gamma } _ { i } = \left( \gamma _ { i } - \sigma \left( \beta \right) \cdot \left. \gamma \right. _ { 1 } \right) _ { + }
179
+ $$
180
+
181
+ $$
182
+ a _ { i } = \frac { \tilde { \gamma } _ { i } } { \sum _ { j = 1 } ^ { n } \tilde { \gamma } _ { j } } ,
183
+ $$
184
+
185
+ 113 where $\alpha _ { i }$ and $\beta$ are unconstrained free parameters, $\sigma ( \cdot )$ denotes a sigmoid function, and $( \cdot ) _ { + }$ rep
186
+ 114 resents $r e l u ( \cdot ) = \operatorname* { m a x } ( \cdot , 0 )$ . When a parameter is non-negative, the proximal operator of Eq. (7)
187
+ 115 is reduced to Eq. (10). Although the forms are similar, they have completely different meanings.
188
+ 116 The proximal operator is a learning rule, whereas Eq. (10) is the parameterized form of architecture
189
+ 117 parameters, which is part of a neural network.
190
+ 118 We can easily verify that $a _ { i }$ is allowed to be zero and is also differentiable from a modern deep
191
+ 119 learning perspective. The free parameters $\alpha _ { i }$ and $\beta$ are real-valued and they do not restrict a training
192
+ 120 process with the stochastic gradient descent. Thus, we can train $a _ { i }$ through $\alpha _ { i }$ and $\beta$ . The exponential
193
+ 121 function in Eq. (9) ensures that the architecture parameters are non-negative. Typically, $a _ { i }$ cannot
194
+ 122 be zero due to the exponential function of Eq. (9). However, $\tilde { \gamma } _ { i }$ in Eq. (10) can be zero by the
195
+ 123 thresholding operation; hence, $a _ { i }$ can be zero as well. The term $\sigma \left( \beta \right) \cdot \| \gamma \| _ { 1 }$ plays the role of a
196
+ 124 threshold, and the thresholding operation is interpreted as follows: if the strength of component $i$
197
+ 125 in a competition group is small compared to the total strength, it is dropped from the competition.
198
+ 126 Note that the scalar parameter $\beta$ in Eq. (10), which determines the magnitude of a threshold, is
199
+ 127 not a hyper-parameter, but its value is automatically determined through training. Mathematically,
200
+ 128 the thresholding operator is not differentiable, but this should not pose an issue considering the
201
+ 129 support of relu as a built-in differentiable function in a modern deep learning tool. Additionally, $\gamma$ is
202
+ 130 non-negative; thus, its $l _ { 1 }$ -norm is simply the sum of $\gamma _ { i }$ (i.e., $\| \gamma \| _ { 1 } = \sum \gamma _ { i } )$ . The softmax of Eq. (11)
203
+ 131 is also differentiable. The softmax is optional but useful when we need to promote the competition
204
+ 132 between components as in the attention mechanism.
205
+
206
+ 33 By relaxing the differentiability, singed architecture parameter can be similarly formed as
207
+
208
+ $$
209
+ a _ { i } = s i g n ( \alpha _ { i } ) ( | \alpha _ { i } | - \sigma ( \beta ) | | \alpha | | _ { 1 } ) _ { + } ,
210
+ $$
211
+
212
+ 134 where $\alpha$ and $\beta$ are free parameters. The gradient of the sign function is zero almost everywhere, but
213
+ 135 it does not cause a problem for a modern deep learning tool. The equation can be rewritten as
214
+
215
+ $$
216
+ a _ { i } = \left\{ \begin{array} { l l } { \left( \alpha _ { i } + \sigma \left( \beta \right) \lVert \alpha \rVert _ { 1 } \right) _ { - } } & { \mathrm { i f } \ \alpha _ { i } < 0 } \\ { \left( \alpha _ { i } - \sigma \left( \beta \right) \lVert \alpha \rVert _ { 1 } \right) _ { + } } & { \mathrm { o t h e r w i s e } , } \end{array} \right.
217
+ $$
218
+
219
+ 136 where $( \cdot ) _ { - } = \operatorname* { m i n } ( \cdot , 0 )$ . The gradient can be computed separately according to whether its value
220
+ 137 is negative or not. To the authors’ understanding, sign function is already taken care in the ex
221
+ 138 plained manner by TensorFlow [1], and thus $t f . m a t h . s i g n ( )$ can be simply used without the manual
222
+ 139 implementation of the conditional statement.
223
+
224
+ # 3.3 Sparsity Regularizer
225
+
226
+ 141 In the proposed approach, an objective function is written as
227
+
228
+ $$
229
+ \mathcal { L } \left( D , W , a \right) + \lambda \mathcal { R } \left( a \right) ,
230
+ $$
231
+
232
+ 142 where $a$ denotes the vector of architecture parameters. Sparsifying $a$ is equivalent to sparsifying a
233
+ 143 deep neural network. Therefore, we can use the regularization term on $a$ to encourage the sparsity of
234
+ 144 $a$ . The proposed method is not limited to a particular norm and we can drive different sparsity patterns
235
+ 145 depending on the types of norms. For example, the most popular choice for parameter selection is
236
+ 146 $l _ { 1 }$ -norm, but it is unsuitable on $a$ in Eq. (11) as it is normalized using the softmax. Its $l _ { 1 }$ -norm is
237
+ 147 always 1, i.e., $\begin{array} { r } { \| a \| _ { 1 } = \sum _ { i = 1 } ^ { n } | a _ { i } | = 1 } \end{array}$ . Therefore, we should employ $p$ -norm with $p < 1$ :
238
+
239
+ $$
240
+ \mathcal { R } \left( a \right) = \left( \sum _ { i = 1 } ^ { n } \lvert a _ { i } \rvert ^ { p } \right) ^ { \frac { 1 } { p } } = \left( \sum _ { i = 1 } ^ { n } a _ { i } ^ { p } \right) ^ { \frac { 1 } { p } } ,
241
+ $$
242
+
243
+ 148 where the second equality holds as $a _ { i }$ is always non-negative. To the authors’ best knowledge, a closed
244
+ 149 form solution for the proximal operator of $p$ -norm with $p < 1$ is unknown, but the regularization term
245
+ 150 is differentiable almost everywhere as relu is. Thus, the proposed approach can directly optimize the
246
+ 151 regularized objective function and zero-out components with the stochastic gradient descent.
247
+ 152 By simply switching one norm to another one for a regularizer, different sparsity patterns can be
248
+ 153 derived. For example, an individual component can be removed with $l _ { 1 }$ -norm (Eq. 2) and a group of
249
+ 154 components or an entire module can be zeroed-out with $l _ { 2 , 1 }$ -norm (Eq. 4). Note that we do not need
250
+ 155 to manually implement different updating rules as in the proximal gradient approach. We just need to
251
+ 156 rewrite a regularization term in the objective function. Examples codes and experiment results are
252
+ 157 shown in the supplementary material.
253
+
254
+ If $\gamma _ { i }$ Eq. (10) or $\alpha _ { i }$ in Eq. (12) is less than the threshold, the gradient will be zero, and it will not receive learning signals. However, note that it does not necessarily mean that a component dies permanently once its importance score is less than the threshold. The component still has a chance to recover because the threshold is adjustable and the importance scores of other components may decrease. Nevertheless, to ensure that the architecture parameters of dropped components continuously receive learning signals, we propose approximating the gradient of the thresholding function. As in [31] where the gradient of a step function was approximated using that of leaky relu or soft plus, we suggest employing elu [4] as a variant of the proposed method: relu is used in the forward pass, but elu is used in the backward pass.
255
+
256
+ 168 This heuristic approach leads to a similar learning mechanism proposed in [30], where the gradient
257
+ 169 flows to dropped (or zeroed out) edges but does not flow through these dropped edges. The architecture
258
+ 170 parameters in our proposed method correspond to the edges in [30]. Note that our approach can
259
+ 171 be easily implemented, and it does not require additional codes to control the gradient flow. The
260
+ 172 implementation codes are shown in the appendix.
261
+
262
+ # 173 4 Application and Experiment
263
+
264
+ 174 In this section, we show that the proposed approach can be applied to reduce the size of a network as
265
+ 175 well as to learn the structure. Our aim is not to achieve state-of-the-art performance but to validate the
266
+ 176 idea and the broad applicability of the proposed approach. In order to show the broad applicability
267
+ 177 with limited computing resources, we perform experiments with relative small datasets such as
268
+ 178 CIFAR-10/100 [13]. Our implementations closely follow those of baseline models, including model
269
+ 179 structures and hyper-parameter settings.
270
+
271
+ # 180 4.1 Channel Pruning in Convolutional Network
272
+
273
+ Table 1: Performance on CIFAR-10, DenseNet-100-BC-K12
274
+
275
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Sparsity(%)</td><td colspan="2">Top-1 Error(%)</td><td colspan="2">Parmas</td><td colspan="2">FLOPs</td></tr><tr><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td></tr><tr><td>Base</td><td>00.0</td><td>0.0</td><td>5.44</td><td>0.11</td><td>7.6×105</td><td>0.0</td><td>5.8×108</td><td>0.0</td></tr><tr><td>NS</td><td>70.0</td><td>0.0</td><td>6.53</td><td>0.19</td><td>2.9×105</td><td>9.3×10²</td><td>1.9×108</td><td>5.0×106</td></tr><tr><td>NS</td><td>80.0</td><td>0.0</td><td>8.39</td><td>0.28</td><td>2.0×105</td><td>2.0×103</td><td>1.4 × 108</td><td>3.4×106</td></tr><tr><td>DS</td><td>70.3</td><td>0.1</td><td>5.77</td><td>0.09</td><td>2.7×105</td><td>2.3×10</td><td>1.8×108</td><td>1.6 ×106</td></tr><tr><td>DS</td><td>80.4</td><td>0.1</td><td>6.64</td><td>0.11</td><td>1.7 × 105</td><td>0.6×103</td><td>1.3×108</td><td>2.0×106</td></tr></table>
276
+
277
+ 181 Network-slimming(NS) [20] prunes unimportant channels in convolutional layers by leveraging the 182 scaling factors in batch normalization. Let $x _ { i }$ and $y _ { i }$ be the input and output of batch normalization 183 for channel $i$ and then the operation can be written as
278
+
279
+ $$
280
+ \tilde { x } _ { i } = \frac { x _ { i } - \mu _ { i } } { \sqrt { \sigma _ { i } ^ { 2 } + \epsilon } } ; y _ { i } = a _ { i } \tilde { x } _ { i } + b _ { i } ,
281
+ $$
282
+
283
+ 184 where $\mu _ { i }$ and $\sigma _ { i }$ denotes the mean and standard deviation of input activations, $a$ and $b$ are scale
284
+ 185 and shift parameters, $\epsilon$ is a small constant for numerical stability. The scaling parameter $a$ can be
285
+ 186 considered as an importance score or an architecture parameter, and the affine transformation can be
286
+ 187 re-written as
287
+
288
+ $$
289
+ y _ { i } = a \left( \tilde { x } _ { i } + b _ { i } \right) .
290
+ $$
291
+
292
+ 188 By pushing $a _ { i }$ to be zero, a corresponding channel can be removed. Network-slimming trains an
293
+ 189 initial network with $l _ { 1 }$ -regularization on $a$ to identify insignificant channels. After the training,
294
+ 190 channels with small values of $a$ are pruned. To compensate the damage caused by pruning, a pruned
295
+ 191 network is fine-tuned. In our approach, we parameterize the scaling parameter using Eq. (12) and train
296
+ 192 a network with $l _ { 1 }$ -norm on $a$ using the stochastic gradient descent without pruning and fine-tuning.
297
+ 193 We perform comparison experiments on CIFAR-10/100 [13]. The training and test sets contain
298
+ 194 $5 0 , 0 0 0$ and 10, 000 samples respectively, and the final test error is reported at the end of training or
299
+ 195 fine-tuning on all training images. We adopt a standard data augmentation scheme (random shifting
300
+ 196 and flipping) as in [7, 8]. In network-slimming, $\lambda$ in Eq. 13 is fixed to $1 0 ^ { - 5 }$ , but in our approach
301
+ 197 we vary its value to induce different level of sparsity. DenseNet-BC-K12 with 100 layers [10] and
302
+ 198 ResNet with 164 layers [7, 8] are employed as base networks. In network-slimming, pre-trained
303
+ 199 models are obtained by training networks for 160 epochs with the initial learning of 0.1. The learning
304
+ 200 rate is divided by 10 at $5 0 \%$ and $7 5 \%$ of the total number of training epochs. After the training,
305
+ 201 channels with small values of $a$ are pruned and a slimmed network is fine-turned for another 160
306
+ 202 epochs with the same setting as in the initial training, but learned weights are not re-initialized. In our
307
+ 203 approach, we train networks for 320 epochs without fine-tuning or re-training. Network-slimming
308
+ 204 initializes the scaling factor to be 0.5 and we set $\alpha = 0 . 5 ( n + \bar { 1 } ) / n$ and $\beta = \log \left( n ^ { 2 } + n - 1 \right)$ in
309
+ 205 Eq. 12 so that $a$ starts with 0.5.
310
+
311
+ Table 1 shows experiment results on CIFAR-10 with DenseNet. More experiments, including ResNet and CIFAR-100, are given in the supplementary materials due to page limitation. The authors strongly urge readers to see the supplementary materials. We ran each experiments 5 times and showed the 9 average and the standard deviation. Our proposed method is denoted by Differentiable Sparsification (DS). We controlled the value of $\lambda$ such that similar pruning rate with that of the network-slimming approach. In the tables, sparsity denotes the number of removed channels in hidden layers. The experiments show that the proposed differentiable approach more effectively learns slimed models.
312
+
313
+ # 213 4.2 Discovering Neural Wirings
314
+
315
+ Table 2: Performance on CIFAR-10, Discovering Neural Wirings
316
+
317
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Top-1 Error(%)</td><td colspan="2">Parmas</td><td colspan="2">Mult-Adds</td></tr><tr><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td></tr><tr><td>MobileNetV1(×0.25)</td><td>13.44</td><td>0.24</td><td>2.2 × 105</td><td>0.0</td><td>3.3× 106</td><td>0.0</td></tr><tr><td>No Update(×0.225)</td><td>13.86</td><td>0.27</td><td>2.2×105</td><td>3.7×101</td><td>4.5×106</td><td>3.7×104</td></tr><tr><td>DNW(×0.225)</td><td>10.30</td><td>0.20</td><td>1.8×105</td><td>6.7×101</td><td>3.1 × 106</td><td>4.6×104</td></tr><tr><td>PG-l1-norm</td><td>12.17</td><td>0.44</td><td>2.1×104</td><td>9.4×10²</td><td>3.3× 106</td><td>1.7× 105</td></tr><tr><td>PG-l1,2-norm</td><td>13.62</td><td>0.56</td><td>9.6×104</td><td>1.6 ×104</td><td>3.4 ×106</td><td>8.6×104</td></tr><tr><td>DS-No Rectified Grad.</td><td>10.55</td><td>0.23</td><td>6.1×104</td><td>5.7×10²</td><td>3.4×106</td><td>4.5×104</td></tr><tr><td>DS-Rectified Grad.</td><td>9.36</td><td>0.27</td><td>4.7×104</td><td>8.4×10²</td><td>3.3× 106</td><td>6.7×104</td></tr></table>
318
+
319
+ 214 Discovering Neural Wirings(DNW) [30] relaxes the notion of layers and treats channels as nodes 215 in a neural graph. By allowing channels to learn connections between them, it jointly discovers the 216 structure and learns the parameters of a neural network. An input to node $v$ , $\mathbf { x } _ { v }$ , is expressed
320
+
321
+ $$
322
+ \mathbf { y } _ { v } = \sum _ { ( u , v ) \in \mathcal E } w _ { u , v } \mathbf { x } _ { u } ,
323
+ $$
324
+
325
+ 217 where $\mathbf { X } _ { u }$ denotes the state of a proceeding node, $\mathcal { E }$ represents a edge set and $w _ { u , v }$ is a connection
326
+ 218 weight of an edge. The structure of a neural graph can be determined by choosing a subset of edges.
327
+ 219 At each iteration of training, DNW chooses the top $k$ edges with the highest magnitude, which is
328
+ 220 called a real edge set, and refers to the remaining edges as a hallucinated edge set. On the forwards
329
+ 221 pass or at inference time, real edges are only used. As DNW allows the magnitude of the weights
330
+ 222 in both sets to change throughout training, a hallucinated edge may replace a real edge when it
331
+ 223 strengthens enough. The weights of real edges are updated in an ordinary manner with the stochastic
332
+ 224 gradient descent, but those of hallucinated edges are updated by a specialized leaning rule: the
333
+ 225 gradient flows to hallucinated edges but does not flow through them.
334
+ 226 The architecture parameters in our proposed method correspond to the edges in DNW. We parame
335
+ 227 terize the edges using Eq. (12) and train a network with $l _ { 1 }$ -norm on edges to induce sparsity. The
336
+ 228 rectified gradient leads to an update rule which is similar to that of DNW: the rectified gradient
337
+ 229 ensures that dropped architecture parameters continuously receive learning signals by approximating
338
+ 230 the gradient of the thresholding function. However, we do not need to keep track of the real and
339
+ 231 hallucinated edge sets. We simply optimize the objective function with approximated gradients. The
340
+ 232 rectified gradient can be implemented in a couple of lines using modern deep learning tools and the
341
+ 233 code is shown in the supplementary material.
342
+ 234 We perform experiments on CIFAR-10/100 [13]. The final test error is reported at the end of training
343
+ 235 without using separate validation data set. MobileNetV1 $( \times 0 . 2 5 )$ [9] is employed as a base model
344
+ 236 and our implementation closely follows that of DNW. We train for 160 epochs with initial learning
345
+ 237 rate 0.1. The learning rate is scheduled using Cosine Annealing. DNW chose the value of $k$ such that
346
+ 238 a final learned model has similar Mult-Adds with the base model, and we also set the value of $\lambda$ in
347
+ 239 the same manner.
348
+
349
+ ![](images/b8633fb0588a99814e592a6c09111cabc2ee3097de52f50463ab1b4b99f07718.jpg)
350
+ Figure 1: Left: Structure of a GCN block. Each block consists of a shared adjacency, an input feature, and a weight matrix. Each row and column of an adjacent matrix are treated as groups to enable the learning of relationship between a node (indexed by $i$ ) and its neighbors. Right: Row grouping creates the competition between in-coming nodes, and column grouping creates the competition between out-going nodes.
351
+
352
+ Table 2 shows experiment results on CIFAR-10. We ran each experiments 5 times and showed the average and the standard deviation. Our proposed method is denoted by DS. DNW without the update rule corresponds to DS without the rectified gradient method. Even without the rectified gradient, the performance of the proposed method is close to that of DNW with the update rule. It validates the effectiveness of our approach. We also performed experiments with the proximal gradients of Eq.(3) and Eq.(7), which is denoted by PG in Table 2. PG-l1-norm also uses the $l _ { 1 }$ -norm as a regularizer, but the learning is not as effective as ours. Similarly, $\mathrm { P G } \mathrm { - } l _ { 1 , 2 }$ -norm uses the update rule of Eq.(7) whose shape is similar to our sparse parameterization Eq. (12), but the performance is worse than ours. More experiments, including CIFAR-100, are given in the supplementary materials due to page limitation.
353
+
354
+ DNW determines the size and the structure of a network by choosing $k$ edges. However, there is no clear notion how to choose $k$ for different stages (or blocks) and thus it uses the same pruning rate for all stages, which may be restrict because each stage may play a different role and need a different amount of resources. In contrast, our approach controls the model complexity by adjusting the value of $\lambda$ in the objective function, and a different amount of resources is allocated for each stage through training. As shown in Table 2, the proposed method uses model parameters more efficiently.
355
+
356
+ # 4.3 Learning relationship between Nodes in Graph
357
+
358
+ In this section, we applied the proposed approach to learn the structure of an adjacency matrix in a graph convolutional network (GCN). The purpose of this case study is to test whether our approach can learn semantic structure from data rather than reducing the size of a neural network.
359
+
360
+ 260 We adopted the model of [11], one of the most successful GCN models. A GCN block or a layer is
361
+ 261 defined (see Fig. 1) as
362
+
363
+ $$
364
+ H ^ { l + 1 } = F \left( A H ^ { l } W ^ { l } \right) ,
365
+ $$
366
+
367
+ 262 where $A$ is an adjacency matrix; $H ^ { l }$ and $W ^ { l }$ are an input feature and a weight matrix for layer $l$ ,
368
+ 263 respectively; and $F$ is a nonlinear activation function. In general, $A$ is non-negative and shared
369
+ 264 across GCN blocks. It is obtained by normalization. For example, $A = \tilde { D } ^ { - 1 } \tilde { A }$ or $\overset { \mathbf { \tilde { \lambda } } } { A } = \overset { \mathbf { \tilde { \mu } } } { D } ^ { - \frac { 1 } { 2 } } \overset { \mathbf { \tilde { \lambda } } } { A } \overset { \mathbf { \tilde { \mu } } } { D } ^ { - \frac { 1 } { 2 } }$ ,
370
+ 265 where $\tilde { A }$ is an unnormalized adjacency matrix; and $\tilde { D }$ is a diagonal matrix, where $\begin{array} { r } { \tilde { D } _ { i } = \sum _ { j } \tilde { A } _ { i , j } } \end{array}$ .
371
+ 266 The adjacency matrix represents the connections or relationships between nodes on a graph and is
372
+ 267 usually given by prior knowledge. Learning the value of $A _ { i , j }$ amounts to determining the relationship
373
+ 268 between nodes $i$ and $j$ . If the value of $A _ { i , j }$ is zero, it can be considered that the two nodes are
374
+ 269 unrelated.
375
+ 270 As shown in Fig. 1, we defined each row and column as a group. Row grouping creates the competition
376
+ 271 between in-coming nodes, whereas column grouping creates the competition between out-going
377
+ 272 nodes. Each row and column of unnormalized adjacency matrix $\tilde { A }$ can be parameterized similarly as
378
+ 273 in $\tilde { \gamma }$ of in Eq. (10):
379
+
380
+ ![](images/51d38ea1e3fe87b5acd0059170ea3038964ee3255771db31766416a92efc1517.jpg)
381
+ Figure 2: The gray lines represent 170 road links where the experimental data were collected.
382
+
383
+ 274
384
+
385
+ $$
386
+ \begin{array} { c } { \gamma _ { i , j } = \exp \left( \alpha _ { i , j } \right) } \\ { \tilde { A } _ { i , j } = \left( \gamma _ { i , j } - \sigma \left( \beta _ { i } ^ { r } \right) \cdot \left. \gamma _ { i , : } \right. _ { 1 } - \sigma \left( \beta _ { j } ^ { c } \right) \cdot \left. \gamma _ { : , j } \right. _ { 1 } \right) _ { + } . } \end{array}
387
+ $$
388
+
389
+ 275 The softmax normalization of Eq. (11) is replaced with Sinkhorn normalization [23, 24, 12] to make
390
+ 276 $A$ is doubly-stochastic: each row and column sum up to 1. Initializing $A$ with $\tilde { A }$ , we can convert $\tilde { A }$
391
+ 277 into a doubly stochastic matrix by iteratively applying the following equations:
392
+
393
+ $$
394
+ A = D _ { r } ^ { - 1 } A { \mathrm { a n d } } A = A D _ { c } ^ { - 1 } ,
395
+ $$
396
+
397
+ where 278 $D _ { r }$ and $D _ { c }$ are diagonal matrices; $\begin{array} { r } { [ D _ { r } ] _ { i } = \sum _ { j } A _ { i , j } } \end{array}$ ; $\begin{array} { r } { \left[ D _ { c } \right] _ { j } = \sum _ { i } A _ { i , j } } \end{array}$ . Note that although the 279 normalization is iterative, it is differentiable. Balanced normalization is also possible by iteratively 280 applying
398
+
399
+ $$
400
+ A = D _ { r } ^ { - { \frac { 1 } { 2 } } } A D _ { c } ^ { - { \frac { 1 } { 2 } } } .
401
+ $$
402
+
403
+ 281 We verified through numerical experiments that iteratively applying the above equation also makes $\tilde { A }$
404
+ 282 to doubly stochastic, but we could not find a theoretical justification. We leave the mathematical proof
405
+ 283 as an open question for a future work. As competition groups are created in row- and column-wise
406
+ 284 approaches, a regularized objective function can be written as
407
+
408
+ $$
409
+ \mathcal { L } \left( D , W , A \right) + \frac { \lambda } { 2 } \sum _ { i = 1 } ^ { N } \left\{ \mathcal { R } \left( A _ { i , : } \right) + \mathcal { R } \left( A _ { : , i } \right) \right\} ,
410
+ $$
411
+
412
+ where 285 $W = \{ W ^ { l } \}$ , $N$ is the size of square matrix $A$ , and $A _ { i , }$ : and $A _ { : , i }$ denote ith row and column 286 vector of $A$ , respectively. We employ $l _ { p }$ -norm of Eq. (14) with $p = 0 . 5$ for a regularizer.
413
+
414
+ 287 To validate our purposed method, we applied a GCN to estimate future traffic speeds in a road network.
415
+ 288 The traffic speed data were collected from 170 road segments.Thus, the sizes of an adjacent matrix is
416
+ 289 $1 7 0 \times 1 7 0$ . The map of the data area collected is shown in 2. One-step ahead observation is estimated
417
+ 290 from eight past observations and an output layer generates 170 estimates, one for each road segment.
418
+ 291 A prediction loss is measured using the mean relative error (MRE). More detailed specifications of
419
+ 292 the experimental data and our GCN model can be found in the supplementary material. A prediction
420
+ 293 loss is measured using the mean relative error (MRE).
421
+ 294 Three baseline models were used: two were given the road connectivity and the other was not. For
422
+ 295 the first baseline, we set the value of $A _ { i , j }$ as a constant such that $\begin{array} { r } { A _ { i , j } = \frac { 1 } { n _ { i } } } \end{array}$ if node (or road) $i$ and $j$
423
+ 296 are adjacent to each other $\mathbf { \chi } _ { n _ { i } }$ is the number of neighbors of node $i$ ), and $\mathbf { \nabla } _ { A _ { i , j } } = 0$ otherwise. The
424
+ 297 second baseline was taken in a similar approach, but we set $\tilde { A } _ { i , j } = \exp \left( \alpha _ { i , j } \right)$ if node $i$ and $j$ were
425
+ 298 adjacent to each other to ensure that the strengths of the connections were learned. For the third
426
+ 299 baseline, the connectivity was not given. However, we set $\tilde { A } _ { i , j } = \exp \left( \alpha _ { i , j } \right)$ for all $i , j$ regardless of
427
+ 300 the actual connections. For the proposed method, we parameterized the adjacency matrix as in the
428
+ 301 third baseline but applied the sparsification technique. The balanced normalization was applied to all
429
+ 302 cases except the first baseline, for which the row sum is 1.
430
+
431
+ 303 To measure the learned relationship between nodes, we propose the following scoring function:
432
+
433
+ $$
434
+ \frac { 1 } { 2 N } \sum _ { i = 1 } ^ { N } \sum _ { j = 1 } ^ { N } \left[ \left( A ^ { r } + A ^ { c } \right) \odot M ^ { k } \right] _ { i , j } ,
435
+ $$
436
+
437
+ 304 where $A ^ { r } = D _ { r } ^ { - 1 } A$ , $A ^ { c } = A D _ { c } ^ { - 1 }$ , $\odot$ denotes the element-wise product, and $[ M ^ { k } ] _ { i , j } = 1$ if the
438
+ 305 geodesic distance between node $i$ and $j$ is less than or equal to $k$ , whereas $[ M ^ { k } ] _ { i , j } = 0$ otherwise.
439
+ 306 The maximum value is 1, and the minimum is 0. For example, the first and second baselines always
440
+ 307 have the maximum value because their adjacency matrices have exactly the same structure of $\dot { M } ^ { 1 }$ .
441
+ 308 We calculated the scores for $k = 1$ and 2. Note that we used $A ^ { r }$ and $A ^ { c }$ instead of $A$ because a
442
+ 309 sparsified matrix is not guaranteed to be doubly stochastic even if the original Sinkhorn normalization
443
+ 310 is adopted.
444
+ 311 The performance of the baseline models is shown in Table 4a. We ran each experiment five times and
445
+ 312 selected the median among the five lowest validation errors. For the first and second baselines, the
446
+ 313 road connectivity is given, and the number of non-zero elements of the adjacent matrices is 878. Note
447
+ 314 that the value of the learned relationship for Baselines I and II is constant, but we show it for reference.
448
+ 315 The road connectivity is not given for the third baseline, and the number of non-zero elements of
449
+ 316 the adjacent matrix is 28, $9 0 0 ( = 1 7 0 \times 1 7 0 )$ . The performance of the proposed model is shown in
450
+ 317 Table 4b. The experiment of Baseline III shows that a GCN finds a nonlinear mapping between input
451
+ 318 and target values simply in the way of reducing the prediction loss without learning the semantic
452
+ 319 relationships between nodes, but the proposed approach finds actual relationships between nodes. We
453
+ 320 further compared the proposed method with the proximal gradient method. The experimental results
454
+ 321 are reported in the supplementary material due to page limitation.
455
+
456
+ Table 3: Traffic speed prediction with GCN
457
+
458
+ <table><tr><td rowspan="2">Model</td><td rowspan="2">#N.Z.</td><td rowspan="2">MAPE(%)</td><td colspan="2">L.R.(×100)</td></tr><tr><td>k=1</td><td>k=2</td></tr><tr><td>I</td><td>878</td><td>5.6623</td><td>100.00</td><td>100.00</td></tr><tr><td>I</td><td>878</td><td>5.5160</td><td>100.00</td><td>100.00</td></tr><tr><td>Ⅲ</td><td>28.900</td><td>5.6343</td><td>13.76</td><td>20.87</td></tr></table>
459
+
460
+ (a) Baseline models
461
+
462
+ <table><tr><td rowspan="2">入</td><td rowspan="2">#N.Z.</td><td rowspan="2">MAPE(%)</td><td colspan="2">L.R.(×100)</td></tr><tr><td>k=1</td><td>k=2</td></tr><tr><td>0.050</td><td>1,220</td><td>5.4744</td><td>87.06</td><td>89.94</td></tr><tr><td>0.075</td><td>1,009</td><td>5.4957</td><td>88.62</td><td>91.39</td></tr><tr><td>0.100</td><td>835</td><td>5.5336</td><td>89.79</td><td>92.13</td></tr></table>
463
+
464
+ (b) Proposed method
465
+
466
+ # 322 5 Scope and Limitation
467
+
468
+ 323 Our aim is not to achieve state-of-the-art performance but to validate the idea and the broad applicabil
469
+ 324 ity of the proposed approach. To the authors’ best knowledge, it is the first fully [sub-]differentiable
470
+ 325 sparsification method that zeroes out components, and we wish our work would provide a foundation
471
+ 326 for future structure learning and model compression methods. The limitation of our approach is that
472
+ 327 a sparsity rate cannot be explicitly specified before training as in conventional pruning approaches. If
473
+ 328 a specific sparsity rate is required, it should be obtained by a try-and-error. The rectified gradient is
474
+ 329 effective as shown in the experiments of discovering neural wirings, but it is not clear in which cases
475
+ 330 it is effective or not. We need more theoretical analysis and leave it for a future work.
476
+
477
+ # 331 6 Conclusion
478
+
479
+ 332 In this study, we proposed a fully differentiable sparsification method that can simultaneously learn
480
+ 333 the sparsified structure and weights of deep neural networks. Our proposed method is versatile in that
481
+ 334 it can be seamlessly integrated into different types of neural networks and various problems.
482
+
483
+ 1. For all authors...
484
+
485
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
486
+ (b) Did you describe the limitations of your work? [Yes] See the scope and limitation section.
487
+ (c) Did you discuss any potential negative societal impacts of your work? [N/A]
488
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [N/A]
489
+
490
+ 2. If you are including theoretical results...
491
+
492
+ (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]
493
+
494
+ 3. If you ran experiments...
495
+
496
+ (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] Main Codes are included in the supplemental material and a snippet is also given in the appendix(pdf supplemental material)
497
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
498
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We ran each experiment five times and gave the mean and the standard deviation.
499
+ (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)? [No] However, readers may easily estimate required resources because we used well-known data and models in most experiments.
500
+
501
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
502
+
503
+ (a) If your work uses existing assets, did you cite the creators? [N/A]
504
+ (b) Did you mention the license of the assets? [N/A]
505
+ (c) Did you include any new assets either in the supplemental material or as a URL? [N/A]
506
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
507
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
508
+
509
+ 5. If you used crowdsourcing or conducted research with human subjects...
510
+
511
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
512
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
513
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
514
+
515
+ # 377 References
516
+
517
+ [1] Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Largescale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow. org/. Software available from tensorflow.org.
518
+
519
+ [2] Karim Ahmed and Lorenzo Torresani. Connectivity learning in multi-branch networks. CoRR, abs/1709.09582, 2017. URL http://arxiv.org/abs/1709.09582. [3] Jose M. Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. In NIPS, 2016. [4] Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). In ICLR, 2016. [5] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR, 2019. [6] Babak Hassibi, David G. Stork, and Gregory J . Wolff. Optimal brain surgeon and general network pruning. In ICNN, 1993. [7] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. [8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In ECCV, 2016. [9] Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017. URL https://arxiv. org/abs/1704.04861. [10] Gao Huang, Zhuang Liu, and Laurens van der Maaten. Densely connected convolutional networks. In CVPR, 2017.
520
+ 07 [11] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
521
+ 09 [12] P. A. Knight. The sinkhorn-knopp algorithm: convergence and applications. SIAM Journal on Matrix Analysis and Applications, 30(1), 2008. [13] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical Report, 2009.
522
+ 13 [14] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. [15] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Fractalnet: Ultra-deep neural networks without residuals. In ICLR, 2017. [16] Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural Computation, 1(4): 541–551, Dec 1989. ISSN 0899-7667. doi: 10.1162/neco.1989.1.4.541.
523
+ 420 [17] Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In NIPS, 1989.
524
+ 21 [18] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In ICLR, 2019.
525
+ 23 [19] Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, 2017.
526
+ 425 [20] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In ICLR, 2019.
527
+ 27 [21] Neal Parikh and Stephen Boyd. Proximal algorithms. Found. Trends Optim., 1(3):127–239, January 2014. ISSN 2167-3888. doi: 10.1561/2400000003. URL http://dx.doi.org/10. 1561/2400000003.
528
+ 30 [22] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015.
529
+ [23] R. Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. The annals of mathematicalstatistics, 35(2):876–879, 1964.
530
+ [24] R. Sinkhorn and P. Knopp. Concerning nonnegative matrices and doubly stochastic matrices. Pacific Journal of Mathematics, 21(2), 1967.
531
+ [25] Huizi Mao Song Han and William J. Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. In ICLR, 2016.
532
+ [26] John Tran Song Han, Jeff Pool and William Dally. Learning both weights and connections for efficient neural network. In NIPS, 2015.
533
+ [27] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2016.
534
+ [28] Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society. Series B (Methodological), 58(1):267–288, 1996.
535
+ [29] Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NIPS, 2016.
536
+ [30] Mitchell Wortsman, Ali Farhadi, and Mohammad Rastegari. Discovering neural wirings. In NeurIPS, 2019.
537
+ [31] Xia Xiao, Zigeng Wang, and Sanguthevar Rajasekaran. Autoprune: Automatic network pruning by regularizing auxiliary parameters. In NeurIPS, 2019.
538
+ [32] Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, 2017.
539
+ [33] Jaehong Yoon and Sung Ju Hwang. Combined group and exclusive sparsity for deep neural networks. In ICML, 2017.
540
+ [34] Yang Zhou, Rong Jin, and Steven Chu–Hong Hoi. Exclusive lasso for multi-task feature selection. In AISTATS, 2010.
parse/train/_x4A8IZ-rRv/_x4A8IZ-rRv_content_list.json ADDED
@@ -0,0 +1,1410 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Differentiable Sparsification for Deep Neural Networks ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 122,
9
+ 823,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 200,
20
+ 580,
21
+ 256
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 292,
32
+ 535,
33
+ 309
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 Deep neural networks have relieved the feature engineering burden on human \n2 experts. However, comparable efforts are instead required to determine an effective \n3 architecture. In addition, as the sizes of networks have over-grown, a considerable \n4 amount of resources is also invested in reducing the sizes. The sparsification of an \n5 over-complete model addresses these problems as it removes redundant parameters \n6 or connections. In this study, we propose a fully differentiable sparsification \n7 method for deep neural networks, which allows parameters to be zero during \n8 training with the stochastic gradient descent. Thus, the proposed method can \n9 simultaneously learn the sparsified structure and weights of networks in an end \n10 to-end manner, which can be directly applies to modern deep neural networks \n11 and imposes minimum overhead to the training process. To the authors’ best \n12 knowledge, it is the first fully [sub-]differentiable sparsification method that zeroes \n13 out components, and it provides a foundation for future structure learning and \n14 model compression methods. ",
40
+ "bbox": [
41
+ 148,
42
+ 324,
43
+ 766,
44
+ 518
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "15 1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 148,
54
+ 544,
55
+ 312,
56
+ 561
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "16 The success of deep neural networks has changed the paradigm of machine learning and pattern \n17 recognition from feature engineering to architecture engineering [16, 14, 22, 7, 32]. Although deep \n18 neural networks have relieved the burden of feature engineering, comparable human efforts are instead \n19 required to determine an effective architecture, such as the number of neurons or layers and the \n20 connections between nodes. In addition, as deep neural networks have over-grown (even up to 10–68 \n21 million parameters) [8, 10, 15, 32], considerable effort is also being invested in reducing existing \n22 model sizes and in meeting the demands of deploying such networks on constrained platforms at \n23 inference time [26, 25]. \n24 These problems can be addressed by the sparsification of an over-complete model [20]. A network \n25 structure can be carved out of an over-complete model by removing redundant blocks [3, 29] or \n26 deleting unnecessary connections between nodes or blocks [2, 18, 30], which also reduces the network \n27 size. Among several approaches, pruning has long been adapted [17, 6, 26, 19, 5]. It typically requires \n28 a pre-trained model and several steps (select unimportant parameters of a pre-trained model, delete \n29 the parameters, and retrain the pruned model) and may repeat the process multiple times. Another \n30 approach is a sparsity regularizer with the proximal gradient [21, 3, 29, 33] which shrinks redundant \n31 parameters to zero during training and requires no pre-trained model. Among the most popular ones \n32 is $l _ { 1 }$ -regularizer [28]. However, as it acts on an individual parameter, it often produces unstructured \n33 irregular models; thus, it diminishes the benefit of parallel hardware computation, such as GPUs [29]. \n34 In order to obtain regular sparse structures, a sparse regularization with $l _ { 2 }$ -norm [3, 29] was adopted \n35 on a group of parameters so that all parameters under the same group are either retained or zeroed \n36 out together. By zeroing-out parameters at a group level, the number of neurons or layers can be \n37 automatically determined as a part of training. However, the optimization of a regularization term is \n38 performed as a separate step separately from the gradient descent-based optimization for prediction \n39 loss. The update rules should be implemented manually and the approach is limited to the cases \n40 where closed form solutions for the proximal operation are known. \n41 In this work, we propose a fully [sub-]differentiable sparsification method for deep neural networks, \n42 which directly optimizes a regularized objective function and allows parameters to be exactly zero \n43 during training with the stochastic gradient descent. Thus, it can simultaneously learn the sparsified \n44 structure and weights of deep neural networks in an end-to-end manner. It leads to simpler implemen \n45 tation and it does not require to manually code a pruning step or an update rule like a soft-thresholding \n46 operator. It can adopt various norms as a regularizer regardless of whether their closed form solutions \n47 for the proximal operator are known or not. Another advantage of the proposed method is that it \n48 can be easily applied on a group of parameters or a building block; thus, it can produce a structured \n49 model and maximize the benefits of parallel hardware computation (e.g., GPUs) and it well suits the \n50 trend of a modularized design in deep learning [22, 27, 7, 32]. ",
63
+ "bbox": [
64
+ 147,
65
+ 575,
66
+ 825,
67
+ 686
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 145,
76
+ 694,
77
+ 825,
78
+ 900
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "",
85
+ "bbox": [
86
+ 151,
87
+ 90,
88
+ 823,
89
+ 119
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 145,
98
+ 125,
99
+ 826,
100
+ 265
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "51 2 Related Work ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 155,
110
+ 284,
111
+ 320,
112
+ 300
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "2.1 Proximal Gradient ",
119
+ "text_level": 1,
120
+ "bbox": [
121
+ 173,
122
+ 314,
123
+ 344,
124
+ 329
125
+ ],
126
+ "page_idx": 1
127
+ },
128
+ {
129
+ "type": "text",
130
+ "text": "Our proposed method is related to sparsity regularization with the proximal gradient [21]. A regularized objective function is written as ",
131
+ "bbox": [
132
+ 161,
133
+ 339,
134
+ 825,
135
+ 367
136
+ ],
137
+ "page_idx": 1
138
+ },
139
+ {
140
+ "type": "equation",
141
+ "img_path": "images/61c2f6e45b9050a68575121d1d07449ece2fc3b8f4fca0e7e3c594d1c612cf5e.jpg",
142
+ "text": "$$\n\\mathcal { L } \\left( D , W \\right) + \\lambda \\mathcal { R } \\left( W \\right) ,\n$$",
143
+ "text_format": "latex",
144
+ "bbox": [
145
+ 421,
146
+ 373,
147
+ 575,
148
+ 391
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "55 where $\\mathcal { L }$ denotes a prediction loss, $\\mathcal { R }$ is a regularization term, $D$ is a set of training data, $W$ is a set \n56 of model parameters, and $\\lambda$ controls the trade-off between prediction loss and model complexity. The \n57 most popular regularizer is $l _ { 1 }$ -norm, ",
155
+ "bbox": [
156
+ 147,
157
+ 396,
158
+ 825,
159
+ 439
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "equation",
165
+ "img_path": "images/bd37b2568b6ba6570ee383644838c3cd7867b1df6d03eb2fb42955fbe0775925.jpg",
166
+ "text": "$$\n{ \\mathcal { R } } \\left( W \\right) = \\sum _ { i } \\left| w _ { i } \\right| ,\n$$",
167
+ "text_format": "latex",
168
+ "bbox": [
169
+ 434,
170
+ 444,
171
+ 562,
172
+ 478
173
+ ],
174
+ "page_idx": 1
175
+ },
176
+ {
177
+ "type": "text",
178
+ "text": "58 where $w _ { i }$ is an individual element of $W$ . To optimize the regularization term, parameter updating is \n59 performed with a proximal operator, ",
179
+ "bbox": [
180
+ 143,
181
+ 483,
182
+ 826,
183
+ 512
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "equation",
189
+ "img_path": "images/2909e820c7c69163aafba2e603e6a40d7402b66ce20d4bcc770999c20ef83326.jpg",
190
+ "text": "$$\nw _ { i } s i g n ( w _ { i } ) ( | w _ { i } | - \\eta \\lambda ) _ { + } ,\n$$",
191
+ "text_format": "latex",
192
+ "bbox": [
193
+ 395,
194
+ 517,
195
+ 601,
196
+ 537
197
+ ],
198
+ "page_idx": 1
199
+ },
200
+ {
201
+ "type": "text",
202
+ "text": "60 where denotes an assignment operator, $\\eta$ is a learning rate, and $( \\cdot ) _ { + }$ represents $\\operatorname* { m a x } ( \\cdot , 0 )$ . As this \n61 approach acts on an individual parameter, it often produces unstructured irregular models. In order \n62 to obtain regular sparse structures, the sparse regularization with $l _ { 2 , 1 }$ -norm can be adopted [3, 29]. \n63 All parameters in the same group are either retained or zeroed-out together. The regularization with \n64 $l _ { 2 , 1 }$ -norm is written as ",
203
+ "bbox": [
204
+ 147,
205
+ 542,
206
+ 826,
207
+ 613
208
+ ],
209
+ "page_idx": 1
210
+ },
211
+ {
212
+ "type": "equation",
213
+ "img_path": "images/24a13b498413f65e55d7f376a1d36a6cf37f0eab8ae052bcc61a820ac729e98e.jpg",
214
+ "text": "$$\n\\mathcal { R } \\left( W \\right) = \\sum _ { g } \\left. \\mathbf { w } _ { g } \\right. _ { 2 } = \\sum _ { g } \\sqrt { \\sum _ { i } w _ { g , i } ^ { 2 } } ,\n$$",
215
+ "text_format": "latex",
216
+ "bbox": [
217
+ 366,
218
+ 612,
219
+ 629,
220
+ 655
221
+ ],
222
+ "page_idx": 1
223
+ },
224
+ {
225
+ "type": "text",
226
+ "text": "65 where $W = \\{ \\mathbf { w } _ { g } \\}$ and ${ \\bf w } _ { g }$ represents a group of model parameters. The regularization term is \n66 optimized with a proximal operator, ",
227
+ "bbox": [
228
+ 147,
229
+ 657,
230
+ 823,
231
+ 686
232
+ ],
233
+ "page_idx": 1
234
+ },
235
+ {
236
+ "type": "equation",
237
+ "img_path": "images/07508fa72893eba72399716b1c13b5d240038fe97bdfd16a6a319061ca042a31.jpg",
238
+ "text": "$$\nw _ { g , i } \\gets \\left( \\frac { \\left\\| \\mathbf { w } _ { g } \\right\\| _ { 2 } - \\eta \\lambda } { \\left\\| \\mathbf { w } _ { g } \\right\\| _ { 2 } } \\right) _ { + } w _ { g , i } .\n$$",
239
+ "text_format": "latex",
240
+ "bbox": [
241
+ 392,
242
+ 691,
243
+ 606,
244
+ 736
245
+ ],
246
+ "page_idx": 1
247
+ },
248
+ {
249
+ "type": "text",
250
+ "text": "67 When a group has only one single parameter, it degenerates to the $l _ { 1 }$ -norm regularization. ",
251
+ "bbox": [
252
+ 151,
253
+ 741,
254
+ 754,
255
+ 756
256
+ ],
257
+ "page_idx": 1
258
+ },
259
+ {
260
+ "type": "text",
261
+ "text": "68 Another group regularization is exclusive lasso with $l _ { 1 , 2 }$ -norm [34, 33]. Rather than either retaining \n69 or removing an entire group altogether, it promotes the competition or sparsity within a group. The \n70 regularization term is written as ",
262
+ "bbox": [
263
+ 147,
264
+ 761,
265
+ 825,
266
+ 804
267
+ ],
268
+ "page_idx": 1
269
+ },
270
+ {
271
+ "type": "equation",
272
+ "img_path": "images/df0310446ccd6d289522e167b554fda23a0dee017261c395953a749e5031fdde.jpg",
273
+ "text": "$$\n\\mathcal { R } \\left( W \\right) = \\frac { 1 } { 2 } \\sum _ { g } \\left. \\mathbf { w } _ { g } \\right. _ { 1 } ^ { 2 } = \\frac { 1 } { 2 } \\sum _ { g } \\left( \\sum _ { i } \\left. w _ { g , i } \\right. \\right) ^ { 2 } ,\n$$",
274
+ "text_format": "latex",
275
+ "bbox": [
276
+ 336,
277
+ 809,
278
+ 660,
279
+ 862
280
+ ],
281
+ "page_idx": 1
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "71 and its updating rule is derived as ",
286
+ "bbox": [
287
+ 147,
288
+ 867,
289
+ 397,
290
+ 882
291
+ ],
292
+ "page_idx": 1
293
+ },
294
+ {
295
+ "type": "equation",
296
+ "img_path": "images/4625a133e0d1a150bbe71efd2cd8be738bea178ec0e51ddced8e04dc150b4520.jpg",
297
+ "text": "$$\nw _ { g , i } s i g n ( w _ { g , i } ) ( | w _ { g , i } | - \\eta \\lambda \\big | \\big | \\mathbf { w } _ { g } \\big | \\big | _ { 1 } ) _ { + } .\n$$",
298
+ "text_format": "latex",
299
+ "bbox": [
300
+ 352,
301
+ 887,
302
+ 645,
303
+ 916
304
+ ],
305
+ "page_idx": 1
306
+ },
307
+ {
308
+ "type": "text",
309
+ "text": "72 These proximal operators consist of weight decaying and thresholding steps, and they are performed \n73 at every mini-batch or epoch in a sperate step after the optimization of a prediction loss. It requires \n74 some extra efforts to implement the update rules manually and applications are limited to the cases \n75 where closed form solutions for the proximal operator are known. In contrast, our approach optimizes \n76 a regularized objective function directly and allows parameters to be zero during training with the \n77 stochastic gradient descent. It leads to simpler implementations and it can employ various norms \n78 regardless of whether closed form solutions for proximal operators are known or not, for example \n79 $p$ -norm with $p < 1$ . ",
310
+ "bbox": [
311
+ 147,
312
+ 92,
313
+ 825,
314
+ 203
315
+ ],
316
+ "page_idx": 2
317
+ },
318
+ {
319
+ "type": "text",
320
+ "text": "80 2.2 Differentiable Approach ",
321
+ "text_level": 1,
322
+ "bbox": [
323
+ 156,
324
+ 219,
325
+ 382,
326
+ 234
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "81 Similar to our work, previous differentiable approaches [2, 18] learn the structure of a neural \n82 network by optimizing architecture parameters in a relaxed continuous domain, where architecture \n83 parameters represent the importance scores of building blocks or the connection strengths between \n84 them. However, as the architecture parameter magnitudes cannot be zero during training, the \n85 top $k$ connections or components are stochastically or deterministically selected according to the \n86 architecture parameter values to derive a discretized architecture. Therefore, the approach may suffer \n87 from the discrepancy between a learned architecture and a final discretized one. Moreover, the \n88 value of $k$ should be pre-specified manually; thus, the same value is set for all blocks or modules, \n89 which may be sub-optimal. Our approach drives the architecture parameters to zero by optimizing a \n90 regularized objective function. This can minimize the model discrepancy, and a network can choose \n91 the different numbers of components or connections in each module through training. ",
333
+ "bbox": [
334
+ 147,
335
+ 246,
336
+ 826,
337
+ 398
338
+ ],
339
+ "page_idx": 2
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "92 3 Proposed Approach ",
344
+ "text_level": 1,
345
+ "bbox": [
346
+ 155,
347
+ 419,
348
+ 370,
349
+ 436
350
+ ],
351
+ "page_idx": 2
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "3.1 Base Model ",
356
+ "text_level": 1,
357
+ "bbox": [
358
+ 173,
359
+ 450,
360
+ 294,
361
+ 465
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "94 We assume that there are $n$ components in a module. A component can be any building block for a \n95 deep neural network or its output. For example, it can be a channel or a layer of convolutional neural \n96 networks such as ResNet [7, 8] and DenseNet layer [10]. It can also represent a node in a neural \n97 graph [30] or a convolutional neural network [11]. A module represents a composite of components, \n98 such as a group of channels or nodes. For illustration purposes, we assume that a module $\\mathbf { y }$ can be \n99 written as the linear combination of components $\\mathbf { f } _ { i }$ : ",
368
+ "bbox": [
369
+ 148,
370
+ 477,
371
+ 825,
372
+ 560
373
+ ],
374
+ "page_idx": 2
375
+ },
376
+ {
377
+ "type": "equation",
378
+ "img_path": "images/a8588624ab66e0b5cc9f70ebc946051903733853d15bc705fba4fd8fdace7b19.jpg",
379
+ "text": "$$\n\\mathbf { y } \\left( \\mathbf { x } \\right) = \\sum _ { i = 1 } ^ { n } a _ { i } \\mathbf { f } _ { i } \\left( \\mathbf { x } ; \\mathbf { w } _ { i } \\right) ,\n$$",
380
+ "text_format": "latex",
381
+ "bbox": [
382
+ 416,
383
+ 568,
384
+ 578,
385
+ 609
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "100 where $\\mathbf { X }$ denotes a module input, $\\mathbf { w } _ { i }$ model parameters for component $\\mathbf { f } _ { i }$ , and $a _ { i }$ an architecture \n101 parameter. Model parameters $\\mathbf { w } _ { i }$ denote ordinary parameters, such as a filter in a convolutional layer \n102 or weight in a fully connected layer. The value of $a _ { i }$ represents the importance of component $i$ , and it \n103 represents the connection strength between nodes in another context. Enforcing $a _ { i }$ to be zero amounts \n104 to removing component $\\mathbf { f } _ { i }$ or zeroing-out $\\mathbf { w } _ { i }$ . Thus, by creating the competition between elements of \n105 $a$ and driving them to be zero, we can eliminate unnecessary components or connections. The sample \n106 model is simple, but we will show that it can be applied to various cases. ",
392
+ "bbox": [
393
+ 142,
394
+ 616,
395
+ 825,
396
+ 714
397
+ ],
398
+ "page_idx": 2
399
+ },
400
+ {
401
+ "type": "text",
402
+ "text": "107 3.2 Differentiable Sparse Parameterization ",
403
+ "text_level": 1,
404
+ "bbox": [
405
+ 143,
406
+ 731,
407
+ 485,
408
+ 746
409
+ ],
410
+ "page_idx": 2
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "08 First, we show how to parameterize architecture parameters with non-negative constraints, which is \n09 useful for the attention mechanism with the softmax. To set up the competition between the elements \n110 of $a$ and allow them to be zero, we parameterize the architecture parameters as follows: ",
415
+ "bbox": [
416
+ 150,
417
+ 757,
418
+ 825,
419
+ 799
420
+ ],
421
+ "page_idx": 2
422
+ },
423
+ {
424
+ "type": "equation",
425
+ "img_path": "images/21f047a9c3a9fc33dce30ab8bbc69e0d5f8c8593e5a995b92d280665872c7456.jpg",
426
+ "text": "$$\n\\gamma _ { i } = \\exp \\left( \\alpha _ { i } \\right)\n$$",
427
+ "text_format": "latex",
428
+ "bbox": [
429
+ 450,
430
+ 808,
431
+ 547,
432
+ 824
433
+ ],
434
+ "page_idx": 2
435
+ },
436
+ {
437
+ "type": "equation",
438
+ "img_path": "images/09656c7a260bde4c53547235019ad09d1ae5eff73a76647d3eeb71b0825d65de.jpg",
439
+ "text": "$$\n\\tilde { \\gamma } _ { i } = \\left( \\gamma _ { i } - \\sigma \\left( \\beta \\right) \\cdot \\left. \\gamma \\right. _ { 1 } \\right) _ { + }\n$$",
440
+ "text_format": "latex",
441
+ "bbox": [
442
+ 410,
443
+ 845,
444
+ 588,
445
+ 867
446
+ ],
447
+ "page_idx": 2
448
+ },
449
+ {
450
+ "type": "equation",
451
+ "img_path": "images/8a8fa70e8ff51f642013c17b1339a23f450080fdf2a753a154c3d91ed48c8d89.jpg",
452
+ "text": "$$\na _ { i } = \\frac { \\tilde { \\gamma } _ { i } } { \\sum _ { j = 1 } ^ { n } \\tilde { \\gamma } _ { j } } ,\n$$",
453
+ "text_format": "latex",
454
+ "bbox": [
455
+ 446,
456
+ 881,
457
+ 550,
458
+ 916
459
+ ],
460
+ "page_idx": 2
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "113 where $\\alpha _ { i }$ and $\\beta$ are unconstrained free parameters, $\\sigma ( \\cdot )$ denotes a sigmoid function, and $( \\cdot ) _ { + }$ rep \n114 resents $r e l u ( \\cdot ) = \\operatorname* { m a x } ( \\cdot , 0 )$ . When a parameter is non-negative, the proximal operator of Eq. (7) \n115 is reduced to Eq. (10). Although the forms are similar, they have completely different meanings. \n116 The proximal operator is a learning rule, whereas Eq. (10) is the parameterized form of architecture \n117 parameters, which is part of a neural network. \n118 We can easily verify that $a _ { i }$ is allowed to be zero and is also differentiable from a modern deep \n119 learning perspective. The free parameters $\\alpha _ { i }$ and $\\beta$ are real-valued and they do not restrict a training \n120 process with the stochastic gradient descent. Thus, we can train $a _ { i }$ through $\\alpha _ { i }$ and $\\beta$ . The exponential \n121 function in Eq. (9) ensures that the architecture parameters are non-negative. Typically, $a _ { i }$ cannot \n122 be zero due to the exponential function of Eq. (9). However, $\\tilde { \\gamma } _ { i }$ in Eq. (10) can be zero by the \n123 thresholding operation; hence, $a _ { i }$ can be zero as well. The term $\\sigma \\left( \\beta \\right) \\cdot \\| \\gamma \\| _ { 1 }$ plays the role of a \n124 threshold, and the thresholding operation is interpreted as follows: if the strength of component $i$ \n125 in a competition group is small compared to the total strength, it is dropped from the competition. \n126 Note that the scalar parameter $\\beta$ in Eq. (10), which determines the magnitude of a threshold, is \n127 not a hyper-parameter, but its value is automatically determined through training. Mathematically, \n128 the thresholding operator is not differentiable, but this should not pose an issue considering the \n129 support of relu as a built-in differentiable function in a modern deep learning tool. Additionally, $\\gamma$ is \n130 non-negative; thus, its $l _ { 1 }$ -norm is simply the sum of $\\gamma _ { i }$ (i.e., $\\| \\gamma \\| _ { 1 } = \\sum \\gamma _ { i } )$ . The softmax of Eq. (11) \n131 is also differentiable. The softmax is optional but useful when we need to promote the competition \n132 between components as in the attention mechanism. ",
465
+ "bbox": [
466
+ 140,
467
+ 90,
468
+ 826,
469
+ 162
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "",
476
+ "bbox": [
477
+ 140,
478
+ 167,
479
+ 826,
480
+ 376
481
+ ],
482
+ "page_idx": 3
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "33 By relaxing the differentiability, singed architecture parameter can be similarly formed as ",
487
+ "bbox": [
488
+ 156,
489
+ 382,
490
+ 759,
491
+ 397
492
+ ],
493
+ "page_idx": 3
494
+ },
495
+ {
496
+ "type": "equation",
497
+ "img_path": "images/7e6f7d120cdf2badb3c2d6a44b52a7980378a24cb227b1f89a51a37166e6e4c2.jpg",
498
+ "text": "$$\na _ { i } = s i g n ( \\alpha _ { i } ) ( | \\alpha _ { i } | - \\sigma ( \\beta ) | | \\alpha | | _ { 1 } ) _ { + } ,\n$$",
499
+ "text_format": "latex",
500
+ "bbox": [
501
+ 374,
502
+ 397,
503
+ 620,
504
+ 417
505
+ ],
506
+ "page_idx": 3
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "134 where $\\alpha$ and $\\beta$ are free parameters. The gradient of the sign function is zero almost everywhere, but \n135 it does not cause a problem for a modern deep learning tool. The equation can be rewritten as ",
511
+ "bbox": [
512
+ 148,
513
+ 417,
514
+ 825,
515
+ 446
516
+ ],
517
+ "page_idx": 3
518
+ },
519
+ {
520
+ "type": "equation",
521
+ "img_path": "images/5de23e486c48520e09e7528ec6df7e2f50ddb8c1ecfc65c1b3b3c32ff6f3542c.jpg",
522
+ "text": "$$\na _ { i } = \\left\\{ \\begin{array} { l l } { \\left( \\alpha _ { i } + \\sigma \\left( \\beta \\right) \\lVert \\alpha \\rVert _ { 1 } \\right) _ { - } } & { \\mathrm { i f } \\ \\alpha _ { i } < 0 } \\\\ { \\left( \\alpha _ { i } - \\sigma \\left( \\beta \\right) \\lVert \\alpha \\rVert _ { 1 } \\right) _ { + } } & { \\mathrm { o t h e r w i s e } , } \\end{array} \\right.\n$$",
523
+ "text_format": "latex",
524
+ "bbox": [
525
+ 362,
526
+ 446,
527
+ 630,
528
+ 496
529
+ ],
530
+ "page_idx": 3
531
+ },
532
+ {
533
+ "type": "text",
534
+ "text": "136 where $( \\cdot ) _ { - } = \\operatorname* { m i n } ( \\cdot , 0 )$ . The gradient can be computed separately according to whether its value \n137 is negative or not. To the authors’ understanding, sign function is already taken care in the ex \n138 plained manner by TensorFlow [1], and thus $t f . m a t h . s i g n ( )$ can be simply used without the manual \n139 implementation of the conditional statement. ",
535
+ "bbox": [
536
+ 142,
537
+ 497,
538
+ 826,
539
+ 553
540
+ ],
541
+ "page_idx": 3
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "3.3 Sparsity Regularizer ",
546
+ "text_level": 1,
547
+ "bbox": [
548
+ 173,
549
+ 568,
550
+ 356,
551
+ 583
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "141 In the proposed approach, an objective function is written as ",
558
+ "bbox": [
559
+ 143,
560
+ 593,
561
+ 571,
562
+ 608
563
+ ],
564
+ "page_idx": 3
565
+ },
566
+ {
567
+ "type": "equation",
568
+ "img_path": "images/83ed1988d32c5deadcb4bde47b5bb1be3c452e9963a2e0ab262520b192b77a4d.jpg",
569
+ "text": "$$\n\\mathcal { L } \\left( D , W , a \\right) + \\lambda \\mathcal { R } \\left( a \\right) ,\n$$",
570
+ "text_format": "latex",
571
+ "bbox": [
572
+ 421,
573
+ 609,
574
+ 576,
575
+ 626
576
+ ],
577
+ "page_idx": 3
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "142 where $a$ denotes the vector of architecture parameters. Sparsifying $a$ is equivalent to sparsifying a \n143 deep neural network. Therefore, we can use the regularization term on $a$ to encourage the sparsity of \n144 $a$ . The proposed method is not limited to a particular norm and we can drive different sparsity patterns \n145 depending on the types of norms. For example, the most popular choice for parameter selection is \n146 $l _ { 1 }$ -norm, but it is unsuitable on $a$ in Eq. (11) as it is normalized using the softmax. Its $l _ { 1 }$ -norm is \n147 always 1, i.e., $\\begin{array} { r } { \\| a \\| _ { 1 } = \\sum _ { i = 1 } ^ { n } | a _ { i } | = 1 } \\end{array}$ . Therefore, we should employ $p$ -norm with $p < 1$ : ",
582
+ "bbox": [
583
+ 147,
584
+ 627,
585
+ 825,
586
+ 712
587
+ ],
588
+ "page_idx": 3
589
+ },
590
+ {
591
+ "type": "equation",
592
+ "img_path": "images/ba469137c4d5fca4fcfb863ed18967ebf26f0009c8444364abf97babb41d4e02.jpg",
593
+ "text": "$$\n\\mathcal { R } \\left( a \\right) = \\left( \\sum _ { i = 1 } ^ { n } \\lvert a _ { i } \\rvert ^ { p } \\right) ^ { \\frac { 1 } { p } } = \\left( \\sum _ { i = 1 } ^ { n } a _ { i } ^ { p } \\right) ^ { \\frac { 1 } { p } } ,\n$$",
594
+ "text_format": "latex",
595
+ "bbox": [
596
+ 364,
597
+ 712,
598
+ 630,
599
+ 766
600
+ ],
601
+ "page_idx": 3
602
+ },
603
+ {
604
+ "type": "text",
605
+ "text": "148 where the second equality holds as $a _ { i }$ is always non-negative. To the authors’ best knowledge, a closed \n149 form solution for the proximal operator of $p$ -norm with $p < 1$ is unknown, but the regularization term \n150 is differentiable almost everywhere as relu is. Thus, the proposed approach can directly optimize the \n151 regularized objective function and zero-out components with the stochastic gradient descent. \n152 By simply switching one norm to another one for a regularizer, different sparsity patterns can be \n153 derived. For example, an individual component can be removed with $l _ { 1 }$ -norm (Eq. 2) and a group of \n154 components or an entire module can be zeroed-out with $l _ { 2 , 1 }$ -norm (Eq. 4). Note that we do not need \n155 to manually implement different updating rules as in the proximal gradient approach. We just need to \n156 rewrite a regularization term in the objective function. Examples codes and experiment results are \n157 shown in the supplementary material. ",
606
+ "bbox": [
607
+ 140,
608
+ 766,
609
+ 825,
610
+ 821
611
+ ],
612
+ "page_idx": 3
613
+ },
614
+ {
615
+ "type": "text",
616
+ "text": "",
617
+ "bbox": [
618
+ 140,
619
+ 827,
620
+ 825,
621
+ 912
622
+ ],
623
+ "page_idx": 3
624
+ },
625
+ {
626
+ "type": "text",
627
+ "text": "If $\\gamma _ { i }$ Eq. (10) or $\\alpha _ { i }$ in Eq. (12) is less than the threshold, the gradient will be zero, and it will not receive learning signals. However, note that it does not necessarily mean that a component dies permanently once its importance score is less than the threshold. The component still has a chance to recover because the threshold is adjustable and the importance scores of other components may decrease. Nevertheless, to ensure that the architecture parameters of dropped components continuously receive learning signals, we propose approximating the gradient of the thresholding function. As in [31] where the gradient of a step function was approximated using that of leaky relu or soft plus, we suggest employing elu [4] as a variant of the proposed method: relu is used in the forward pass, but elu is used in the backward pass. ",
628
+ "bbox": [
629
+ 156,
630
+ 116,
631
+ 825,
632
+ 242
633
+ ],
634
+ "page_idx": 4
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "168 This heuristic approach leads to a similar learning mechanism proposed in [30], where the gradient \n169 flows to dropped (or zeroed out) edges but does not flow through these dropped edges. The architecture \n170 parameters in our proposed method correspond to the edges in [30]. Note that our approach can \n171 be easily implemented, and it does not require additional codes to control the gradient flow. The \n172 implementation codes are shown in the appendix. ",
639
+ "bbox": [
640
+ 142,
641
+ 247,
642
+ 825,
643
+ 316
644
+ ],
645
+ "page_idx": 4
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "173 4 Application and Experiment ",
650
+ "text_level": 1,
651
+ "bbox": [
652
+ 148,
653
+ 335,
654
+ 444,
655
+ 353
656
+ ],
657
+ "page_idx": 4
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "174 In this section, we show that the proposed approach can be applied to reduce the size of a network as \n175 well as to learn the structure. Our aim is not to achieve state-of-the-art performance but to validate the \n176 idea and the broad applicability of the proposed approach. In order to show the broad applicability \n177 with limited computing resources, we perform experiments with relative small datasets such as \n178 CIFAR-10/100 [13]. Our implementations closely follow those of baseline models, including model \n179 structures and hyper-parameter settings. ",
662
+ "bbox": [
663
+ 140,
664
+ 366,
665
+ 825,
666
+ 450
667
+ ],
668
+ "page_idx": 4
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "180 4.1 Channel Pruning in Convolutional Network ",
673
+ "text_level": 1,
674
+ "bbox": [
675
+ 142,
676
+ 464,
677
+ 516,
678
+ 481
679
+ ],
680
+ "page_idx": 4
681
+ },
682
+ {
683
+ "type": "table",
684
+ "img_path": "images/ee94f93c69c46fcf7049e3ceb0294a49c27aea80dd7be2e3163c0c4dab2ab024.jpg",
685
+ "table_caption": [
686
+ "Table 1: Performance on CIFAR-10, DenseNet-100-BC-K12 "
687
+ ],
688
+ "table_footnote": [
689
+ "181 Network-slimming(NS) [20] prunes unimportant channels in convolutional layers by leveraging the 182 scaling factors in batch normalization. Let $x _ { i }$ and $y _ { i }$ be the input and output of batch normalization 183 for channel $i$ and then the operation can be written as "
690
+ ],
691
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Sparsity(%)</td><td colspan=\"2\">Top-1 Error(%)</td><td colspan=\"2\">Parmas</td><td colspan=\"2\">FLOPs</td></tr><tr><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td></tr><tr><td>Base</td><td>00.0</td><td>0.0</td><td>5.44</td><td>0.11</td><td>7.6×105</td><td>0.0</td><td>5.8×108</td><td>0.0</td></tr><tr><td>NS</td><td>70.0</td><td>0.0</td><td>6.53</td><td>0.19</td><td>2.9×105</td><td>9.3×10²</td><td>1.9×108</td><td>5.0×106</td></tr><tr><td>NS</td><td>80.0</td><td>0.0</td><td>8.39</td><td>0.28</td><td>2.0×105</td><td>2.0×103</td><td>1.4 × 108</td><td>3.4×106</td></tr><tr><td>DS</td><td>70.3</td><td>0.1</td><td>5.77</td><td>0.09</td><td>2.7×105</td><td>2.3×10</td><td>1.8×108</td><td>1.6 ×106</td></tr><tr><td>DS</td><td>80.4</td><td>0.1</td><td>6.64</td><td>0.11</td><td>1.7 × 105</td><td>0.6×103</td><td>1.3×108</td><td>2.0×106</td></tr></table>",
692
+ "bbox": [
693
+ 178,
694
+ 517,
695
+ 816,
696
+ 647
697
+ ],
698
+ "page_idx": 4
699
+ },
700
+ {
701
+ "type": "equation",
702
+ "img_path": "images/96dd966a58f85cf006ae04d4763cf0b57a9567e64042394e6a4e9f94ef647c6b.jpg",
703
+ "text": "$$\n\\tilde { x } _ { i } = \\frac { x _ { i } - \\mu _ { i } } { \\sqrt { \\sigma _ { i } ^ { 2 } + \\epsilon } } ; y _ { i } = a _ { i } \\tilde { x } _ { i } + b _ { i } ,\n$$",
704
+ "text_format": "latex",
705
+ "bbox": [
706
+ 390,
707
+ 696,
708
+ 606,
709
+ 732
710
+ ],
711
+ "page_idx": 4
712
+ },
713
+ {
714
+ "type": "text",
715
+ "text": "184 where $\\mu _ { i }$ and $\\sigma _ { i }$ denotes the mean and standard deviation of input activations, $a$ and $b$ are scale \n185 and shift parameters, $\\epsilon$ is a small constant for numerical stability. The scaling parameter $a$ can be \n186 considered as an importance score or an architecture parameter, and the affine transformation can be \n187 re-written as ",
716
+ "bbox": [
717
+ 142,
718
+ 734,
719
+ 825,
720
+ 790
721
+ ],
722
+ "page_idx": 4
723
+ },
724
+ {
725
+ "type": "equation",
726
+ "img_path": "images/e0737cfcff0631d5ce1c3c2080042b87ab72f5132ba1970931f0b7751e9dea54.jpg",
727
+ "text": "$$\ny _ { i } = a \\left( \\tilde { x } _ { i } + b _ { i } \\right) .\n$$",
728
+ "text_format": "latex",
729
+ "bbox": [
730
+ 439,
731
+ 789,
732
+ 557,
733
+ 806
734
+ ],
735
+ "page_idx": 4
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "188 By pushing $a _ { i }$ to be zero, a corresponding channel can be removed. Network-slimming trains an \n189 initial network with $l _ { 1 }$ -regularization on $a$ to identify insignificant channels. After the training, \n190 channels with small values of $a$ are pruned. To compensate the damage caused by pruning, a pruned \n191 network is fine-tuned. In our approach, we parameterize the scaling parameter using Eq. (12) and train \n192 a network with $l _ { 1 }$ -norm on $a$ using the stochastic gradient descent without pruning and fine-tuning. \n193 We perform comparison experiments on CIFAR-10/100 [13]. The training and test sets contain \n194 $5 0 , 0 0 0$ and 10, 000 samples respectively, and the final test error is reported at the end of training or \n195 fine-tuning on all training images. We adopt a standard data augmentation scheme (random shifting \n196 and flipping) as in [7, 8]. In network-slimming, $\\lambda$ in Eq. 13 is fixed to $1 0 ^ { - 5 }$ , but in our approach \n197 we vary its value to induce different level of sparsity. DenseNet-BC-K12 with 100 layers [10] and \n198 ResNet with 164 layers [7, 8] are employed as base networks. In network-slimming, pre-trained \n199 models are obtained by training networks for 160 epochs with the initial learning of 0.1. The learning \n200 rate is divided by 10 at $5 0 \\%$ and $7 5 \\%$ of the total number of training epochs. After the training, \n201 channels with small values of $a$ are pruned and a slimmed network is fine-turned for another 160 \n202 epochs with the same setting as in the initial training, but learned weights are not re-initialized. In our \n203 approach, we train networks for 320 epochs without fine-tuning or re-training. Network-slimming \n204 initializes the scaling factor to be 0.5 and we set $\\alpha = 0 . 5 ( n + \\bar { 1 } ) / n$ and $\\beta = \\log \\left( n ^ { 2 } + n - 1 \\right)$ in \n205 Eq. 12 so that $a$ starts with 0.5. ",
740
+ "bbox": [
741
+ 140,
742
+ 808,
743
+ 825,
744
+ 877
745
+ ],
746
+ "page_idx": 4
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "",
751
+ "bbox": [
752
+ 143,
753
+ 882,
754
+ 826,
755
+ 911
756
+ ],
757
+ "page_idx": 4
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "",
762
+ "bbox": [
763
+ 140,
764
+ 90,
765
+ 825,
766
+ 243
767
+ ],
768
+ "page_idx": 5
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "Table 1 shows experiment results on CIFAR-10 with DenseNet. More experiments, including ResNet and CIFAR-100, are given in the supplementary materials due to page limitation. The authors strongly urge readers to see the supplementary materials. We ran each experiments 5 times and showed the 9 average and the standard deviation. Our proposed method is denoted by Differentiable Sparsification (DS). We controlled the value of $\\lambda$ such that similar pruning rate with that of the network-slimming approach. In the tables, sparsity denotes the number of removed channels in hidden layers. The experiments show that the proposed differentiable approach more effectively learns slimed models. ",
773
+ "bbox": [
774
+ 156,
775
+ 250,
776
+ 825,
777
+ 347
778
+ ],
779
+ "page_idx": 5
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "213 4.2 Discovering Neural Wirings ",
784
+ "text_level": 1,
785
+ "bbox": [
786
+ 142,
787
+ 362,
788
+ 406,
789
+ 377
790
+ ],
791
+ "page_idx": 5
792
+ },
793
+ {
794
+ "type": "table",
795
+ "img_path": "images/991689a48a66458dad1603e4ffb210152acc0f3a622eec4c4f70543296e00515.jpg",
796
+ "table_caption": [
797
+ "Table 2: Performance on CIFAR-10, Discovering Neural Wirings "
798
+ ],
799
+ "table_footnote": [
800
+ "214 Discovering Neural Wirings(DNW) [30] relaxes the notion of layers and treats channels as nodes 215 in a neural graph. By allowing channels to learn connections between them, it jointly discovers the 216 structure and learns the parameters of a neural network. An input to node $v$ , $\\mathbf { x } _ { v }$ , is expressed "
801
+ ],
802
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td colspan=\"2\">Top-1 Error(%)</td><td colspan=\"2\">Parmas</td><td colspan=\"2\">Mult-Adds</td></tr><tr><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td><td>Avg.</td><td>Std.</td></tr><tr><td>MobileNetV1(×0.25)</td><td>13.44</td><td>0.24</td><td>2.2 × 105</td><td>0.0</td><td>3.3× 106</td><td>0.0</td></tr><tr><td>No Update(×0.225)</td><td>13.86</td><td>0.27</td><td>2.2×105</td><td>3.7×101</td><td>4.5×106</td><td>3.7×104</td></tr><tr><td>DNW(×0.225)</td><td>10.30</td><td>0.20</td><td>1.8×105</td><td>6.7×101</td><td>3.1 × 106</td><td>4.6×104</td></tr><tr><td>PG-l1-norm</td><td>12.17</td><td>0.44</td><td>2.1×104</td><td>9.4×10²</td><td>3.3× 106</td><td>1.7× 105</td></tr><tr><td>PG-l1,2-norm</td><td>13.62</td><td>0.56</td><td>9.6×104</td><td>1.6 ×104</td><td>3.4 ×106</td><td>8.6×104</td></tr><tr><td>DS-No Rectified Grad.</td><td>10.55</td><td>0.23</td><td>6.1×104</td><td>5.7×10²</td><td>3.4×106</td><td>4.5×104</td></tr><tr><td>DS-Rectified Grad.</td><td>9.36</td><td>0.27</td><td>4.7×104</td><td>8.4×10²</td><td>3.3× 106</td><td>6.7×104</td></tr></table>",
803
+ "bbox": [
804
+ 184,
805
+ 414,
806
+ 810,
807
+ 577
808
+ ],
809
+ "page_idx": 5
810
+ },
811
+ {
812
+ "type": "equation",
813
+ "img_path": "images/67da417f589f94ca998926f67221113e3533dc09e3116cd9f6bc12e2e76aeb9f.jpg",
814
+ "text": "$$\n\\mathbf { y } _ { v } = \\sum _ { ( u , v ) \\in \\mathcal E } w _ { u , v } \\mathbf { x } _ { u } ,\n$$",
815
+ "text_format": "latex",
816
+ "bbox": [
817
+ 426,
818
+ 625,
819
+ 568,
820
+ 660
821
+ ],
822
+ "page_idx": 5
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "217 where $\\mathbf { X } _ { u }$ denotes the state of a proceeding node, $\\mathcal { E }$ represents a edge set and $w _ { u , v }$ is a connection \n218 weight of an edge. The structure of a neural graph can be determined by choosing a subset of edges. \n219 At each iteration of training, DNW chooses the top $k$ edges with the highest magnitude, which is \n220 called a real edge set, and refers to the remaining edges as a hallucinated edge set. On the forwards \n221 pass or at inference time, real edges are only used. As DNW allows the magnitude of the weights \n222 in both sets to change throughout training, a hallucinated edge may replace a real edge when it \n223 strengthens enough. The weights of real edges are updated in an ordinary manner with the stochastic \n224 gradient descent, but those of hallucinated edges are updated by a specialized leaning rule: the \n225 gradient flows to hallucinated edges but does not flow through them. \n226 The architecture parameters in our proposed method correspond to the edges in DNW. We parame \n227 terize the edges using Eq. (12) and train a network with $l _ { 1 }$ -norm on edges to induce sparsity. The \n228 rectified gradient leads to an update rule which is similar to that of DNW: the rectified gradient \n229 ensures that dropped architecture parameters continuously receive learning signals by approximating \n230 the gradient of the thresholding function. However, we do not need to keep track of the real and \n231 hallucinated edge sets. We simply optimize the objective function with approximated gradients. The \n232 rectified gradient can be implemented in a couple of lines using modern deep learning tools and the \n233 code is shown in the supplementary material. \n234 We perform experiments on CIFAR-10/100 [13]. The final test error is reported at the end of training \n235 without using separate validation data set. MobileNetV1 $( \\times 0 . 2 5 )$ [9] is employed as a base model \n236 and our implementation closely follows that of DNW. We train for 160 epochs with initial learning \n237 rate 0.1. The learning rate is scheduled using Cosine Annealing. DNW chose the value of $k$ such that \n238 a final learned model has similar Mult-Adds with the base model, and we also set the value of $\\lambda$ in \n239 the same manner. ",
827
+ "bbox": [
828
+ 142,
829
+ 662,
830
+ 826,
831
+ 691
832
+ ],
833
+ "page_idx": 5
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "",
838
+ "bbox": [
839
+ 140,
840
+ 696,
841
+ 825,
842
+ 795
843
+ ],
844
+ "page_idx": 5
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "",
849
+ "bbox": [
850
+ 140,
851
+ 800,
852
+ 825,
853
+ 911
854
+ ],
855
+ "page_idx": 5
856
+ },
857
+ {
858
+ "type": "image",
859
+ "img_path": "images/b8633fb0588a99814e592a6c09111cabc2ee3097de52f50463ab1b4b99f07718.jpg",
860
+ "image_caption": [
861
+ "Figure 1: Left: Structure of a GCN block. Each block consists of a shared adjacency, an input feature, and a weight matrix. Each row and column of an adjacent matrix are treated as groups to enable the learning of relationship between a node (indexed by $i$ ) and its neighbors. Right: Row grouping creates the competition between in-coming nodes, and column grouping creates the competition between out-going nodes. "
862
+ ],
863
+ "image_footnote": [],
864
+ "bbox": [
865
+ 245,
866
+ 1,
867
+ 750,
868
+ 210
869
+ ],
870
+ "page_idx": 6
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "",
875
+ "bbox": [
876
+ 140,
877
+ 321,
878
+ 825,
879
+ 406
880
+ ],
881
+ "page_idx": 6
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "Table 2 shows experiment results on CIFAR-10. We ran each experiments 5 times and showed the average and the standard deviation. Our proposed method is denoted by DS. DNW without the update rule corresponds to DS without the rectified gradient method. Even without the rectified gradient, the performance of the proposed method is close to that of DNW with the update rule. It validates the effectiveness of our approach. We also performed experiments with the proximal gradients of Eq.(3) and Eq.(7), which is denoted by PG in Table 2. PG-l1-norm also uses the $l _ { 1 }$ -norm as a regularizer, but the learning is not as effective as ours. Similarly, $\\mathrm { P G } \\mathrm { - } l _ { 1 , 2 }$ -norm uses the update rule of Eq.(7) whose shape is similar to our sparse parameterization Eq. (12), but the performance is worse than ours. More experiments, including CIFAR-100, are given in the supplementary materials due to page limitation. ",
886
+ "bbox": [
887
+ 166,
888
+ 411,
889
+ 825,
890
+ 551
891
+ ],
892
+ "page_idx": 6
893
+ },
894
+ {
895
+ "type": "text",
896
+ "text": "DNW determines the size and the structure of a network by choosing $k$ edges. However, there is no clear notion how to choose $k$ for different stages (or blocks) and thus it uses the same pruning rate for all stages, which may be restrict because each stage may play a different role and need a different amount of resources. In contrast, our approach controls the model complexity by adjusting the value of $\\lambda$ in the objective function, and a different amount of resources is allocated for each stage through training. As shown in Table 2, the proposed method uses model parameters more efficiently. ",
897
+ "bbox": [
898
+ 171,
899
+ 556,
900
+ 825,
901
+ 641
902
+ ],
903
+ "page_idx": 6
904
+ },
905
+ {
906
+ "type": "text",
907
+ "text": "4.3 Learning relationship between Nodes in Graph ",
908
+ "text_level": 1,
909
+ "bbox": [
910
+ 173,
911
+ 659,
912
+ 540,
913
+ 674
914
+ ],
915
+ "page_idx": 6
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "In this section, we applied the proposed approach to learn the structure of an adjacency matrix in a graph convolutional network (GCN). The purpose of this case study is to test whether our approach can learn semantic structure from data rather than reducing the size of a neural network. ",
920
+ "bbox": [
921
+ 174,
922
+ 684,
923
+ 825,
924
+ 727
925
+ ],
926
+ "page_idx": 6
927
+ },
928
+ {
929
+ "type": "text",
930
+ "text": "260 We adopted the model of [11], one of the most successful GCN models. A GCN block or a layer is \n261 defined (see Fig. 1) as ",
931
+ "bbox": [
932
+ 148,
933
+ 732,
934
+ 826,
935
+ 761
936
+ ],
937
+ "page_idx": 6
938
+ },
939
+ {
940
+ "type": "equation",
941
+ "img_path": "images/5ea93fb3501dbf28f9b1e7e6ac9d96bec2d1d9547131570656df76347647f032.jpg",
942
+ "text": "$$\nH ^ { l + 1 } = F \\left( A H ^ { l } W ^ { l } \\right) ,\n$$",
943
+ "text_format": "latex",
944
+ "bbox": [
945
+ 419,
946
+ 761,
947
+ 576,
948
+ 789
949
+ ],
950
+ "page_idx": 6
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "262 where $A$ is an adjacency matrix; $H ^ { l }$ and $W ^ { l }$ are an input feature and a weight matrix for layer $l$ , \n263 respectively; and $F$ is a nonlinear activation function. In general, $A$ is non-negative and shared \n264 across GCN blocks. It is obtained by normalization. For example, $A = \\tilde { D } ^ { - 1 } \\tilde { A }$ or $\\overset { \\mathbf { \\tilde { \\lambda } } } { A } = \\overset { \\mathbf { \\tilde { \\mu } } } { D } ^ { - \\frac { 1 } { 2 } } \\overset { \\mathbf { \\tilde { \\lambda } } } { A } \\overset { \\mathbf { \\tilde { \\mu } } } { D } ^ { - \\frac { 1 } { 2 } }$ , \n265 where $\\tilde { A }$ is an unnormalized adjacency matrix; and $\\tilde { D }$ is a diagonal matrix, where $\\begin{array} { r } { \\tilde { D } _ { i } = \\sum _ { j } \\tilde { A } _ { i , j } } \\end{array}$ . \n266 The adjacency matrix represents the connections or relationships between nodes on a graph and is \n267 usually given by prior knowledge. Learning the value of $A _ { i , j }$ amounts to determining the relationship \n268 between nodes $i$ and $j$ . If the value of $A _ { i , j }$ is zero, it can be considered that the two nodes are \n269 unrelated. \n270 As shown in Fig. 1, we defined each row and column as a group. Row grouping creates the competition \n271 between in-coming nodes, whereas column grouping creates the competition between out-going \n272 nodes. Each row and column of unnormalized adjacency matrix $\\tilde { A }$ can be parameterized similarly as \n273 in $\\tilde { \\gamma }$ of in Eq. (10): ",
955
+ "bbox": [
956
+ 140,
957
+ 794,
958
+ 826,
959
+ 911
960
+ ],
961
+ "page_idx": 6
962
+ },
963
+ {
964
+ "type": "image",
965
+ "img_path": "images/51d38ea1e3fe87b5acd0059170ea3038964ee3255771db31766416a92efc1517.jpg",
966
+ "image_caption": [
967
+ "Figure 2: The gray lines represent 170 road links where the experimental data were collected. "
968
+ ],
969
+ "image_footnote": [],
970
+ "bbox": [
971
+ 383,
972
+ 88,
973
+ 614,
974
+ 223
975
+ ],
976
+ "page_idx": 7
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "",
981
+ "bbox": [
982
+ 142,
983
+ 287,
984
+ 825,
985
+ 345
986
+ ],
987
+ "page_idx": 7
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "274 ",
992
+ "bbox": [
993
+ 140,
994
+ 358,
995
+ 161,
996
+ 369
997
+ ],
998
+ "page_idx": 7
999
+ },
1000
+ {
1001
+ "type": "equation",
1002
+ "img_path": "images/c8e8948bc6a0176af31365c63357718b60df8bc7831cd615d18e460fe23e70f0.jpg",
1003
+ "text": "$$\n\\begin{array} { c } { \\gamma _ { i , j } = \\exp \\left( \\alpha _ { i , j } \\right) } \\\\ { \\tilde { A } _ { i , j } = \\left( \\gamma _ { i , j } - \\sigma \\left( \\beta _ { i } ^ { r } \\right) \\cdot \\left. \\gamma _ { i , : } \\right. _ { 1 } - \\sigma \\left( \\beta _ { j } ^ { c } \\right) \\cdot \\left. \\gamma _ { : , j } \\right. _ { 1 } \\right) _ { + } . } \\end{array}\n$$",
1004
+ "text_format": "latex",
1005
+ "bbox": [
1006
+ 316,
1007
+ 342,
1008
+ 681,
1009
+ 404
1010
+ ],
1011
+ "page_idx": 7
1012
+ },
1013
+ {
1014
+ "type": "text",
1015
+ "text": "275 The softmax normalization of Eq. (11) is replaced with Sinkhorn normalization [23, 24, 12] to make \n276 $A$ is doubly-stochastic: each row and column sum up to 1. Initializing $A$ with $\\tilde { A }$ , we can convert $\\tilde { A }$ \n277 into a doubly stochastic matrix by iteratively applying the following equations: ",
1016
+ "bbox": [
1017
+ 140,
1018
+ 411,
1019
+ 823,
1020
+ 457
1021
+ ],
1022
+ "page_idx": 7
1023
+ },
1024
+ {
1025
+ "type": "equation",
1026
+ "img_path": "images/bed54a440efe11aa11aa39719b23efb88f31f146ffcad4403973452e4b5bb394.jpg",
1027
+ "text": "$$\nA = D _ { r } ^ { - 1 } A { \\mathrm { a n d } } A = A D _ { c } ^ { - 1 } ,\n$$",
1028
+ "text_format": "latex",
1029
+ "bbox": [
1030
+ 397,
1031
+ 462,
1032
+ 598,
1033
+ 481
1034
+ ],
1035
+ "page_idx": 7
1036
+ },
1037
+ {
1038
+ "type": "text",
1039
+ "text": "where 278 $D _ { r }$ and $D _ { c }$ are diagonal matrices; $\\begin{array} { r } { [ D _ { r } ] _ { i } = \\sum _ { j } A _ { i , j } } \\end{array}$ ; $\\begin{array} { r } { \\left[ D _ { c } \\right] _ { j } = \\sum _ { i } A _ { i , j } } \\end{array}$ . Note that although the 279 normalization is iterative, it is differentiable. Balanced normalization is also possible by iteratively 280 applying ",
1040
+ "bbox": [
1041
+ 140,
1042
+ 486,
1043
+ 825,
1044
+ 531
1045
+ ],
1046
+ "page_idx": 7
1047
+ },
1048
+ {
1049
+ "type": "equation",
1050
+ "img_path": "images/b9542bf93714573b15e01547f461b66d7a9b9f29b08b887f3292a01834af8f10.jpg",
1051
+ "text": "$$\nA = D _ { r } ^ { - { \\frac { 1 } { 2 } } } A D _ { c } ^ { - { \\frac { 1 } { 2 } } } .\n$$",
1052
+ "text_format": "latex",
1053
+ "bbox": [
1054
+ 437,
1055
+ 529,
1056
+ 562,
1057
+ 551
1058
+ ],
1059
+ "page_idx": 7
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "281 We verified through numerical experiments that iteratively applying the above equation also makes $\\tilde { A }$ \n282 to doubly stochastic, but we could not find a theoretical justification. We leave the mathematical proof \n283 as an open question for a future work. As competition groups are created in row- and column-wise \n284 approaches, a regularized objective function can be written as ",
1064
+ "bbox": [
1065
+ 140,
1066
+ 555,
1067
+ 825,
1068
+ 612
1069
+ ],
1070
+ "page_idx": 7
1071
+ },
1072
+ {
1073
+ "type": "equation",
1074
+ "img_path": "images/4096b6ee18a50449710045ad4c7358d9780ab3effcc7dba282712b755aac3c43.jpg",
1075
+ "text": "$$\n\\mathcal { L } \\left( D , W , A \\right) + \\frac { \\lambda } { 2 } \\sum _ { i = 1 } ^ { N } \\left\\{ \\mathcal { R } \\left( A _ { i , : } \\right) + \\mathcal { R } \\left( A _ { : , i } \\right) \\right\\} ,\n$$",
1076
+ "text_format": "latex",
1077
+ "bbox": [
1078
+ 343,
1079
+ 618,
1080
+ 653,
1081
+ 662
1082
+ ],
1083
+ "page_idx": 7
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "where 285 $W = \\{ W ^ { l } \\}$ , $N$ is the size of square matrix $A$ , and $A _ { i , }$ : and $A _ { : , i }$ denote ith row and column 286 vector of $A$ , respectively. We employ $l _ { p }$ -norm of Eq. (14) with $p = 0 . 5$ for a regularizer. ",
1088
+ "bbox": [
1089
+ 145,
1090
+ 670,
1091
+ 823,
1092
+ 700
1093
+ ],
1094
+ "page_idx": 7
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "287 To validate our purposed method, we applied a GCN to estimate future traffic speeds in a road network. \n288 The traffic speed data were collected from 170 road segments.Thus, the sizes of an adjacent matrix is \n289 $1 7 0 \\times 1 7 0$ . The map of the data area collected is shown in 2. One-step ahead observation is estimated \n290 from eight past observations and an output layer generates 170 estimates, one for each road segment. \n291 A prediction loss is measured using the mean relative error (MRE). More detailed specifications of \n292 the experimental data and our GCN model can be found in the supplementary material. A prediction \n293 loss is measured using the mean relative error (MRE). \n294 Three baseline models were used: two were given the road connectivity and the other was not. For \n295 the first baseline, we set the value of $A _ { i , j }$ as a constant such that $\\begin{array} { r } { A _ { i , j } = \\frac { 1 } { n _ { i } } } \\end{array}$ if node (or road) $i$ and $j$ \n296 are adjacent to each other $\\mathbf { \\chi } _ { n _ { i } }$ is the number of neighbors of node $i$ ), and $\\mathbf { \\nabla } _ { A _ { i , j } } = 0$ otherwise. The \n297 second baseline was taken in a similar approach, but we set $\\tilde { A } _ { i , j } = \\exp \\left( \\alpha _ { i , j } \\right)$ if node $i$ and $j$ were \n298 adjacent to each other to ensure that the strengths of the connections were learned. For the third \n299 baseline, the connectivity was not given. However, we set $\\tilde { A } _ { i , j } = \\exp \\left( \\alpha _ { i , j } \\right)$ for all $i , j$ regardless of \n300 the actual connections. For the proposed method, we parameterized the adjacency matrix as in the \n301 third baseline but applied the sparsification technique. The balanced normalization was applied to all \n302 cases except the first baseline, for which the row sum is 1. ",
1099
+ "bbox": [
1100
+ 138,
1101
+ 704,
1102
+ 825,
1103
+ 803
1104
+ ],
1105
+ "page_idx": 7
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "",
1110
+ "bbox": [
1111
+ 140,
1112
+ 808,
1113
+ 825,
1114
+ 912
1115
+ ],
1116
+ "page_idx": 7
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "",
1121
+ "bbox": [
1122
+ 145,
1123
+ 90,
1124
+ 825,
1125
+ 119
1126
+ ],
1127
+ "page_idx": 8
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "303 To measure the learned relationship between nodes, we propose the following scoring function: ",
1132
+ "bbox": [
1133
+ 142,
1134
+ 125,
1135
+ 797,
1136
+ 141
1137
+ ],
1138
+ "page_idx": 8
1139
+ },
1140
+ {
1141
+ "type": "equation",
1142
+ "img_path": "images/ec7fef89587600c0fb8063c2a153311481ee402b8fbb52a0c87f73e9683e354a.jpg",
1143
+ "text": "$$\n\\frac { 1 } { 2 N } \\sum _ { i = 1 } ^ { N } \\sum _ { j = 1 } ^ { N } \\left[ \\left( A ^ { r } + A ^ { c } \\right) \\odot M ^ { k } \\right] _ { i , j } ,\n$$",
1144
+ "text_format": "latex",
1145
+ "bbox": [
1146
+ 377,
1147
+ 151,
1148
+ 617,
1149
+ 196
1150
+ ],
1151
+ "page_idx": 8
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "304 where $A ^ { r } = D _ { r } ^ { - 1 } A$ , $A ^ { c } = A D _ { c } ^ { - 1 }$ , $\\odot$ denotes the element-wise product, and $[ M ^ { k } ] _ { i , j } = 1$ if the \n305 geodesic distance between node $i$ and $j$ is less than or equal to $k$ , whereas $[ M ^ { k } ] _ { i , j } = 0$ otherwise. \n306 The maximum value is 1, and the minimum is 0. For example, the first and second baselines always \n307 have the maximum value because their adjacency matrices have exactly the same structure of $\\dot { M } ^ { 1 }$ . \n308 We calculated the scores for $k = 1$ and 2. Note that we used $A ^ { r }$ and $A ^ { c }$ instead of $A$ because a \n309 sparsified matrix is not guaranteed to be doubly stochastic even if the original Sinkhorn normalization \n310 is adopted. \n311 The performance of the baseline models is shown in Table 4a. We ran each experiment five times and \n312 selected the median among the five lowest validation errors. For the first and second baselines, the \n313 road connectivity is given, and the number of non-zero elements of the adjacent matrices is 878. Note \n314 that the value of the learned relationship for Baselines I and II is constant, but we show it for reference. \n315 The road connectivity is not given for the third baseline, and the number of non-zero elements of \n316 the adjacent matrix is 28, $9 0 0 ( = 1 7 0 \\times 1 7 0 )$ . The performance of the proposed model is shown in \n317 Table 4b. The experiment of Baseline III shows that a GCN finds a nonlinear mapping between input \n318 and target values simply in the way of reducing the prediction loss without learning the semantic \n319 relationships between nodes, but the proposed approach finds actual relationships between nodes. We \n320 further compared the proposed method with the proximal gradient method. The experimental results \n321 are reported in the supplementary material due to page limitation. ",
1156
+ "bbox": [
1157
+ 140,
1158
+ 207,
1159
+ 826,
1160
+ 308
1161
+ ],
1162
+ "page_idx": 8
1163
+ },
1164
+ {
1165
+ "type": "table",
1166
+ "img_path": "images/cbe994cde07d1c3f848f4771108a974f8c26854745a7f3ed8400b5b633369325.jpg",
1167
+ "table_caption": [
1168
+ "Table 3: Traffic speed prediction with GCN "
1169
+ ],
1170
+ "table_footnote": [
1171
+ "(a) Baseline models "
1172
+ ],
1173
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">#N.Z.</td><td rowspan=\"2\">MAPE(%)</td><td colspan=\"2\">L.R.(×100)</td></tr><tr><td>k=1</td><td>k=2</td></tr><tr><td>I</td><td>878</td><td>5.6623</td><td>100.00</td><td>100.00</td></tr><tr><td>I</td><td>878</td><td>5.5160</td><td>100.00</td><td>100.00</td></tr><tr><td>Ⅲ</td><td>28.900</td><td>5.6343</td><td>13.76</td><td>20.87</td></tr></table>",
1174
+ "bbox": [
1175
+ 179,
1176
+ 368,
1177
+ 504,
1178
+ 454
1179
+ ],
1180
+ "page_idx": 8
1181
+ },
1182
+ {
1183
+ "type": "table",
1184
+ "img_path": "images/4bcb7d8383101349f9139f66a13e3996acc092e0a97d4475c1b7cad79b53d9fe.jpg",
1185
+ "table_caption": [],
1186
+ "table_footnote": [
1187
+ "(b) Proposed method "
1188
+ ],
1189
+ "table_body": "<table><tr><td rowspan=\"2\">入</td><td rowspan=\"2\">#N.Z.</td><td rowspan=\"2\">MAPE(%)</td><td colspan=\"2\">L.R.(×100)</td></tr><tr><td>k=1</td><td>k=2</td></tr><tr><td>0.050</td><td>1,220</td><td>5.4744</td><td>87.06</td><td>89.94</td></tr><tr><td>0.075</td><td>1,009</td><td>5.4957</td><td>88.62</td><td>91.39</td></tr><tr><td>0.100</td><td>835</td><td>5.5336</td><td>89.79</td><td>92.13</td></tr></table>",
1190
+ "bbox": [
1191
+ 514,
1192
+ 368,
1193
+ 821,
1194
+ 454
1195
+ ],
1196
+ "page_idx": 8
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "",
1201
+ "bbox": [
1202
+ 140,
1203
+ 489,
1204
+ 826,
1205
+ 643
1206
+ ],
1207
+ "page_idx": 8
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "322 5 Scope and Limitation ",
1212
+ "text_level": 1,
1213
+ "bbox": [
1214
+ 147,
1215
+ 666,
1216
+ 383,
1217
+ 684
1218
+ ],
1219
+ "page_idx": 8
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "323 Our aim is not to achieve state-of-the-art performance but to validate the idea and the broad applicabil \n324 ity of the proposed approach. To the authors’ best knowledge, it is the first fully [sub-]differentiable \n325 sparsification method that zeroes out components, and we wish our work would provide a foundation \n326 for future structure learning and model compression methods. The limitation of our approach is that \n327 a sparsity rate cannot be explicitly specified before training as in conventional pruning approaches. If \n328 a specific sparsity rate is required, it should be obtained by a try-and-error. The rectified gradient is \n329 effective as shown in the experiments of discovering neural wirings, but it is not clear in which cases \n330 it is effective or not. We need more theoretical analysis and leave it for a future work. ",
1224
+ "bbox": [
1225
+ 140,
1226
+ 700,
1227
+ 826,
1228
+ 811
1229
+ ],
1230
+ "page_idx": 8
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "331 6 Conclusion ",
1235
+ "text_level": 1,
1236
+ "bbox": [
1237
+ 145,
1238
+ 835,
1239
+ 299,
1240
+ 852
1241
+ ],
1242
+ "page_idx": 8
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "332 In this study, we proposed a fully differentiable sparsification method that can simultaneously learn \n333 the sparsified structure and weights of deep neural networks. Our proposed method is versatile in that \n334 it can be seamlessly integrated into different types of neural networks and various problems. ",
1247
+ "bbox": [
1248
+ 142,
1249
+ 869,
1250
+ 825,
1251
+ 911
1252
+ ],
1253
+ "page_idx": 8
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "1. For all authors... ",
1258
+ "bbox": [
1259
+ 214,
1260
+ 116,
1261
+ 341,
1262
+ 130
1263
+ ],
1264
+ "page_idx": 9
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See the scope and limitation section. \n(c) Did you discuss any potential negative societal impacts of your work? [N/A] \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [N/A] ",
1269
+ "bbox": [
1270
+ 238,
1271
+ 133,
1272
+ 825,
1273
+ 237
1274
+ ],
1275
+ "page_idx": 9
1276
+ },
1277
+ {
1278
+ "type": "text",
1279
+ "text": "2. If you are including theoretical results... ",
1280
+ "bbox": [
1281
+ 214,
1282
+ 239,
1283
+ 493,
1284
+ 255
1285
+ ],
1286
+ "page_idx": 9
1287
+ },
1288
+ {
1289
+ "type": "text",
1290
+ "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] ",
1291
+ "bbox": [
1292
+ 236,
1293
+ 257,
1294
+ 738,
1295
+ 289
1296
+ ],
1297
+ "page_idx": 9
1298
+ },
1299
+ {
1300
+ "type": "text",
1301
+ "text": "3. If you ran experiments... ",
1302
+ "bbox": [
1303
+ 214,
1304
+ 292,
1305
+ 393,
1306
+ 306
1307
+ ],
1308
+ "page_idx": 9
1309
+ },
1310
+ {
1311
+ "type": "text",
1312
+ "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] Main Codes are included in the supplemental material and a snippet is also given in the appendix(pdf supplemental material) \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [Yes] We ran each experiment five times and gave the mean and the standard deviation. \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [No] However, readers may easily estimate required resources because we used well-known data and models in most experiments. ",
1313
+ "bbox": [
1314
+ 238,
1315
+ 310,
1316
+ 825,
1317
+ 494
1318
+ ],
1319
+ "page_idx": 9
1320
+ },
1321
+ {
1322
+ "type": "text",
1323
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1324
+ "bbox": [
1325
+ 210,
1326
+ 500,
1327
+ 823,
1328
+ 513
1329
+ ],
1330
+ "page_idx": 9
1331
+ },
1332
+ {
1333
+ "type": "text",
1334
+ "text": "(a) If your work uses existing assets, did you cite the creators? [N/A] \n(b) Did you mention the license of the assets? [N/A] \n(c) Did you include any new assets either in the supplemental material or as a URL? [N/A] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1335
+ "bbox": [
1336
+ 238,
1337
+ 517,
1338
+ 825,
1339
+ 636
1340
+ ],
1341
+ "page_idx": 9
1342
+ },
1343
+ {
1344
+ "type": "text",
1345
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1346
+ "bbox": [
1347
+ 215,
1348
+ 638,
1349
+ 705,
1350
+ 654
1351
+ ],
1352
+ "page_idx": 9
1353
+ },
1354
+ {
1355
+ "type": "text",
1356
+ "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] ",
1357
+ "bbox": [
1358
+ 238,
1359
+ 657,
1360
+ 825,
1361
+ 744
1362
+ ],
1363
+ "page_idx": 9
1364
+ },
1365
+ {
1366
+ "type": "text",
1367
+ "text": "377 References ",
1368
+ "text_level": 1,
1369
+ "bbox": [
1370
+ 142,
1371
+ 763,
1372
+ 267,
1373
+ 780
1374
+ ],
1375
+ "page_idx": 9
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "[1] Martín Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S. Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Ian Goodfellow, Andrew Harp, Geoffrey Irving, Michael Isard, Yangqing Jia, Rafal Jozefowicz, Lukasz Kaiser, Manjunath Kudlur, Josh Levenberg, Dandelion Mané, Rajat Monga, Sherry Moore, Derek Murray, Chris Olah, Mike Schuster, Jonathon Shlens, Benoit Steiner, Ilya Sutskever, Kunal Talwar, Paul Tucker, Vincent Vanhoucke, Vijay Vasudevan, Fernanda Viégas, Oriol Vinyals, Pete Warden, Martin Wattenberg, Martin Wicke, Yuan Yu, and Xiaoqiang Zheng. TensorFlow: Largescale machine learning on heterogeneous systems, 2015. URL https://www.tensorflow. org/. Software available from tensorflow.org. ",
1380
+ "bbox": [
1381
+ 178,
1382
+ 786,
1383
+ 826,
1384
+ 912
1385
+ ],
1386
+ "page_idx": 9
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "[2] Karim Ahmed and Lorenzo Torresani. Connectivity learning in multi-branch networks. CoRR, abs/1709.09582, 2017. URL http://arxiv.org/abs/1709.09582. [3] Jose M. Alvarez and Mathieu Salzmann. Learning the number of neurons in deep networks. In NIPS, 2016. [4] Djork-Arné Clevert, Thomas Unterthiner, and Sepp Hochreiter. Fast and accurate deep network learning by exponential linear units (elus). In ICLR, 2016. [5] Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. In ICLR, 2019. [6] Babak Hassibi, David G. Stork, and Gregory J . Wolff. Optimal brain surgeon and general network pruning. In ICNN, 1993. [7] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. [8] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. In ECCV, 2016. [9] Andrew G. Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. CoRR, abs/1704.04861, 2017. URL https://arxiv. org/abs/1704.04861. [10] Gao Huang, Zhuang Liu, and Laurens van der Maaten. Densely connected convolutional networks. In CVPR, 2017. \n07 [11] Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017. \n09 [12] P. A. Knight. The sinkhorn-knopp algorithm: convergence and applications. SIAM Journal on Matrix Analysis and Applications, 30(1), 2008. [13] Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical Report, 2009. \n13 [14] Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. Imagenet classification with deep convolutional neural networks. In NIPS, 2012. [15] Gustav Larsson, Michael Maire, and Gregory Shakhnarovich. Fractalnet: Ultra-deep neural networks without residuals. In ICLR, 2017. [16] Y. LeCun, B. Boser, J. S. Denker, D. Henderson, R. E. Howard, W. Hubbard, and L. D. Jackel. Backpropagation applied to handwritten zip code recognition. Neural Computation, 1(4): 541–551, Dec 1989. ISSN 0899-7667. doi: 10.1162/neco.1989.1.4.541. \n420 [17] Yann LeCun, John S. Denker, and Sara A. Solla. Optimal brain damage. In NIPS, 1989. \n21 [18] Hanxiao Liu, Karen Simonyan, and Yiming Yang. Darts: Differentiable architecture search. In ICLR, 2019. \n23 [19] Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In ICCV, 2017. \n425 [20] Zhuang Liu, Mingjie Sun, Tinghui Zhou, Gao Huang, and Trevor Darrell. Rethinking the value of network pruning. In ICLR, 2019. \n27 [21] Neal Parikh and Stephen Boyd. Proximal algorithms. Found. Trends Optim., 1(3):127–239, January 2014. ISSN 2167-3888. doi: 10.1561/2400000003. URL http://dx.doi.org/10. 1561/2400000003. \n30 [22] Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. \n[23] R. Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. The annals of mathematicalstatistics, 35(2):876–879, 1964. \n[24] R. Sinkhorn and P. Knopp. Concerning nonnegative matrices and doubly stochastic matrices. Pacific Journal of Mathematics, 21(2), 1967. \n[25] Huizi Mao Song Han and William J. Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. In ICLR, 2016. \n[26] John Tran Song Han, Jeff Pool and William Dally. Learning both weights and connections for efficient neural network. In NIPS, 2015. \n[27] Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In CVPR, 2016. \n[28] Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society. Series B (Methodological), 58(1):267–288, 1996. \n[29] Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In NIPS, 2016. \n[30] Mitchell Wortsman, Ali Farhadi, and Mohammad Rastegari. Discovering neural wirings. In NeurIPS, 2019. \n[31] Xia Xiao, Zigeng Wang, and Sanguthevar Rajasekaran. Autoprune: Automatic network pruning by regularizing auxiliary parameters. In NeurIPS, 2019. \n[32] Saining Xie, Ross Girshick, Piotr Dollar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In CVPR, 2017. \n[33] Jaehong Yoon and Sung Ju Hwang. Combined group and exclusive sparsity for deep neural networks. In ICML, 2017. \n[34] Yang Zhou, Rong Jin, and Steven Chu–Hong Hoi. Exclusive lasso for multi-task feature selection. In AISTATS, 2010. ",
1391
+ "bbox": [
1392
+ 151,
1393
+ 79,
1394
+ 828,
1395
+ 919
1396
+ ],
1397
+ "page_idx": 10
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "",
1402
+ "bbox": [
1403
+ 166,
1404
+ 90,
1405
+ 828,
1406
+ 553
1407
+ ],
1408
+ "page_idx": 11
1409
+ }
1410
+ ]
parse/train/_x4A8IZ-rRv/_x4A8IZ-rRv_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/_x4A8IZ-rRv/_x4A8IZ-rRv_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ryetZ20ctX/ryetZ20ctX.md ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DEFENSIVE QUANTIZATION: WHEN EFFICIENCY MEETS ROBUSTNESS
2
+
3
+ Ji Lin
4
+ MIT
5
+ jilin@mit.edu
6
+
7
+ Chuang Gan MIT-IBM Watson AI Lab ganchuang@csail.mit.edu
8
+
9
+ Song Han
10
+ MIT
11
+ songhan@mit.edu
12
+
13
+ # ABSTRACT
14
+
15
+ Neural network quantization is becoming an industry standard to efficiently deploy deep learning models on hardware platforms, such as CPU, GPU, TPU, and FPGAs. However, we observe that the conventional quantization approaches are vulnerable to adversarial attacks. This paper aims to raise people’s awareness about the security of the quantized models, and we designed a novel quantization methodology to jointly optimize the efficiency and robustness of deep learning models. We first conduct an empirical study to show that vanilla quantization suffers more from adversarial attacks. We observe that the inferior robustness comes from the error amplification effect, where the quantization operation further enlarges the distance caused by amplified noise. Then we propose a novel Defensive Quantization (DQ) method by controlling the Lipschitz constant of the network during quantization, such that the magnitude of the adversarial noise remains non-expansive during inference. Extensive experiments on CIFAR-10 and SVHN datasets demonstrate that our new quantization method can defend neural networks against adversarial examples, and even achieves superior robustness than their fullprecision counterparts, while maintaining the same hardware efficiency as vanilla quantization approaches. As a by-product, DQ can also improve the accuracy of quantized models without adversarial attack.
16
+
17
+ # 1 INTRODUCTION
18
+
19
+ Neural network quantization (Han et al., 2015; Zhu et al., 2016; Jacob et al., 2017) is a widely used technique to reduce the computation and memory costs of neural networks, facilitating efficient deployment. It has become an industry standard for deep learning hardware. However, we find that the widely used vanilla quantization approaches suffer from unexpected issues — the quantized model is more vulnerable to adversarial attacks (Figure 1). Adversarial attack is consist of subtle perturbations on the input images that causes the deep learning models to give incorrect labels (Szegedy et al., 2013; Goodfellow et al.). Such perturbations are hardly detectable by human eyes but can easily fool neural networks. Since quantized neural networks are widely deployed in many safety-critical scenarios, e.g., autonomous driving (Amodei et al., 2016), the potential security risks cannot be neglected. The efficiency and latency in such applications are also important, so we need to jointly optimize them.
20
+
21
+ The fact that quantization leads to inferior adversarial robustness is counter intuitive, as small perturbations should be denoised with low-bit representations. Recent work (Xu et al., 2017) also demonstrates that quantization on input image space , i.e. color bit depth reduction, is quite effective to defend adversarial examples. A natural question then rises, why the quantization operator is yet effective when applied to intermediate DNN layers? We analyze that such issue is caused by the error amplification effect of adversarial perturbation (Liao et al., 2018) — although the magnitude of perturbation on the image is small, it is amplified significantly when passing through deep neural network (see Figure 3b). The deeper the layers are, the more significant such side effect is. Such amplification pushes values into a different quantization bucket, which is undesirable. We conducted empirical experiments to analyze how quantization influences the activation error between clean and adversarial samples (Figure 3a): when the magnitude of the noise is small, activation quantization is capable of reducing the errors by eliminating small perturbations; However, when the magnitude of perturbation is larger than certain threshold, quantization instead amplify the errors, which causes
22
+
23
+ ![](images/3477ecd5b2c43d16b40e89da24dec3e171a08e472afb5ecf20c37178321efd79.jpg)
24
+
25
+ (a) Quantization preserves the accuracy till 4-5 bits on clean image.
26
+
27
+ ![](images/dc57dfe77e70d9c157083068a6a5416fccbd3d6d2342eea03d00a27b807e59e5.jpg)
28
+ (b) Quantization no longer preserves the accuracy under adversarial attack (same legend as left).
29
+ Figure 1. Quantized neural network are more vulnerable to adversarial attack. Quantized models have no loss of accuracy on clean image ${ \geq } 5$ bits), but have significant loss of accuracy under adversarial attack compared to full precision models. Setup: VGG-16 and Wide ResNet on the test set of CIFAR-10 with FGSM attack.
30
+
31
+ the quantized model to make mistakes. We argue that this is the main reason causing the inferior robustness of the quantized models.
32
+
33
+ In this paper, we propose Defensive Quantization (DQ) that not only fixes the robustness issue of quantized models, but also turns activation quantization into a defense method that further boosts adversarial robustness. We are inspired by the success of image quantization in improving robustness. Intuitively, it will be possible to defend the attacks with quantization operations if we can keep the magnitude of the perturbation small. However, due to the error amplification effect of gradient based adversarial samples, it is non-trivial to keep the noise at a small scale during inference. Recent works (Cisse et al., 2017; Qian & Wegman, 2018) have attempted to make the network non-expansive by controlling the Lipschitz constant of the network to be smaller than 1, which has smaller variation change in its output than its input. In such case, the input noise will not propagate through the intermediate layers and impact the output, but attenuated. Our method is built on the theory. Defensive quantization not only quantizes feature maps into low-bit representations, but also controls the Lipschitz constant of the network, such that the noise is kept within a small magnitude for all hidden layers. In such case, we keep the noise small, as in the left zone of Figure 3a, quantization can reduce the perturbation error. The produced model with our method enjoys better security and efficiency at the same time.
34
+
35
+ Experiments show that Defensive Quantization (DQ) offers three unique advantages. First, DQ provides an effective way to boost the robustness of deep learning models while maintains the efficiency. Second, DQ is a generic building block of adversarial defense, which can be combined with other adversarial defense techniques to advance state-of-the-art robustness. Third, our method makes quantization itself easier thanks to the constrained dynamic range.
36
+
37
+ # 2 BACKGROUND AND RELATED WORK
38
+
39
+ # 2.1 MODEL QUANTIZATION
40
+
41
+ Neural network quantization (Han et al., 2015; Rastegari et al., 2016; Zhou et al., 2016; Courbariaux & Bengio, 2016; Zhu et al., 2016)) are widely adopted to enable efficient inference. By quantizing the network into low-bit representation, the inference of network requires less computation and less memory, while still achieves little accuracy degradation on clean images. However, we find that the quantized models suffer from severe security issues — they are more vulnerable against adversarial attacks compared to full-precision models, even when they have the same clean image accuracy. Adversarial perturbation is applied to the input image, thus it is most related to activation quantization (Dhillon et al., 2018). We carry out the rest of the paper using ReLU6 based activation quantization (Howard et al., 2017; Sandler et al., 2018), as it is computationally efficient and is widely adopted by modern frameworks like TensorFlow (Abadi et al., 2016). As illustrated in Figure 2, a quantized convolutional network is composed of several quantized convolution block, each containing a serial of $c o n \nu + B N + R e L U 6 +$ linear quantize operators. As the quantization operator has
42
+
43
+ ![](images/2e86d17f38d0c8264b4025ef957b06a76c9aef6e47037e726148ea0e6cd95bbd.jpg)
44
+ Figure 2. Defensive quantization with Lipschitz regularization.
45
+
46
+ 0 gradient almost everywhere, we followed common practice to use a STE (Bengio et al., 2013) function $y = x +$ stop gradient[Quantize $( x ) - x ]$ for gradient computation, which also eliminates the obfuscated gradient problem (Athalye et al., 2018).
47
+
48
+ Our work bridges two domains: model quantization and adversarial defense. Previous work (Galloway et al., 2017) claims binary quantized networks can improve the robustness against some attacks. However, the improvement is not substantial and they used randomized quantization, which is not practical for real deployment (need extra random number generators in hardware). It also causes one of the obfuscated gradient situations (Athalye et al., 2018): stochastic gradients, leading to a false sense of security. Rakin et al. (2018) tries to use quantization as an effective defense method. However, they employed Tanh-based quantization, which is not hardware friendly on fixed-point units due to the large overhead accessing look-up table. Even worse, according to our re-implementation, their method actually leads to severe gradient masking problem (Papernot et al., 2016a) during adversarial training, due to the nature of Tanh function (see A.1 for detail). As a result, the actual robustness of this work under black-box attack has no improvement over full-precision model and is even worse. Therefore, there is no previous work that are conducted under real inference setting to study the quantized robustness for both black-box and white-box. Our work aim to raise people’s awareness about the security of the actual deployed models.
49
+
50
+ # 2.2 ADVERSARIAL ATTACKS & DEFENSES
51
+
52
+ Given an image $\mathbf { X }$ , an adversarial attack method tries to find a small perturbation $\pmb { \Delta }$ with constraint $| | \Delta | | \leq \epsilon$ , such that the neural network gives different outputs for $\mathbf { X }$ and $\mathbf { X } ^ { a d v } \triangleq \mathbf { X } + \pmb { \Delta }$ . Here $\epsilon$ is a scalar to constrain the norm of the noise (e.g., $\epsilon = 8$ is commonly used when we represent colors from 0-255), so that the perturbation is hardly visible to human. For this paper we choose to study attacks defined under $| | \cdot | | _ { \infty }$ , where each element of the image can vary at most $\epsilon$ to form an adversary. We introduce several attack and defense methods used in our work in the following sections.
53
+
54
+ # 2.2.1 ATTACK METHODS
55
+
56
+ Random Perturbation (Random) Random perturbation attack adds a uniform sampled noise within $[ - \epsilon , \epsilon ]$ to the image, The method has no prior knowledge of the data and the network, thus is considered as the weakest attack method.
57
+
58
+ Fast Gradient Sign Method (FGSM) & R+FGSM Goodfellow et al. proposed a fast method to calculate the adversarial noise by following the direction of the loss gradient $\nabla _ { \mathbf { X } } L ( \mathbf { X } , y )$ , where $L ( \mathbf { X } , y )$ is the loss function for training (e.g. cross entropy loss). The adversarial samples are computed as:
59
+
60
+ $$
61
+ { \bf X } ^ { a d v } = { \bf X } + \epsilon * \mathrm { s i g n } ( \nabla _ { \bf X } { L } ( { \bf X } , y ) )
62
+ $$
63
+
64
+ As FGSM is an one-step gradient-based method, it can suffer from sharp curvature near the data points, leading a false direction of ascent. Therefore, Tramer et al. (2017) proposes to prepend FGSM \` by a random step to escape the non-smooth vicinity. The new method is called $\mathbf { R } { + } \mathbf { F } \mathbf { G } \mathbf { S } \mathbf { M }$ , defined as follows, for parameters $\epsilon$ and $\epsilon _ { 1 }$ (where $\epsilon _ { 1 } < \epsilon$ ):
65
+
66
+ $$
67
+ { \bf X } ^ { a d v } = { \bf X } ^ { \prime } + ( \epsilon - \epsilon _ { 1 } ) * \mathrm { s i g n } ( \nabla _ { \bf X } L ( { \bf X } , y ) ) , \mathrm { w h e r e } { \bf X } ^ { \prime } = { \bf X } + \epsilon _ { 1 } * \mathrm { s i g n } ( \mathcal { N } ( { \bf 0 } ^ { d } , { \bf I } ^ { d } ) ) .
68
+ $$
69
+
70
+ In our paper, we set $\epsilon _ { 1 } = \epsilon / 2$ following Tramer et al. (2017). \`
71
+
72
+ Basic Iterative Method (BIM) & Projected Gradient Descend (PGD) Kurakin et al. (2016) suggests a simple yet much stronger variant of FGSM by applying it multiple times iteratively with a
73
+
74
+ (a) Noise increases with perturbation strength. Quantization makes the slope deeper.
75
+
76
+ ![](images/19cea475a7e4e3a56bd367d0019961f8154bd7f1eb67f498c26a9e9523c87ff5.jpg)
77
+ (b) With conventional quantization, noise increases with layer index (the amplification effect).
78
+
79
+ ![](images/9493e4488590bc9fdd93d45255b35d302a1d3d742db0ef8a7ff73b17ab1709cb.jpg)
80
+
81
+ Figure 3. (a) Comparison of the noise introduced by adversarial-attack, with and without quantization. For small perturbation, quantization reduces the noise; for large perturbation, quantization magnifies the noise. (b) The noise amplification effect: the noise is amplified with layer index. Setup: conventional activation quantization for VGG-16, normalized difference of full-precision and low-precision activation.
82
+
83
+ small step size $\alpha$ . The method is called BIM, defined as:
84
+
85
+ $$
86
+ \mathbf { X } _ { 0 } ^ { a d v } = \mathbf { X } , \ \mathbf { X } _ { n + 1 } ^ { a d v } = \mathrm { c l i p } _ { \mathbf { X } } ^ { \epsilon } \{ \mathbf { X } _ { n } ^ { a d v } + \alpha \mathrm { s i g n } ( \nabla _ { \mathbf { X } } L ( \mathbf { X } _ { n } ^ { a d v } , y ) ) \} ,
87
+ $$
88
+
89
+ where $\mathrm { c l i p } _ { \mathbf { X } } ^ { \epsilon }$ means clipping the result image to be within the $\epsilon$ -ball of $\mathbf { X }$ . In (Madry et al., 2017), the BIM is prepended by a random start as in $\mathrm { R + F G S M }$ method. The resulting attack is called PGD, which proves to be a general first-order attack. In our experiments we used PGD for comprehensive experiments as it proves to be one of the strongest attack. Unlike Madry et al. (2017) that uses a fixed $\epsilon$ and $\alpha$ , we follow Kurakin et al. (2016); Song et al. (2017) to use $\alpha = 1$ and number of iterations of $\left\lfloor \operatorname* { m i n } ( \epsilon + 4 , 1 . 2 5 \epsilon ) \right\rfloor$ , so that we can test the model’s robustness under different strength of attacks.
90
+
91
+ # 2.2.2 DEFENSE METHODS
92
+
93
+ Current defense methods either preprocess the adversarial samples to denoise the perturbation (Xu et al., 2017; Song et al., 2017; Liao et al., 2018) or making the network itself robust (Warde-Farley & Goodfellow, 2016; Papernot et al., 2016b; Madry et al., 2017; Kurakin et al., 2016; Goodfellow et al.; Tramer et al., 2017). Here we introduced several defense methods related to our experiments. \`
94
+
95
+ Feature Squeezing $\mathrm { X u }$ et al. (2017) proposes to detect adversarial images by squeezing the input image. Specifically, the image is processed with color depth bit reduction (5 bits for our experiments) and smoothed by a $2 \times 2$ median filter. If the low resolution image is classified differently as the original image, then this image is detected as adversarial.
96
+
97
+ Adversarial Training Adversarial training (Madry et al., 2017; Kurakin et al., 2016; Goodfellow et al.; Tramer et al., 2017) is currently the strongest method for defense. By augmenting the training set \` with adversarial samples, the network learns to classify adversarial samples correctly. As adversarial Table 3Table 3FGSM can easily lead to gradient masking effect (Papernot et al., 2016a), we study adversarial $\mathrm { R + F G S M }$ 4-Bit Quantized 6-Bit Quantized 8-Bit Quantized Full Precision4-Bit Quantized 6-Bit Quantized 8-Bit Quantized Full Precision as in (Tramer et al., 2017). We also experimented with PGD training (Madry et al., 2017). \`
98
+
99
+ 00 0.46921857947162576 2.0000 0 2.0000 0.332712 2.0000 0 2.0000 0.28962.0000 0.46921857947162 2.0000 0 2.0000 0.332712 2.0000 0 2.0000 0.2896Experiments show that above defense methods can be combined with our DQ method to further
100
+ 000 0.7550861999431432 3.0000 0.6733 3.0000 0.6304687265237110000 3.0000 0.6050 3.0000 0.57743.0000 0.75508619994314 3.0000 0.6733 3.0000 0.6304687265237110000 3.0000 0.6050 3.0000 0.5774improve the robustness. The robustness has been tested under the aforementioned attack methods.
101
+
102
+ # 000 0.8435416802069752 5.0000 0.7445 5.0000 0.70679410870240300 5.0000 0.6733 5.0000 5.0000 0.8435416802069752 5.0000 0.7445 5.0000 0.70679410870240300 5.0000 0.6733 5.0000 3 C O N V E N T I O NA L N N Q UA N T I Z AT I O N I S N OT RO B U S T
103
+
104
+ 00 1.012114964143164 7.0000 1.005 7.0000 0.9032 7.0000 0.8307 7.0000 0.83257.0000 1.012114964143164 7.0000 1.005 7.0000 0.9032 7.0000 0.8307 7.0000 0.8325Conventional neural network quantization is more vulnerable to adversarial attacks. We experimented 000 0.9862844244360638 8.0000 0.9515 8.0000 0.86693617000095300 8.0000 0.80045166445080300 8.0000 0.7888.0000 0.9862844244360638 8.0000 0.9515 8.0000 0.86693617000095300 8.0000 0.80045166445080300 8.0000 0.788with VGG-16 (Simonyan & Zisserman, 2014) and a Wide ResNet (Zagoruyko & Komodakis, 2016) 00 1.0681920178474003 9.0000 1.0577 9.0000 0.977219 9.0000 0.8388344297226030 9.0000 0.81519.0000 1.0681920178474003 9.0000 1.0577 9.0000 0.977219 9.0000 0.8388344297226030 9.0000 0.8151of depth 28 and width 10 on CIFAR-10 (Krizhevsky & Hinton, 2009) dataset. We followed the 000 1.0993773912484481 10.000 1.1288 10.000 1.023 10.000 0.8246 10.000 0.758810.000 1.0993773912484481 10.000 1.1288 10.000 1.023 10.000 0.8246 10.000 0.7588training protocol as in (Zagoruyko & Komodakis, 2016). Adversarial samples are generated with a 000 1.1090918582426685 11.0000 1.1015 11.0000 11.0000 1.1090918582426685 11.0000 1.1015 11.0000 FGSM (Goodfellow et al.) attacker $\epsilon = 8$ 11.0000 0.8027 11.0000 0.71920199 11.0000 0.8027 11.0000 0.7192) on the entire test set. As in Figure 1, the clean image .00 1.207932074028837 12.00 1.1706 12.00 1.099673 12.00 0.827749 12.00 0.748612.00 1.207932074028837 12.00 1.1706 12.00 1.099673 12.00 0.827749 12.00 0.7486accuracy doesn’t significantly drop until the model is quantized to 4 bits (Figure 1a). However, under .00 1.2888898827224133 13.00 1.1754 13.00 1.097803 13.00 0.829665 13.00 0.7676 13.00 1.2888898827224133 13.00 1.1754 13.00 1.097803 13.00 0.829665 13.00 0.7676 adversarial attack, even with 5-bit quantization, the accuracy drastically decreased by $2 5 . 3 \%$ and $9 . 2 \%$ respectively. Although the full precision model’s accuracy has dropped, the quantized model’s accuracy dropped much harder, showing that the conventional quantization method is not robust. Clean image accuracy used to be the sole figure of merit to evaluate a quantized model. We show that even when the quantized model has no loss of performance on clean images, it can be much more easily fooled compared to full-precision ones, thus raising security concerns.
105
+
106
+ ![](images/a45d501e28e5bec0f019f31e9dc2930c1e74c4210393c9ed002f8d40c281ba44.jpg)
107
+ Figure 4. The error amplification effect prevents activation quantization from defending adversarial attacks.
108
+
109
+ Input image quantization, i.e., color bit depth reduction is an effective defense method ( $\mathrm { { X u } }$ et al., 2017). Counter intuitively, it does not work when applied to hidden layers, and even make the robustness worse. To understand the reason, we studied the effect of quantization w.r.t. different perturbation strength. We first randomly sample 128 images $\mathbf { X }$ from the test set of CIFAR-10, and generate corresponding adversarial samples $\mathbf { X } ^ { a d v }$ . The samples are then fed to the trained Wide ResNet model. To mimic different strength of activation perturbation, we vary the $\epsilon$ from 1 to 8. We inspected the activation after the first convolutional layer $f _ { 1 }$ $\mathrm { C o n v } + \mathrm { B N } + \mathrm { R e L U } 6 )$ , denoted as $\mathbf { A } _ { 1 } \ { \overset { \mathbf { \Gamma } } { = } } \ f _ { 1 } ( \mathbf { X } )$ and ${ \bf A } _ { 1 } ^ { a d v } = f _ { 1 } ( { \bf A } ^ { a d v } )$ . To measure the influence of perturbation, we define a normalized distance between clean and perturbed activation as:
110
+
111
+ $$
112
+ D ( \mathbf { A } , \mathbf { A } ^ { a d v } ) = | | \mathbf { A } - \mathbf { A } ^ { a d v } | | _ { 2 } / | | \mathbf { A } | | _ { 2 }
113
+ $$
114
+
115
+ We compare $D ( \mathbf { A } , \mathbf { A } ^ { a d v } )$ and $D ( { \mathrm { Q u a n t i z e } } ( \mathbf { A } ) , { \mathrm { Q u a n t i z e } } ( \mathbf { A } ^ { a d v } ) )$ , where Quantize indicates uniform quantization with 3 bits. The results are shown in Figure 3a. We can see that only when $\epsilon$ is small, quantization helps to reduce the distance by removing small magnitude perturbations. The distance will be enlarged when $\epsilon$ is larger than 3.
116
+
117
+ The above experiment explains the inferior robustness of the quantized model. We argue that such issue arises from the error amplification effect (Liao et al., 2018), where the relative perturbed distance will be amplified when the adversarial samples are fed through the network. As illustrated in Figure 4, the perturbation applied to the input image has very small magnitude compared to the image itself $\pm 8$ versus $0 - 2 5 5$ ), corresponding to the left zone of Figure 3a (desired), where quantization helps to denoise the perturbation. Nevertheless, the difference in activation is amplified as the inference carries on. If the perturbation after amplification is large enough, the situation corresponds to the right zone (actual) of Figure 3a, where quantization further increases the normalized distance. Such phenomenon is also observed in the quantized VGG-16. We plot the normalized distance of each convolutional layer’s input in Figure 3b. The fewer bits in the quantized model, the more severe the amplification effect.
118
+
119
+ # 4 DEFENSIVE QUANTIZATION
120
+
121
+ Given the robustness limitation of conventional quantization technique, we propose Defensive Quantization (DQ) to defend the adversarial examples for quantized models. DQ suppresses the noise amplification effect, keeping the magnitude of the noise small, so that we can arrive at the left zone (Figure 3a, desired) where quantization helps robustness instead of making it worse.
122
+
123
+ We control the neural network’s Lipschitz constant (Szegedy et al., 2013; Bartlett et al., 2017; Cisse et al., 2017) to suppress network’s amplification effect. Lipschitz constant describes: when input changes, how much does the output change correspondingly. For a function $f : X \to Y$ , if it satisfies
124
+
125
+ $$
126
+ D _ { Y } ( f ( x _ { 1 } ) , f ( x _ { 2 } ) ) \leq k D _ { X } ( x _ { 1 } , x _ { 2 } ) , \ \forall x _ { 1 } , x _ { 2 } \in X
127
+ $$
128
+
129
+ for a real-valued $k \geq 0$ and some metrics $D _ { X }$ and $D _ { Y }$ , then we call $f$ Lipschitz continuous and $k$ is the known as the Lipschitz constant of $f$ . If we consider a network $f$ with clean inputs $x _ { 1 } = \mathbf { X }$ and corresponding adversarial inputs $x _ { 2 } = \mathbf { X } _ { a d v }$ , the error amplification effect can be controlled if we
130
+
131
+ Table 1. The clean and adversarial accuracy of Wide ResNet on CIFAR-10 test set. We compare the accuracy of full-precision and quantized models. With our DQ method, we not only eliminate the robustness gap between full-precision and quantized models, but also improve the robustness over full-precision ones. The accuracy gain from quantization compared to the full-precision model (Quantize Gain) has gradually been improved as $\beta$ increases. Bold and underline numbers are the first and second highest accuracy at each row.
132
+
133
+ <table><tr><td rowspan="2">Method</td><td rowspan="2">Acc.</td><td rowspan="2">Full Prec.</td><td colspan="5">Quantize Bit</td><td rowspan="2">Quantize Gain</td><td rowspan="2">Best Acc.</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td rowspan="2">Vanilla</td><td>clean</td><td>94.8</td><td>42.0</td><td>84.9</td><td>92.8</td><td>93.9</td><td>94.7</td><td rowspan="2">-9.1</td><td rowspan="2">39.3</td></tr><tr><td>adv.</td><td>39.3</td><td>9.0</td><td>8.5</td><td>14.1</td><td>19.0</td><td>30.2</td></tr><tr><td rowspan="2">DQ (β =3e-4)</td><td>clean</td><td>95.3</td><td>95.2</td><td>95.3</td><td>95.1</td><td>95.1</td><td>95.1</td><td rowspan="2">+1.4</td><td rowspan="2">43.2</td></tr><tr><td>adv.</td><td>41.8</td><td>43.2</td><td>41.1</td><td>40.1</td><td>39.8</td><td>39.3</td></tr><tr><td rowspan="2">DQ (β =6e-4)</td><td>clean</td><td>95.6</td><td>95.7</td><td>95.2</td><td>95.4</td><td>95.6</td><td>95.5</td><td rowspan="2">+2.6</td><td rowspan="2">48.3</td></tr><tr><td>adv.</td><td>45.7</td><td>48.3</td><td>47.9</td><td>43.8</td><td>43.9</td><td>44.6</td></tr><tr><td rowspan="2">DQ (β =1e-3)</td><td>clean</td><td>95.9</td><td>95.8</td><td>95.6</td><td>95.6</td><td>95.8</td><td>95.8</td><td rowspan="2">+2.7</td><td rowspan="2">51.8</td></tr><tr><td>adv.</td><td>49.1</td><td>51.3</td><td>50.4</td><td>51.3</td><td>49.8</td><td>51.8</td></tr></table>
134
+
135
+ have a small Lipschitz constant $k$ (in optimal situation we can have $k \leq 1$ ). In such case, the error introduced by adversarial perturbation will not be amplified, but reduced. Specifically, we consider a feed-forward network composed of a serial of functions:
136
+
137
+ $$
138
+ f ( x ) = ( \phi _ { l } \circ \phi _ { l - 1 } \circ \ldots \circ \phi _ { 1 } ) ( x )
139
+ $$
140
+
141
+ where $\phi _ { i }$ can be a linear layer, convolutional layer, pooling, activation functions, etc. Denote the Lipschitz constant of a function $f$ as $L i p ( f )$ , then for the above network we have
142
+
143
+ $$
144
+ L i p ( f ) \leq \prod _ { i = 1 } ^ { L } L i p ( \phi _ { i } )
145
+ $$
146
+
147
+ As the Lipschitz constant of the network is the product of its individual layers’ Lipschitz constants, $L i p ( f )$ can grow exponentially if $L i p ( \phi _ { i } ) > 1$ . This is the common case for normal network training (Cisse et al., 2017), and thus the perturbation will be amplified for such a network. Therefore, to keep the Lipschitz constant of the whole network small, we need to keep the Lipschitz constant of each layer $L i p ( \phi _ { i } ) \leq 1$ . We call a network with $L i p ( \phi _ { i } ) \le 1 , \forall i = 1 , . . . , L$ a non-expansive network.
148
+
149
+ We describe a regularization term to keep the Lipschitz constant small. Let us first consider linear layers with weight $\mathbf { W } \in \mathbb { R } ^ { c _ { o u t } \times c _ { i n } }$ under $| | \cdot | | _ { 2 }$ norm. The Lipschitz constant is by definition the spectral norm of $W$ : $\rho ( \mathbf { W } )$ , i.e., the maximum singular value of W. Computing the singular values of each weight matrix is not computationally feasible during training. Luckily, if we can keep the weight matrix row orthogonal, the singular values are by nature equal to 1, which meets our non-expansive requirements. Therefore we transform the problem of keeping $\rho ( \mathbf { W } ) \leq 1$ into keeping $\mathbf { W } ^ { \hat { T } } \mathbf { W } \approx \mathbf { I }$ , where $\mathbf { I }$ is the identity matrix. Naturally, we introduce a regularization term $| | \mathbf { W } ^ { \hat { T } } \mathbf { \check { W } } - \mathbf { I } | |$ , where $I$ is the identity matrix. Following (Cisse et al., 2017), for convolutional layers with weight $\mathbf { W } \in \mathbb { R } ^ { c _ { o u t } \times c _ { i n } \times k \times k }$ , we can view it as a two-dimension matrix of shape $\dot { \mathbf { W } } \in \mathbb { R } ^ { c _ { o u t } \times ( c _ { i n } \bar { k } k ) }$ and apply the same regularization. The final optimization objective is:
150
+
151
+ $$
152
+ \mathcal { L } = \mathcal { L } _ { C E } + \frac { \beta } { 2 } \sum _ { \mathbf { W } _ { l } \in \mathbb { W } } | | \mathbf { W } _ { l } ^ { T } \mathbf { W } _ { l } - \mathbf { I } | | ^ { 2 }
153
+ $$
154
+
155
+ where $\mathcal { L } _ { C E }$ is the original cross entropy loss and $\mathbb { W }$ denotes all the weight matrices of the neural network. $\beta$ is the weighting to adjust the relative importance. The above discussion is based on simple feed forward networks. For ResNets in our experiments, we also follow Cisse et al. (2017) to modify the aggregation layer as a convex combination of their inputs, where the 2 coefficients are updated using specific projection algorithm (see (Cisse et al., 2017) for details).
156
+
157
+ Our Defensive Quantization is illustrated in Figure 2. The key part is the regularization term, which suppress the noise amplification effect by regularizing the Lipschitz constant. As a result, the perturbation at each layer is kept within a certain range, the adversarial noise won’t propagate. Our method not only fixes the drop of robustness induced by quantization, but also takes quantization as a defense method to further increase the robustness. Therefore it’s named Defensive Quantization.
158
+
159
+ ![](images/7d1866fcf015dc1809459d67bc48aaa2fbaefc65c09b355642a345cc822367f9.jpg)
160
+ Figure 5. The white-box and black-box robustness are consistent: vanilla quantization leads to significant robustness drop, while DQ can bridge the gap and improve the robustness, especially with lower bits $( \mathrm { b i t } { = } 1 )$ ). Setup: white-box and black-box robustness of Wide ResNet with vanilla quantization and defensive quantization.
161
+
162
+ # 5 EXPERIMENTS
163
+
164
+ Our experiments demonstrate the following advantages of Defensive Quantization. First, DQ can retain the robustness of a model when quantized with low-bit. Second, DQ is a general and effective defense method under various scenarios, thus can be combined with other defensive techniques to further advance state-of-the-art robustness. Third, as a by-product, DQ can also improve the accuracy of training quantized models on clean images without attacks, since it limits the dynamic range.
165
+
166
+ # 5.1 FIXING ROBUSTNESS DROP
167
+
168
+ Setup: We conduct experiments with Wide ResNet (Zagoruyko & Komodakis, 2016) of $2 8 \times 1 0$ on the CIFAR-10 dataset (Krizhevsky & Hinton, 2009) using ReLU6 based activation quantization, with number of bits ranging from 1 to 5. All the models are trained following (Zagoruyko & Komodakis, 2016) with momentum SGD for 200 epochs. The adversarial samples are generated using FGSM attacker with $\epsilon = 8$ .
169
+
170
+ Result: The results are presented in Table 1. For vanilla models, though the adversarial robustness increases with the number of bits, i.e., the models closer to full-precision one has better robustness, the best quantized model still has inferior robustness by $- 9 . 1 \%$ . While with our Defensive Quantization, the quantized models have better robustness than full-precision counterparts. The robustness is better when the number of bits are small, since it can de-noise larger adversarial perturbations. We also find that the robustness is generally increasing as $\beta$ gets larger, since the regularization of Lipschitz constant itself keeps the noise smaller at later layers. At the same time, the quantized models consistently achieve better robustness. The robustness of quantized model also increases with $\beta$ . We conduct a detailed analysis of the effect of $\beta$ in Section B. The conclusion is: (1) conventional quantized models are less robust. (2) Lipschitz regularization makes the model robust. (3) Lipschitz regularization $^ +$ quantization makes model even more robust.
171
+
172
+ As shown in (Athalye et al., 2018), many of the defense methods actually lead to obfuscated gradient, providing a false sense of security. Therefore it is important to check the model’s robustness under black-box attack. We separately trained a substitute VGG-16 model on the same dataset to generate adversarial samples, as it was proved to have the best transferability (Su et al., 2018). The results are presented in Figure 5. Trends of white-box and black-box attack are consistent. Vanilla quantization leads to inferior black-box robustness, while with our method can further improve the models’ robustness. As the robustness gain is consistent for both white-box and black-box setting, our method does not suffer from gradient masking.
173
+
174
+ # 5.2 DEFEND WITH DEFENSIVE QUANTIZATION
175
+
176
+ In this section, we show that we can combine Defensive Quantization with other defense techniques to achieve state-of-the-art robustness.
177
+
178
+ Table 2. SVHN experiments tested with $\epsilon = 2 / 8 / 1 6$ . (B) indicates black-box attack.
179
+
180
+ <table><tr><td>Training Technique</td><td>Clean</td><td>Random</td><td>FGSM</td><td>R+FGSM</td><td>PGD</td><td>FGSM(B)</td><td>PGD(B)</td></tr><tr><td>Normal</td><td>96.8</td><td>97/97/96</td><td>74/42/26</td><td>86/55/35</td><td>77/05/00</td><td>90/62/40</td><td>92/58/30</td></tr><tr><td>Normal + DQ</td><td>96.7</td><td>96/96/96</td><td>77/45/31</td><td>87/59/40</td><td>79/10/00</td><td>90/63/42</td><td>92/60/31</td></tr><tr><td>Feature Squeezing</td><td>96.3</td><td>96/96/95</td><td>69/34/20</td><td>84/48/28</td><td>72/03/00</td><td>89/61/38</td><td>91/56/27</td></tr><tr><td>Feature Squeezing + DQ</td><td>96.2</td><td>96/96/96</td><td>75/42/28</td><td>86/56/36</td><td>77/06/00</td><td>90/63/40</td><td>92/59/30</td></tr><tr><td>Adversarial R+FGSM</td><td>96.6</td><td>97/96/96</td><td>84/53/38</td><td>91/70/57</td><td>87/30/06</td><td>93/74/54</td><td>94/83/72</td></tr><tr><td>Adversarial R+FGSM+DQ</td><td>96.6</td><td>97/96/95</td><td>88/59/40</td><td>93/77/61</td><td>91/47/17</td><td>94/80/61</td><td>95/89/84</td></tr></table>
181
+
182
+ Setup: We conducted experiments on the Street View House Number dataset (SVHN) (Netzer et al., 2011) and CIFAR-10 dataset (Krizhevsky & Hinton, 2009). Since adversarial training is time consuming, we only use the official training set for experiments. CIFAR-10 is another widely used dataset containing 50,000 training samples and 10,000 testing samples of size $3 2 \times 3 2$ . For both datasets, we divide the pixel values by 255 as a pre-processing step.
183
+
184
+ Following (Athalye et al., 2018; Cisse et al., 2017; Madry et al., 2017), we used Wide ResNet (Zagoruyko & Komodakis, 2016) models in our experiments as it is considered as the standard model on the dataset. We used depth 28 and widening factor 10 for CIFAR-10, and depth 16 and widening factor 4 for SVHN. We followed the training protocol in (Zagoruyko & Komodakis, 2016) that uses a SGD optimizer with momentum $_ { 1 = 0 . 9 }$ . For CIFAR-10, the model is trained for 200 epochs with initial learning rate 0.1, decayed by a factor of 0.2 at 60, 120 and 160 epochs. For SVHN dataset, the model is trained for 160 epochs, with initial learning rate 0.01, decayed by 0.1 at 80 and 120 epochs. For DQ, we used bi $\mathrm { = } 1$ and $\beta = 2 \mathrm { e } { - 3 }$ as it offers the best robustness (see Section B).
185
+
186
+ We combine DQ with other defense methods to further boost the robustness. For Feature Squeezing (Xu et al., 2017), we used 5 bit for image color reduction, followed by a $2 \times 2$ median filter. As adversarial FGSM training leads to gradient masking issue (Tramer et al., 2017) (see A.2 for our \` experiment), we used the variant adversarial $\mathrm { R + F G S M }$ training. To avoid over-fitting into certain $\epsilon$ , we randomly sample $\epsilon$ using $\epsilon ^ { \prime } \sim \mathcal { N } ( 0 , \delta ) , \epsilon = \mathrm { c l i p } ^ { [ 0 , 2 \delta ] } ( \mathrm { a b s } ( \epsilon ^ { \prime } ) )$ . Specifically we used $\delta = 8$ to cover $\epsilon$ from 0-16. During test time, the $\epsilon$ is set to a fixed value (2/8/16). We also conducted adversarial PGD training. Following (Kurakin et al., 2016; Song et al., 2017), during training we sample random $\epsilon$ as in $\mathrm { R + F G S M }$ setting, and generate adversarial samples using step size 1 and number of iterations $\left\lfloor \operatorname* { m i n } ( \epsilon + 4 , 1 . 2 5 \epsilon ) \right\rfloor$ .
187
+
188
+ Result: The results are presented in Table 2 and Table 3, where $\mathbf { ( B ) }$ indicates black-box attack with a seperately trained VGG-16 model. The bold number indicates the best result in its column. We observe that for all normal training, feature squeezing and adversarial training settings, our DQ method can further improve the model’s robustness. Among all the defenses, adversarial training provides the best performance against various attacks, epecially adversarial $\mathrm { R + F G S M }$ training. While white box PGD attack is generally the strongest attack in our experiments. Our DQ method also consistently improves the black-box robustness and there is no sign of gradient masking. Thus DQ proves to be an effective defense for various white-box and black-box attacks.
189
+
190
+ # 5.3 IMPROVE THE TRAINING OF QUANTIZED MODELS
191
+
192
+ As a by-product of our method, Defensive Quantization can even improve the accuracy of quantized models on clean images without attack, making it a beneficial drop-in substitute for normal quantization procedures. Due to conventional quantization method’s amplification effect, the distribution of activation can step over the truncation boundary (0-6 for ReLU6, 0-1 for ReLU1), which makes the optimization difficult. DQ explicitly add a regularization to shrink the dynamic range of activation, so that it is fitted within the truncation range. To demonstrate our hypothesis, we experimented with ResNet and CIFAR-10. We quantized the activation with 4-bit (because NVIDIA recently introduced INT4 in Turing architecture) using ReLU6 and ReLU1 respectively. Vanilla quantization and DQ training are conducted for comparison. As shown in Table 4, with vanilla quantization, ReLU1 model has around $1 \%$ worse accuracy than ReLU6 model, although they are mathematically equal if we multiply the previous BN scaling by 1/6 and next convolution weight by 6. It demonstrates that improper truncation function and range will lead to training difficulty. While with DQ training, both model has improved accuracy compared to vanilla quantization, and the gap between ReLU1 model and ReLU6 model is filled, making quantization easier regardless of truncation range.
193
+
194
+ Table 3. CIFAR-10 Experiments tested with $\epsilon = 2 / 8 / 1 6$ . (B) indicates black-box attack.
195
+
196
+ <table><tr><td>Training Technique</td><td>Clean</td><td>Random</td><td>FGSM</td><td>R+FGSM</td><td>PGD</td><td>FGSM(B)</td><td>PGD(B)</td></tr><tr><td>Normal</td><td>94.8</td><td>95/91/77</td><td>59/39/29</td><td>72/37/17</td><td>56/01/00</td><td>88/63/36</td><td>90/64/42</td></tr><tr><td>Normal + DQ</td><td>95.9</td><td>96/94/84</td><td>68/53/42</td><td>77/50/30</td><td>62/04/00</td><td>84/59/40</td><td>87/50/27</td></tr><tr><td>Feature Squeezing</td><td>94.1</td><td>94/92/81</td><td>61/35/27</td><td>76/40/21</td><td>64/02/00</td><td>87/62/30</td><td>89/70/42</td></tr><tr><td>Feature Squeezing + DQ</td><td>94.9</td><td>95/93/82</td><td>66/48/33</td><td>77/51/29</td><td>66/06/01</td><td>87/62/29</td><td>90/70/43</td></tr><tr><td>Adversarial R+FGSM</td><td>91.6</td><td>92/91/91</td><td>81/52/38</td><td>87/69/48</td><td>84/43/11</td><td>92/89/85</td><td>92/91/89</td></tr><tr><td>Adversarial R+FGSM+DQ</td><td>94.0</td><td>94/93/93</td><td>85/63/51</td><td>90/74/58</td><td>87/50/22</td><td>93/91/87</td><td>94/92/92</td></tr><tr><td>Adversarial PGD</td><td>86.6</td><td>86/86/86</td><td>74/46/31</td><td>79/63/46</td><td>76/44/20</td><td>84/83/81</td><td>84/83/83</td></tr><tr><td>Adversarial PGD + DQ</td><td>87.5</td><td>87/87/87</td><td>79/53/36</td><td>83/69/52</td><td>81/50/22</td><td>87786/82</td><td>87/86/86</td></tr></table>
197
+
198
+ Table 4. DQ method improves the training of normal quantized models by limiting the dynamic range of activation. With conventional quantization, ReLU1 suffers from inferior performance than ReLU6. While with DQ, the gap is fixed, ReLU1 and ReLU6 quantized models achieve similar accuracy.
199
+
200
+ <table><tr><td></td><td>ReLU1</td><td>ReLU6</td><td>Difference</td></tr><tr><td>Vanilla Quantization</td><td>93.49%</td><td>94.41%</td><td>-0.92%</td></tr><tr><td>Defensive Quantization</td><td>95.14%</td><td>95.09%</td><td>0.05%</td></tr></table>
201
+
202
+ # 6 CONCLUSION
203
+
204
+ In this work, we aim to raise people’s awareness about the security of the quantized neural networks, which is widely deployed in GPU/TPU/FPGAs, and pave a possible direction to bridge two important areas in deep learning: efficiency and robustness. We connect these two domains by designing a novel Defensive Quantization (DQ) module to defend adversarial attacks while maintain the efficiency. Experimental results on two datasets validate that the new quantization method can make the deep learning models be safely deployed on mobile devices.
205
+
206
+ # ACKNOWLEDGMENTS
207
+
208
+ We acknowledge Google and Amazon providing us the cloud computing resources.
209
+
210
+ REFERENCES
211
+
212
+ Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: a system for large-scale machine learning. In OSDI, volume 16, pp. 265–283, 2016.
213
+
214
+ Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, and Dan Mane.´ Concrete problems in ai safety. arXiv preprint arXiv:1606.06565, 2016.
215
+
216
+ 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.
217
+
218
+ Peter L Bartlett, Dylan J Foster, and Matus J Telgarsky. Spectrally-normalized margin bounds for neural networks. In Advances in Neural Information Processing Systems, pp. 6240–6249, 2017.
219
+
220
+ Yoshua Bengio, Nicholas Leonard, and Aaron Courville. Estimating or propagating gradients through ´ stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
221
+
222
+ Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. arXiv preprint arXiv:1704.08847, 2017.
223
+
224
+ Matthieu Courbariaux and Yoshua Bengio. Binarynet: Training deep neural networks with weights and activations constrained to+ 1 or-1. arXiv preprint arXiv:1602.02830, 2016.
225
+
226
+ Guneet S Dhillon, Kamyar Azizzadenesheli, Zachary C Lipton, Jeremy Bernstein, Jean Kossaifi, Aran Khanna, and Anima Anandkumar. Stochastic activation pruning for robust adversarial defense. arXiv preprint arXiv:1803.01442, 2018.
227
+
228
+ Angus Galloway, Graham W Taylor, and Medhat Moussa. Attacking binarized neural networks. arXiv preprint arXiv:1711.00449, 2017.
229
+
230
+ Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples (2014). arXiv preprint arXiv:1412.6572.
231
+
232
+ Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015.
233
+
234
+ Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017.
235
+
236
+ Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. arXiv preprint arXiv:1712.05877, 2017.
237
+
238
+ Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
239
+
240
+ Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016.
241
+
242
+ Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Jun Zhu, and Xiaolin Hu. Defense against adversarial attacks using high-level representation guided denoiser. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1778–1787, 2018.
243
+
244
+ Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017.
245
+
246
+ 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, volume 2011, pp. 5, 2011.
247
+
248
+ NVIDIA. Nvidia turing architecture whitepaper. URL https://www.nvidia.com/ content/dam/en-zz/Solutions/design-visualization/technologies/ turing-architecture/NVIDIA-Turing-Architecture-Whitepaper.pdf.
249
+
250
+ Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against deep learning systems using adversarial examples. arXiv preprint, 2016a.
251
+
252
+ Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In 2016 IEEE Symposium on Security and Privacy (SP), pp. 582–597. IEEE, 2016b.
253
+
254
+ Haifeng Qian and Mark N Wegman. L2-nonexpansive neural networks. arXiv preprint arXiv:1802.07896, 2018.
255
+
256
+ Adnan Siraj Rakin, Jinfeng Yi, Boqing Gong, and Deliang Fan. Defend deep neural networks against adversarial examples via fixed anddynamic quantized activation functions. arXiv preprint arXiv:1807.06714, 2018.
257
+
258
+ Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016.
259
+
260
+ Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Inverted residuals and linear bottlenecks: Mobile networks for classification, detection and segmentation. arXiv preprint arXiv:1801.04381, 2018.
261
+
262
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
263
+
264
+ Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. arXiv preprint arXiv:1710.10766, 2017.
265
+
266
+ Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy?–a comprehensive study on the robustness of 18 deep image classification models. arXiv preprint arXiv:1808.01688, 2018.
267
+
268
+ Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013.
269
+
270
+ Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc- \` Daniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017.
271
+
272
+ David Warde-Farley and Ian Goodfellow. 11 adversarial perturbations of deep neural networks. Perturbations, Optimization, and Statistics, pp. 311, 2016.
273
+
274
+ Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017.
275
+
276
+ Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
277
+
278
+ Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1606.06160, 2016.
279
+
280
+ Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained ternary quantization. arXiv preprint arXiv:1612.01064, 2016.
281
+
282
+ # A GRADIENT MASKING OF OTHER METHODS
283
+
284
+ # A.1 TANH-BASED ACTIVATION QUANTIZATION LEADS TO FAKE SECURITY
285
+
286
+ Rakin et al. (2018) tried to use activation quantization as a defense method against adversarial samples. According to their experiments, simply Tanh based activation quantization can greatly improve the model’s robustness under PGD adversarial training setting. We reproduced their experiments by training a ResNet-18 model with PGD adversarial training on CIFAR-10 following Madry et al. (2017). To make a comparison, we also trained a full precision model and a ReLU6 quantized model following same setting. All the quantized models use bi $^ { = 2 }$ . We tested the trained model using PGD attack by Madry et al. (2017) under both white-box and black-box setting. We use a VGG-16 model separately trained with PGD adversarial training as the black-box attacker. The results are provided in Table 5.
287
+
288
+ Table 5. Tanh-based quantization improves white-box robustness, while suffers from inferior black-box robustness compared to full-precision model. The white-box accuracy is even higher than black-box, suggesting gradient masking. Setup: white-box and black-box robustness of PGD adversarially trained ResNet-18 on CIFAR-10. Quantization uses 2 bits.
289
+
290
+ <table><tr><td></td><td>Clean Acc.</td><td>White-Box Acc.</td><td>Black-Box Acc.</td></tr><tr><td>Full-Precision</td><td>83.47%</td><td>50.51%</td><td>65.58%</td></tr><tr><td>Tanh Quantized</td><td>81.60%</td><td>71.03%</td><td>61.57%</td></tr><tr><td>ReLU6 Quantized</td><td>78.97%</td><td>48.90%</td><td>59.44%</td></tr></table>
291
+
292
+ Our white-box result is consistent with (Rakin et al., 2018), where Tanh based quantizaion with PGD training gives much higher white-box accuracy compared to the full precision model. However, we can see that the black-box robustness decreases. Worse still, the black-box attack successful rate is even lower than white-box, which is abnormal since black-box attack is generally weaker than white-box. This phenomenon indicates severe gradient masking problem (Papernot et al., 2016a; Athalye et al., 2018), which gives a false sense of security. As a comparison, we also trained a ReLU6 quantized model. With ReLU6 quantization, there is no sign of gradient masking, nor improvement in robustness, indicating that gradient masking problem majorly comes from Tanh activation function. Actually, ReLU6 quantized model has slightly worse robustness.
293
+
294
+ Therefore we conclude that simple quantization cannot help to improve robustness. Instead, it leads to inferior robustness.
295
+
296
+ # A.2 ADVERSARIAL FGSM TRAINING CAUSES GRADIENT MASKING
297
+
298
+ Here we demonstrate that FGSM adversarial training leads to significant gradient masking problem, while $\mathrm { R + F G S M }$ fixes such issues. We trained a Wide ResNet using adversarial FGSM and adversarial $\mathrm { R + F G S M }$ respectively. Then the model is tested using FGSM with $\epsilon = 8$ under white-box and black-box setting (VGG-16 as substitute). The results are shown in Table
299
+
300
+ Table 6. White-box and black-box robustness of FGSM/R $+$ FGSM adversarially trained Wide ResNet on CIFAR-10.
301
+
302
+ <table><tr><td></td><td>Clean Acc.</td><td>White-Box Acc.</td><td>Black-Box Acc.</td></tr><tr><td>Adversarial FGSM</td><td>94.55%</td><td>94.18%</td><td>51.65%</td></tr><tr><td>Adversarial R+FGSM</td><td>91.61%</td><td>51.65%</td><td>87.39%</td></tr></table>
303
+
304
+ We can clearly see the same gradient masking effect. For adversarial FGSM training, it gives much higher white box robustness than $\mathrm { R + F G S M }$ adversarial training, while the black-box robustness is much worse. To avoid gradient masking, we thus use $\mathrm { R + F G S M }$ adversarial training instead.
305
+
306
+ # B HYPER-PARAMETERS: $\beta$ STUDY
307
+
308
+ ![](images/24334ee8c75cd66a51ecbe9b9fd106ccbe2d6b0b31ef07fd3ca2ab77d2e2b576.jpg)
309
+ Figure 6. Clean and adversarial accuracy of 4-bit quantized Wide ResNet w.r.t. different $\beta$
310
+
311
+ As observed in Section 5.1, the adversarial robustness of the model generally increases as $\beta$ gets larger. Here we aim to find what is the optimal $\beta$ for our experiment. We took 4-bit quantized Wide ResNet for example. As shown in Figure 6, the adversarial accuracy first gets larger as $\beta$ increases, and slowly goes down afterwards, reaching peak performance at $\beta = 0 . 0 0 2$ . The clean accuracy is more stable. At the first stage, as regularization gets stronger, the effect of noise amplify is suppressed more. While for the second stage, the training suffers from a too strong regularization. Therefore, we used a $\beta = 0 . 0 0 2$ for our experiments unless specified.
312
+
313
+ # C VISUALIZE SAMPLES AND PREDICTIONS
314
+
315
+ We visualize some of the clean and adversarial samples from CIFAR-10 test set, and the corresponding prediction for full precision model (FP), vanilla 4-bit quantized model (VQ) and our 4-bit Defensive Quantization model (DQ), as 4-bit quantization is now now supported by Tensor Cores with NVIDIA’s Turing Architecture (NVIDIA). Predicted class and probability is provided. Compared to FP and DQ, VQ has worse robustness by misclassifying more adversarial samples (sample 1, 2, 4, 6). Our DQ model enjoys better robustness than FP model in two aspects: 1. our DQ model succeeds to defend some of the attacks when FP failed (sample 5, 7); 2. our DQ model has a better confidence for true label compared to FP model when both succeeds to defend (sample 1, 4, 6). Even when all models fail to defend, our DQ model has the lowest confidence for the misclassified class (sample 3, 8).
316
+
317
+ ![](images/2156801777e07b0beb707dcc469d27461342850f85114ac60ee0e622f52c6f90.jpg)
318
+ Figure 7. Visualization of adversarial samples and the corresponding predictions (label and probability). FP: full-precision model; VQ: vanilla 4-bit quantized model; DQ: our 4-bit Defensive Quantization model
parse/train/ryetZ20ctX/ryetZ20ctX_content_list.json ADDED
@@ -0,0 +1,1664 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DEFENSIVE QUANTIZATION: WHEN EFFICIENCY MEETS ROBUSTNESS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 173,
8
+ 99,
9
+ 665,
10
+ 147
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Ji Lin \nMIT \njilin@mit.edu ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 313,
21
+ 212
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Chuang Gan MIT-IBM Watson AI Lab ganchuang@csail.mit.edu ",
28
+ "bbox": [
29
+ 361,
30
+ 170,
31
+ 588,
32
+ 212
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Song Han \nMIT \nsonghan@mit.edu ",
39
+ "bbox": [
40
+ 633,
41
+ 171,
42
+ 782,
43
+ 212
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "ABSTRACT ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 452,
53
+ 250,
54
+ 544,
55
+ 263
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "Neural network quantization is becoming an industry standard to efficiently deploy deep learning models on hardware platforms, such as CPU, GPU, TPU, and FPGAs. However, we observe that the conventional quantization approaches are vulnerable to adversarial attacks. This paper aims to raise people’s awareness about the security of the quantized models, and we designed a novel quantization methodology to jointly optimize the efficiency and robustness of deep learning models. We first conduct an empirical study to show that vanilla quantization suffers more from adversarial attacks. We observe that the inferior robustness comes from the error amplification effect, where the quantization operation further enlarges the distance caused by amplified noise. Then we propose a novel Defensive Quantization (DQ) method by controlling the Lipschitz constant of the network during quantization, such that the magnitude of the adversarial noise remains non-expansive during inference. Extensive experiments on CIFAR-10 and SVHN datasets demonstrate that our new quantization method can defend neural networks against adversarial examples, and even achieves superior robustness than their fullprecision counterparts, while maintaining the same hardware efficiency as vanilla quantization approaches. As a by-product, DQ can also improve the accuracy of quantized models without adversarial attack. ",
62
+ "bbox": [
63
+ 233,
64
+ 286,
65
+ 766,
66
+ 536
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 565,
77
+ 336,
78
+ 582
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Neural network quantization (Han et al., 2015; Zhu et al., 2016; Jacob et al., 2017) is a widely used technique to reduce the computation and memory costs of neural networks, facilitating efficient deployment. It has become an industry standard for deep learning hardware. However, we find that the widely used vanilla quantization approaches suffer from unexpected issues — the quantized model is more vulnerable to adversarial attacks (Figure 1). Adversarial attack is consist of subtle perturbations on the input images that causes the deep learning models to give incorrect labels (Szegedy et al., 2013; Goodfellow et al.). Such perturbations are hardly detectable by human eyes but can easily fool neural networks. Since quantized neural networks are widely deployed in many safety-critical scenarios, e.g., autonomous driving (Amodei et al., 2016), the potential security risks cannot be neglected. The efficiency and latency in such applications are also important, so we need to jointly optimize them. ",
85
+ "bbox": [
86
+ 174,
87
+ 597,
88
+ 825,
89
+ 736
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "The fact that quantization leads to inferior adversarial robustness is counter intuitive, as small perturbations should be denoised with low-bit representations. Recent work (Xu et al., 2017) also demonstrates that quantization on input image space , i.e. color bit depth reduction, is quite effective to defend adversarial examples. A natural question then rises, why the quantization operator is yet effective when applied to intermediate DNN layers? We analyze that such issue is caused by the error amplification effect of adversarial perturbation (Liao et al., 2018) — although the magnitude of perturbation on the image is small, it is amplified significantly when passing through deep neural network (see Figure 3b). The deeper the layers are, the more significant such side effect is. Such amplification pushes values into a different quantization bucket, which is undesirable. We conducted empirical experiments to analyze how quantization influences the activation error between clean and adversarial samples (Figure 3a): when the magnitude of the noise is small, activation quantization is capable of reducing the errors by eliminating small perturbations; However, when the magnitude of perturbation is larger than certain threshold, quantization instead amplify the errors, which causes ",
96
+ "bbox": [
97
+ 174,
98
+ 743,
99
+ 825,
100
+ 922
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/3477ecd5b2c43d16b40e89da24dec3e171a08e472afb5ecf20c37178321efd79.jpg",
107
+ "image_caption": [],
108
+ "image_footnote": [],
109
+ "bbox": [
110
+ 192,
111
+ 102,
112
+ 480,
113
+ 250
114
+ ],
115
+ "page_idx": 1
116
+ },
117
+ {
118
+ "type": "text",
119
+ "text": "(a) Quantization preserves the accuracy till 4-5 bits on clean image. ",
120
+ "bbox": [
121
+ 192,
122
+ 256,
123
+ 488,
124
+ 281
125
+ ],
126
+ "page_idx": 1
127
+ },
128
+ {
129
+ "type": "image",
130
+ "img_path": "images/dc57dfe77e70d9c157083068a6a5416fccbd3d6d2342eea03d00a27b807e59e5.jpg",
131
+ "image_caption": [
132
+ "(b) Quantization no longer preserves the accuracy under adversarial attack (same legend as left). ",
133
+ "Figure 1. Quantized neural network are more vulnerable to adversarial attack. Quantized models have no loss of accuracy on clean image ${ \\geq } 5$ bits), but have significant loss of accuracy under adversarial attack compared to full precision models. Setup: VGG-16 and Wide ResNet on the test set of CIFAR-10 with FGSM attack. "
134
+ ],
135
+ "image_footnote": [],
136
+ "bbox": [
137
+ 509,
138
+ 102,
139
+ 797,
140
+ 250
141
+ ],
142
+ "page_idx": 1
143
+ },
144
+ {
145
+ "type": "text",
146
+ "text": "the quantized model to make mistakes. We argue that this is the main reason causing the inferior robustness of the quantized models. ",
147
+ "bbox": [
148
+ 174,
149
+ 361,
150
+ 823,
151
+ 390
152
+ ],
153
+ "page_idx": 1
154
+ },
155
+ {
156
+ "type": "text",
157
+ "text": "In this paper, we propose Defensive Quantization (DQ) that not only fixes the robustness issue of quantized models, but also turns activation quantization into a defense method that further boosts adversarial robustness. We are inspired by the success of image quantization in improving robustness. Intuitively, it will be possible to defend the attacks with quantization operations if we can keep the magnitude of the perturbation small. However, due to the error amplification effect of gradient based adversarial samples, it is non-trivial to keep the noise at a small scale during inference. Recent works (Cisse et al., 2017; Qian & Wegman, 2018) have attempted to make the network non-expansive by controlling the Lipschitz constant of the network to be smaller than 1, which has smaller variation change in its output than its input. In such case, the input noise will not propagate through the intermediate layers and impact the output, but attenuated. Our method is built on the theory. Defensive quantization not only quantizes feature maps into low-bit representations, but also controls the Lipschitz constant of the network, such that the noise is kept within a small magnitude for all hidden layers. In such case, we keep the noise small, as in the left zone of Figure 3a, quantization can reduce the perturbation error. The produced model with our method enjoys better security and efficiency at the same time. ",
158
+ "bbox": [
159
+ 174,
160
+ 397,
161
+ 825,
162
+ 604
163
+ ],
164
+ "page_idx": 1
165
+ },
166
+ {
167
+ "type": "text",
168
+ "text": "Experiments show that Defensive Quantization (DQ) offers three unique advantages. First, DQ provides an effective way to boost the robustness of deep learning models while maintains the efficiency. Second, DQ is a generic building block of adversarial defense, which can be combined with other adversarial defense techniques to advance state-of-the-art robustness. Third, our method makes quantization itself easier thanks to the constrained dynamic range. ",
169
+ "bbox": [
170
+ 174,
171
+ 612,
172
+ 825,
173
+ 681
174
+ ],
175
+ "page_idx": 1
176
+ },
177
+ {
178
+ "type": "text",
179
+ "text": "2 BACKGROUND AND RELATED WORK ",
180
+ "text_level": 1,
181
+ "bbox": [
182
+ 176,
183
+ 698,
184
+ 511,
185
+ 713
186
+ ],
187
+ "page_idx": 1
188
+ },
189
+ {
190
+ "type": "text",
191
+ "text": "2.1 MODEL QUANTIZATION ",
192
+ "text_level": 1,
193
+ "bbox": [
194
+ 176,
195
+ 729,
196
+ 380,
197
+ 744
198
+ ],
199
+ "page_idx": 1
200
+ },
201
+ {
202
+ "type": "text",
203
+ "text": "Neural network quantization (Han et al., 2015; Rastegari et al., 2016; Zhou et al., 2016; Courbariaux & Bengio, 2016; Zhu et al., 2016)) are widely adopted to enable efficient inference. By quantizing the network into low-bit representation, the inference of network requires less computation and less memory, while still achieves little accuracy degradation on clean images. However, we find that the quantized models suffer from severe security issues — they are more vulnerable against adversarial attacks compared to full-precision models, even when they have the same clean image accuracy. Adversarial perturbation is applied to the input image, thus it is most related to activation quantization (Dhillon et al., 2018). We carry out the rest of the paper using ReLU6 based activation quantization (Howard et al., 2017; Sandler et al., 2018), as it is computationally efficient and is widely adopted by modern frameworks like TensorFlow (Abadi et al., 2016). As illustrated in Figure 2, a quantized convolutional network is composed of several quantized convolution block, each containing a serial of $c o n \\nu + B N + R e L U 6 +$ linear quantize operators. As the quantization operator has ",
204
+ "bbox": [
205
+ 174,
206
+ 757,
207
+ 825,
208
+ 924
209
+ ],
210
+ "page_idx": 1
211
+ },
212
+ {
213
+ "type": "image",
214
+ "img_path": "images/2e86d17f38d0c8264b4025ef957b06a76c9aef6e47037e726148ea0e6cd95bbd.jpg",
215
+ "image_caption": [
216
+ "Figure 2. Defensive quantization with Lipschitz regularization. "
217
+ ],
218
+ "image_footnote": [],
219
+ "bbox": [
220
+ 189,
221
+ 98,
222
+ 807,
223
+ 179
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "0 gradient almost everywhere, we followed common practice to use a STE (Bengio et al., 2013) function $y = x +$ stop gradient[Quantize $( x ) - x ]$ for gradient computation, which also eliminates the obfuscated gradient problem (Athalye et al., 2018). ",
230
+ "bbox": [
231
+ 174,
232
+ 231,
233
+ 825,
234
+ 273
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "Our work bridges two domains: model quantization and adversarial defense. Previous work (Galloway et al., 2017) claims binary quantized networks can improve the robustness against some attacks. However, the improvement is not substantial and they used randomized quantization, which is not practical for real deployment (need extra random number generators in hardware). It also causes one of the obfuscated gradient situations (Athalye et al., 2018): stochastic gradients, leading to a false sense of security. Rakin et al. (2018) tries to use quantization as an effective defense method. However, they employed Tanh-based quantization, which is not hardware friendly on fixed-point units due to the large overhead accessing look-up table. Even worse, according to our re-implementation, their method actually leads to severe gradient masking problem (Papernot et al., 2016a) during adversarial training, due to the nature of Tanh function (see A.1 for detail). As a result, the actual robustness of this work under black-box attack has no improvement over full-precision model and is even worse. Therefore, there is no previous work that are conducted under real inference setting to study the quantized robustness for both black-box and white-box. Our work aim to raise people’s awareness about the security of the actual deployed models. ",
241
+ "bbox": [
242
+ 174,
243
+ 280,
244
+ 825,
245
+ 474
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "2.2 ADVERSARIAL ATTACKS & DEFENSES ",
252
+ "text_level": 1,
253
+ "bbox": [
254
+ 176,
255
+ 487,
256
+ 480,
257
+ 501
258
+ ],
259
+ "page_idx": 2
260
+ },
261
+ {
262
+ "type": "text",
263
+ "text": "Given an image $\\mathbf { X }$ , an adversarial attack method tries to find a small perturbation $\\pmb { \\Delta }$ with constraint $| | \\Delta | | \\leq \\epsilon$ , such that the neural network gives different outputs for $\\mathbf { X }$ and $\\mathbf { X } ^ { a d v } \\triangleq \\mathbf { X } + \\pmb { \\Delta }$ . Here $\\epsilon$ is a scalar to constrain the norm of the noise (e.g., $\\epsilon = 8$ is commonly used when we represent colors from 0-255), so that the perturbation is hardly visible to human. For this paper we choose to study attacks defined under $| | \\cdot | | _ { \\infty }$ , where each element of the image can vary at most $\\epsilon$ to form an adversary. We introduce several attack and defense methods used in our work in the following sections. ",
264
+ "bbox": [
265
+ 174,
266
+ 513,
267
+ 825,
268
+ 613
269
+ ],
270
+ "page_idx": 2
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "2.2.1 ATTACK METHODS ",
275
+ "text_level": 1,
276
+ "bbox": [
277
+ 176,
278
+ 627,
279
+ 357,
280
+ 641
281
+ ],
282
+ "page_idx": 2
283
+ },
284
+ {
285
+ "type": "text",
286
+ "text": "Random Perturbation (Random) Random perturbation attack adds a uniform sampled noise within $[ - \\epsilon , \\epsilon ]$ to the image, The method has no prior knowledge of the data and the network, thus is considered as the weakest attack method. ",
287
+ "bbox": [
288
+ 173,
289
+ 654,
290
+ 823,
291
+ 696
292
+ ],
293
+ "page_idx": 2
294
+ },
295
+ {
296
+ "type": "text",
297
+ "text": "Fast Gradient Sign Method (FGSM) & R+FGSM Goodfellow et al. proposed a fast method to calculate the adversarial noise by following the direction of the loss gradient $\\nabla _ { \\mathbf { X } } L ( \\mathbf { X } , y )$ , where $L ( \\mathbf { X } , y )$ is the loss function for training (e.g. cross entropy loss). The adversarial samples are computed as: ",
298
+ "bbox": [
299
+ 173,
300
+ 702,
301
+ 825,
302
+ 758
303
+ ],
304
+ "page_idx": 2
305
+ },
306
+ {
307
+ "type": "equation",
308
+ "img_path": "images/99eefde9e20f5cef957ea6e17f6930cd257ae093c10e865b0afa4596b22046f8.jpg",
309
+ "text": "$$\n{ \\bf X } ^ { a d v } = { \\bf X } + \\epsilon * \\mathrm { s i g n } ( \\nabla _ { \\bf X } { L } ( { \\bf X } , y ) )\n$$",
310
+ "text_format": "latex",
311
+ "bbox": [
312
+ 379,
313
+ 758,
314
+ 617,
315
+ 779
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "As FGSM is an one-step gradient-based method, it can suffer from sharp curvature near the data points, leading a false direction of ascent. Therefore, Tramer et al. (2017) proposes to prepend FGSM \\` by a random step to escape the non-smooth vicinity. The new method is called $\\mathbf { R } { + } \\mathbf { F } \\mathbf { G } \\mathbf { S } \\mathbf { M }$ , defined as follows, for parameters $\\epsilon$ and $\\epsilon _ { 1 }$ (where $\\epsilon _ { 1 } < \\epsilon$ ): ",
322
+ "bbox": [
323
+ 174,
324
+ 782,
325
+ 825,
326
+ 839
327
+ ],
328
+ "page_idx": 2
329
+ },
330
+ {
331
+ "type": "equation",
332
+ "img_path": "images/11489fe653179574f718f579e2e8f46d0cfebbf3f53584f0a33fb8126da457fc.jpg",
333
+ "text": "$$\n{ \\bf X } ^ { a d v } = { \\bf X } ^ { \\prime } + ( \\epsilon - \\epsilon _ { 1 } ) * \\mathrm { s i g n } ( \\nabla _ { \\bf X } L ( { \\bf X } , y ) ) , \\mathrm { w h e r e } { \\bf X } ^ { \\prime } = { \\bf X } + \\epsilon _ { 1 } * \\mathrm { s i g n } ( \\mathcal { N } ( { \\bf 0 } ^ { d } , { \\bf I } ^ { d } ) ) .\n$$",
334
+ "text_format": "latex",
335
+ "bbox": [
336
+ 222,
337
+ 848,
338
+ 776,
339
+ 866
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "In our paper, we set $\\epsilon _ { 1 } = \\epsilon / 2$ following Tramer et al. (2017). \\` ",
346
+ "bbox": [
347
+ 174,
348
+ 873,
349
+ 575,
350
+ 888
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "text",
356
+ "text": "Basic Iterative Method (BIM) & Projected Gradient Descend (PGD) Kurakin et al. (2016) suggests a simple yet much stronger variant of FGSM by applying it multiple times iteratively with a ",
357
+ "bbox": [
358
+ 173,
359
+ 895,
360
+ 826,
361
+ 924
362
+ ],
363
+ "page_idx": 2
364
+ },
365
+ {
366
+ "type": "text",
367
+ "text": "(a) Noise increases with perturbation strength. Quantization makes the slope deeper. ",
368
+ "bbox": [
369
+ 176,
370
+ 253,
371
+ 491,
372
+ 279
373
+ ],
374
+ "page_idx": 3
375
+ },
376
+ {
377
+ "type": "image",
378
+ "img_path": "images/19cea475a7e4e3a56bd367d0019961f8154bd7f1eb67f498c26a9e9523c87ff5.jpg",
379
+ "image_caption": [
380
+ "(b) With conventional quantization, noise increases with layer index (the amplification effect). "
381
+ ],
382
+ "image_footnote": [],
383
+ "bbox": [
384
+ 178,
385
+ 102,
386
+ 486,
387
+ 244
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "image",
393
+ "img_path": "images/9493e4488590bc9fdd93d45255b35d302a1d3d742db0ef8a7ff73b17ab1709cb.jpg",
394
+ "image_caption": [],
395
+ "image_footnote": [],
396
+ "bbox": [
397
+ 508,
398
+ 102,
399
+ 816,
400
+ 246
401
+ ],
402
+ "page_idx": 3
403
+ },
404
+ {
405
+ "type": "text",
406
+ "text": "Figure 3. (a) Comparison of the noise introduced by adversarial-attack, with and without quantization. For small perturbation, quantization reduces the noise; for large perturbation, quantization magnifies the noise. (b) The noise amplification effect: the noise is amplified with layer index. Setup: conventional activation quantization for VGG-16, normalized difference of full-precision and low-precision activation. ",
407
+ "bbox": [
408
+ 173,
409
+ 290,
410
+ 825,
411
+ 342
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "small step size $\\alpha$ . The method is called BIM, defined as: ",
418
+ "bbox": [
419
+ 176,
420
+ 368,
421
+ 544,
422
+ 383
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "equation",
428
+ "img_path": "images/52431606422f6178f530d95c758ebffc8d618d0a81141a33b31155188920730a.jpg",
429
+ "text": "$$\n\\mathbf { X } _ { 0 } ^ { a d v } = \\mathbf { X } , \\ \\mathbf { X } _ { n + 1 } ^ { a d v } = \\mathrm { c l i p } _ { \\mathbf { X } } ^ { \\epsilon } \\{ \\mathbf { X } _ { n } ^ { a d v } + \\alpha \\mathrm { s i g n } ( \\nabla _ { \\mathbf { X } } L ( \\mathbf { X } _ { n } ^ { a d v } , y ) ) \\} ,\n$$",
430
+ "text_format": "latex",
431
+ "bbox": [
432
+ 294,
433
+ 388,
434
+ 702,
435
+ 410
436
+ ],
437
+ "page_idx": 3
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "where $\\mathrm { c l i p } _ { \\mathbf { X } } ^ { \\epsilon }$ means clipping the result image to be within the $\\epsilon$ -ball of $\\mathbf { X }$ . In (Madry et al., 2017), the BIM is prepended by a random start as in $\\mathrm { R + F G S M }$ method. The resulting attack is called PGD, which proves to be a general first-order attack. In our experiments we used PGD for comprehensive experiments as it proves to be one of the strongest attack. Unlike Madry et al. (2017) that uses a fixed $\\epsilon$ and $\\alpha$ , we follow Kurakin et al. (2016); Song et al. (2017) to use $\\alpha = 1$ and number of iterations of $\\left\\lfloor \\operatorname* { m i n } ( \\epsilon + 4 , 1 . 2 5 \\epsilon ) \\right\\rfloor$ , so that we can test the model’s robustness under different strength of attacks. ",
442
+ "bbox": [
443
+ 174,
444
+ 414,
445
+ 826,
446
+ 498
447
+ ],
448
+ "page_idx": 3
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "2.2.2 DEFENSE METHODS ",
453
+ "text_level": 1,
454
+ "bbox": [
455
+ 176,
456
+ 511,
457
+ 366,
458
+ 525
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "Current defense methods either preprocess the adversarial samples to denoise the perturbation (Xu et al., 2017; Song et al., 2017; Liao et al., 2018) or making the network itself robust (Warde-Farley & Goodfellow, 2016; Papernot et al., 2016b; Madry et al., 2017; Kurakin et al., 2016; Goodfellow et al.; Tramer et al., 2017). Here we introduced several defense methods related to our experiments. \\` ",
465
+ "bbox": [
466
+ 174,
467
+ 537,
468
+ 825,
469
+ 593
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "Feature Squeezing $\\mathrm { X u }$ et al. (2017) proposes to detect adversarial images by squeezing the input image. Specifically, the image is processed with color depth bit reduction (5 bits for our experiments) and smoothed by a $2 \\times 2$ median filter. If the low resolution image is classified differently as the original image, then this image is detected as adversarial. ",
476
+ "bbox": [
477
+ 173,
478
+ 599,
479
+ 825,
480
+ 656
481
+ ],
482
+ "page_idx": 3
483
+ },
484
+ {
485
+ "type": "text",
486
+ "text": "Adversarial Training Adversarial training (Madry et al., 2017; Kurakin et al., 2016; Goodfellow et al.; Tramer et al., 2017) is currently the strongest method for defense. By augmenting the training set \\` with adversarial samples, the network learns to classify adversarial samples correctly. As adversarial Table 3Table 3FGSM can easily lead to gradient masking effect (Papernot et al., 2016a), we study adversarial $\\mathrm { R + F G S M }$ 4-Bit Quantized 6-Bit Quantized 8-Bit Quantized Full Precision4-Bit Quantized 6-Bit Quantized 8-Bit Quantized Full Precision as in (Tramer et al., 2017). We also experimented with PGD training (Madry et al., 2017). \\` ",
487
+ "bbox": [
488
+ 174,
489
+ 662,
490
+ 825,
491
+ 733
492
+ ],
493
+ "page_idx": 3
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "00 0.46921857947162576 2.0000 0 2.0000 0.332712 2.0000 0 2.0000 0.28962.0000 0.46921857947162 2.0000 0 2.0000 0.332712 2.0000 0 2.0000 0.2896Experiments show that above defense methods can be combined with our DQ method to further \n000 0.7550861999431432 3.0000 0.6733 3.0000 0.6304687265237110000 3.0000 0.6050 3.0000 0.57743.0000 0.75508619994314 3.0000 0.6733 3.0000 0.6304687265237110000 3.0000 0.6050 3.0000 0.5774improve the robustness. The robustness has been tested under the aforementioned attack methods. ",
498
+ "bbox": [
499
+ 173,
500
+ 739,
501
+ 823,
502
+ 767
503
+ ],
504
+ "page_idx": 3
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "000 0.8435416802069752 5.0000 0.7445 5.0000 0.70679410870240300 5.0000 0.6733 5.0000 5.0000 0.8435416802069752 5.0000 0.7445 5.0000 0.70679410870240300 5.0000 0.6733 5.0000 3 C O N V E N T I O NA L N N Q UA N T I Z AT I O N I S N OT RO B U S T ",
509
+ "text_level": 1,
510
+ "bbox": [
511
+ 176,
512
+ 782,
513
+ 650,
514
+ 799
515
+ ],
516
+ "page_idx": 3
517
+ },
518
+ {
519
+ "type": "text",
520
+ "text": "00 1.012114964143164 7.0000 1.005 7.0000 0.9032 7.0000 0.8307 7.0000 0.83257.0000 1.012114964143164 7.0000 1.005 7.0000 0.9032 7.0000 0.8307 7.0000 0.8325Conventional neural network quantization is more vulnerable to adversarial attacks. We experimented 000 0.9862844244360638 8.0000 0.9515 8.0000 0.86693617000095300 8.0000 0.80045166445080300 8.0000 0.7888.0000 0.9862844244360638 8.0000 0.9515 8.0000 0.86693617000095300 8.0000 0.80045166445080300 8.0000 0.788with VGG-16 (Simonyan & Zisserman, 2014) and a Wide ResNet (Zagoruyko & Komodakis, 2016) 00 1.0681920178474003 9.0000 1.0577 9.0000 0.977219 9.0000 0.8388344297226030 9.0000 0.81519.0000 1.0681920178474003 9.0000 1.0577 9.0000 0.977219 9.0000 0.8388344297226030 9.0000 0.8151of depth 28 and width 10 on CIFAR-10 (Krizhevsky & Hinton, 2009) dataset. We followed the 000 1.0993773912484481 10.000 1.1288 10.000 1.023 10.000 0.8246 10.000 0.758810.000 1.0993773912484481 10.000 1.1288 10.000 1.023 10.000 0.8246 10.000 0.7588training protocol as in (Zagoruyko & Komodakis, 2016). Adversarial samples are generated with a 000 1.1090918582426685 11.0000 1.1015 11.0000 11.0000 1.1090918582426685 11.0000 1.1015 11.0000 FGSM (Goodfellow et al.) attacker $\\epsilon = 8$ 11.0000 0.8027 11.0000 0.71920199 11.0000 0.8027 11.0000 0.7192) on the entire test set. As in Figure 1, the clean image .00 1.207932074028837 12.00 1.1706 12.00 1.099673 12.00 0.827749 12.00 0.748612.00 1.207932074028837 12.00 1.1706 12.00 1.099673 12.00 0.827749 12.00 0.7486accuracy doesn’t significantly drop until the model is quantized to 4 bits (Figure 1a). However, under .00 1.2888898827224133 13.00 1.1754 13.00 1.097803 13.00 0.829665 13.00 0.7676 13.00 1.2888898827224133 13.00 1.1754 13.00 1.097803 13.00 0.829665 13.00 0.7676 adversarial attack, even with 5-bit quantization, the accuracy drastically decreased by $2 5 . 3 \\%$ and $9 . 2 \\%$ respectively. Although the full precision model’s accuracy has dropped, the quantized model’s accuracy dropped much harder, showing that the conventional quantization method is not robust. Clean image accuracy used to be the sole figure of merit to evaluate a quantized model. We show that even when the quantized model has no loss of performance on clean images, it can be much more easily fooled compared to full-precision ones, thus raising security concerns. ",
521
+ "bbox": [
522
+ 174,
523
+ 811,
524
+ 825,
525
+ 924
526
+ ],
527
+ "page_idx": 3
528
+ },
529
+ {
530
+ "type": "image",
531
+ "img_path": "images/a45d501e28e5bec0f019f31e9dc2930c1e74c4210393c9ed002f8d40c281ba44.jpg",
532
+ "image_caption": [
533
+ "Figure 4. The error amplification effect prevents activation quantization from defending adversarial attacks. "
534
+ ],
535
+ "image_footnote": [],
536
+ "bbox": [
537
+ 187,
538
+ 98,
539
+ 808,
540
+ 219
541
+ ],
542
+ "page_idx": 4
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "",
547
+ "bbox": [
548
+ 174,
549
+ 270,
550
+ 825,
551
+ 327
552
+ ],
553
+ "page_idx": 4
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "Input image quantization, i.e., color bit depth reduction is an effective defense method ( $\\mathrm { { X u } }$ et al., 2017). Counter intuitively, it does not work when applied to hidden layers, and even make the robustness worse. To understand the reason, we studied the effect of quantization w.r.t. different perturbation strength. We first randomly sample 128 images $\\mathbf { X }$ from the test set of CIFAR-10, and generate corresponding adversarial samples $\\mathbf { X } ^ { a d v }$ . The samples are then fed to the trained Wide ResNet model. To mimic different strength of activation perturbation, we vary the $\\epsilon$ from 1 to 8. We inspected the activation after the first convolutional layer $f _ { 1 }$ $\\mathrm { C o n v } + \\mathrm { B N } + \\mathrm { R e L U } 6 )$ , denoted as $\\mathbf { A } _ { 1 } \\ { \\overset { \\mathbf { \\Gamma } } { = } } \\ f _ { 1 } ( \\mathbf { X } )$ and ${ \\bf A } _ { 1 } ^ { a d v } = f _ { 1 } ( { \\bf A } ^ { a d v } )$ . To measure the influence of perturbation, we define a normalized distance between clean and perturbed activation as: ",
558
+ "bbox": [
559
+ 173,
560
+ 332,
561
+ 825,
562
+ 458
563
+ ],
564
+ "page_idx": 4
565
+ },
566
+ {
567
+ "type": "equation",
568
+ "img_path": "images/96dff84bb2d0721b61e181f80d9f8e27258be710a5732dac42d5135b827f4da8.jpg",
569
+ "text": "$$\nD ( \\mathbf { A } , \\mathbf { A } ^ { a d v } ) = | | \\mathbf { A } - \\mathbf { A } ^ { a d v } | | _ { 2 } / | | \\mathbf { A } | | _ { 2 }\n$$",
570
+ "text_format": "latex",
571
+ "bbox": [
572
+ 372,
573
+ 463,
574
+ 625,
575
+ 483
576
+ ],
577
+ "page_idx": 4
578
+ },
579
+ {
580
+ "type": "text",
581
+ "text": "We compare $D ( \\mathbf { A } , \\mathbf { A } ^ { a d v } )$ and $D ( { \\mathrm { Q u a n t i z e } } ( \\mathbf { A } ) , { \\mathrm { Q u a n t i z e } } ( \\mathbf { A } ^ { a d v } ) )$ , where Quantize indicates uniform quantization with 3 bits. The results are shown in Figure 3a. We can see that only when $\\epsilon$ is small, quantization helps to reduce the distance by removing small magnitude perturbations. The distance will be enlarged when $\\epsilon$ is larger than 3. ",
582
+ "bbox": [
583
+ 174,
584
+ 487,
585
+ 825,
586
+ 544
587
+ ],
588
+ "page_idx": 4
589
+ },
590
+ {
591
+ "type": "text",
592
+ "text": "The above experiment explains the inferior robustness of the quantized model. We argue that such issue arises from the error amplification effect (Liao et al., 2018), where the relative perturbed distance will be amplified when the adversarial samples are fed through the network. As illustrated in Figure 4, the perturbation applied to the input image has very small magnitude compared to the image itself $\\pm 8$ versus $0 - 2 5 5$ ), corresponding to the left zone of Figure 3a (desired), where quantization helps to denoise the perturbation. Nevertheless, the difference in activation is amplified as the inference carries on. If the perturbation after amplification is large enough, the situation corresponds to the right zone (actual) of Figure 3a, where quantization further increases the normalized distance. Such phenomenon is also observed in the quantized VGG-16. We plot the normalized distance of each convolutional layer’s input in Figure 3b. The fewer bits in the quantized model, the more severe the amplification effect. ",
593
+ "bbox": [
594
+ 173,
595
+ 550,
596
+ 825,
597
+ 704
598
+ ],
599
+ "page_idx": 4
600
+ },
601
+ {
602
+ "type": "text",
603
+ "text": "4 DEFENSIVE QUANTIZATION ",
604
+ "text_level": 1,
605
+ "bbox": [
606
+ 176,
607
+ 718,
608
+ 437,
609
+ 734
610
+ ],
611
+ "page_idx": 4
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "Given the robustness limitation of conventional quantization technique, we propose Defensive Quantization (DQ) to defend the adversarial examples for quantized models. DQ suppresses the noise amplification effect, keeping the magnitude of the noise small, so that we can arrive at the left zone (Figure 3a, desired) where quantization helps robustness instead of making it worse. ",
616
+ "bbox": [
617
+ 173,
618
+ 747,
619
+ 825,
620
+ 804
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "We control the neural network’s Lipschitz constant (Szegedy et al., 2013; Bartlett et al., 2017; Cisse et al., 2017) to suppress network’s amplification effect. Lipschitz constant describes: when input changes, how much does the output change correspondingly. For a function $f : X \\to Y$ , if it satisfies ",
627
+ "bbox": [
628
+ 173,
629
+ 810,
630
+ 825,
631
+ 853
632
+ ],
633
+ "page_idx": 4
634
+ },
635
+ {
636
+ "type": "equation",
637
+ "img_path": "images/3394ec58221c9f7706e95ce026592456c967f1d6cc48c24a83b67ceae37de2fa.jpg",
638
+ "text": "$$\nD _ { Y } ( f ( x _ { 1 } ) , f ( x _ { 2 } ) ) \\leq k D _ { X } ( x _ { 1 } , x _ { 2 } ) , \\ \\forall x _ { 1 } , x _ { 2 } \\in X\n$$",
639
+ "text_format": "latex",
640
+ "bbox": [
641
+ 330,
642
+ 859,
643
+ 666,
644
+ 876
645
+ ],
646
+ "page_idx": 4
647
+ },
648
+ {
649
+ "type": "text",
650
+ "text": "for a real-valued $k \\geq 0$ and some metrics $D _ { X }$ and $D _ { Y }$ , then we call $f$ Lipschitz continuous and $k$ is the known as the Lipschitz constant of $f$ . If we consider a network $f$ with clean inputs $x _ { 1 } = \\mathbf { X }$ and corresponding adversarial inputs $x _ { 2 } = \\mathbf { X } _ { a d v }$ , the error amplification effect can be controlled if we ",
651
+ "bbox": [
652
+ 174,
653
+ 881,
654
+ 825,
655
+ 924
656
+ ],
657
+ "page_idx": 4
658
+ },
659
+ {
660
+ "type": "table",
661
+ "img_path": "images/931b175820461bc8a2f80e80e4061fabcce98cd50a33f0f7f37357b9c337496f.jpg",
662
+ "table_caption": [
663
+ "Table 1. The clean and adversarial accuracy of Wide ResNet on CIFAR-10 test set. We compare the accuracy of full-precision and quantized models. With our DQ method, we not only eliminate the robustness gap between full-precision and quantized models, but also improve the robustness over full-precision ones. The accuracy gain from quantization compared to the full-precision model (Quantize Gain) has gradually been improved as $\\beta$ increases. Bold and underline numbers are the first and second highest accuracy at each row. "
664
+ ],
665
+ "table_footnote": [],
666
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td rowspan=\"2\">Acc.</td><td rowspan=\"2\">Full Prec.</td><td colspan=\"5\">Quantize Bit</td><td rowspan=\"2\">Quantize Gain</td><td rowspan=\"2\">Best Acc.</td></tr><tr><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td></tr><tr><td rowspan=\"2\">Vanilla</td><td>clean</td><td>94.8</td><td>42.0</td><td>84.9</td><td>92.8</td><td>93.9</td><td>94.7</td><td rowspan=\"2\">-9.1</td><td rowspan=\"2\">39.3</td></tr><tr><td>adv.</td><td>39.3</td><td>9.0</td><td>8.5</td><td>14.1</td><td>19.0</td><td>30.2</td></tr><tr><td rowspan=\"2\">DQ (β =3e-4)</td><td>clean</td><td>95.3</td><td>95.2</td><td>95.3</td><td>95.1</td><td>95.1</td><td>95.1</td><td rowspan=\"2\">+1.4</td><td rowspan=\"2\">43.2</td></tr><tr><td>adv.</td><td>41.8</td><td>43.2</td><td>41.1</td><td>40.1</td><td>39.8</td><td>39.3</td></tr><tr><td rowspan=\"2\">DQ (β =6e-4)</td><td>clean</td><td>95.6</td><td>95.7</td><td>95.2</td><td>95.4</td><td>95.6</td><td>95.5</td><td rowspan=\"2\">+2.6</td><td rowspan=\"2\">48.3</td></tr><tr><td>adv.</td><td>45.7</td><td>48.3</td><td>47.9</td><td>43.8</td><td>43.9</td><td>44.6</td></tr><tr><td rowspan=\"2\">DQ (β =1e-3)</td><td>clean</td><td>95.9</td><td>95.8</td><td>95.6</td><td>95.6</td><td>95.8</td><td>95.8</td><td rowspan=\"2\">+2.7</td><td rowspan=\"2\">51.8</td></tr><tr><td>adv.</td><td>49.1</td><td>51.3</td><td>50.4</td><td>51.3</td><td>49.8</td><td>51.8</td></tr></table>",
667
+ "bbox": [
668
+ 218,
669
+ 183,
670
+ 781,
671
+ 352
672
+ ],
673
+ "page_idx": 5
674
+ },
675
+ {
676
+ "type": "text",
677
+ "text": "have a small Lipschitz constant $k$ (in optimal situation we can have $k \\leq 1$ ). In such case, the error introduced by adversarial perturbation will not be amplified, but reduced. Specifically, we consider a feed-forward network composed of a serial of functions: ",
678
+ "bbox": [
679
+ 174,
680
+ 381,
681
+ 825,
682
+ 424
683
+ ],
684
+ "page_idx": 5
685
+ },
686
+ {
687
+ "type": "equation",
688
+ "img_path": "images/e9cf1feb3f9b1722a648960044c20cf1028b5598a83e94abdd2852fb9a20695c.jpg",
689
+ "text": "$$\nf ( x ) = ( \\phi _ { l } \\circ \\phi _ { l - 1 } \\circ \\ldots \\circ \\phi _ { 1 } ) ( x )\n$$",
690
+ "text_format": "latex",
691
+ "bbox": [
692
+ 390,
693
+ 428,
694
+ 607,
695
+ 445
696
+ ],
697
+ "page_idx": 5
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "where $\\phi _ { i }$ can be a linear layer, convolutional layer, pooling, activation functions, etc. Denote the Lipschitz constant of a function $f$ as $L i p ( f )$ , then for the above network we have ",
702
+ "bbox": [
703
+ 173,
704
+ 449,
705
+ 828,
706
+ 477
707
+ ],
708
+ "page_idx": 5
709
+ },
710
+ {
711
+ "type": "equation",
712
+ "img_path": "images/9883e7648ef328bb8d60466e2647fa68926735efa92e7ec0d5f210fa14a7d43e.jpg",
713
+ "text": "$$\nL i p ( f ) \\leq \\prod _ { i = 1 } ^ { L } L i p ( \\phi _ { i } )\n$$",
714
+ "text_format": "latex",
715
+ "bbox": [
716
+ 423,
717
+ 481,
718
+ 575,
719
+ 525
720
+ ],
721
+ "page_idx": 5
722
+ },
723
+ {
724
+ "type": "text",
725
+ "text": "As the Lipschitz constant of the network is the product of its individual layers’ Lipschitz constants, $L i p ( f )$ can grow exponentially if $L i p ( \\phi _ { i } ) > 1$ . This is the common case for normal network training (Cisse et al., 2017), and thus the perturbation will be amplified for such a network. Therefore, to keep the Lipschitz constant of the whole network small, we need to keep the Lipschitz constant of each layer $L i p ( \\phi _ { i } ) \\leq 1$ . We call a network with $L i p ( \\phi _ { i } ) \\le 1 , \\forall i = 1 , . . . , L$ a non-expansive network. ",
726
+ "bbox": [
727
+ 173,
728
+ 534,
729
+ 825,
730
+ 618
731
+ ],
732
+ "page_idx": 5
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "We describe a regularization term to keep the Lipschitz constant small. Let us first consider linear layers with weight $\\mathbf { W } \\in \\mathbb { R } ^ { c _ { o u t } \\times c _ { i n } }$ under $| | \\cdot | | _ { 2 }$ norm. The Lipschitz constant is by definition the spectral norm of $W$ : $\\rho ( \\mathbf { W } )$ , i.e., the maximum singular value of W. Computing the singular values of each weight matrix is not computationally feasible during training. Luckily, if we can keep the weight matrix row orthogonal, the singular values are by nature equal to 1, which meets our non-expansive requirements. Therefore we transform the problem of keeping $\\rho ( \\mathbf { W } ) \\leq 1$ into keeping $\\mathbf { W } ^ { \\hat { T } } \\mathbf { W } \\approx \\mathbf { I }$ , where $\\mathbf { I }$ is the identity matrix. Naturally, we introduce a regularization term $| | \\mathbf { W } ^ { \\hat { T } } \\mathbf { \\check { W } } - \\mathbf { I } | |$ , where $I$ is the identity matrix. Following (Cisse et al., 2017), for convolutional layers with weight $\\mathbf { W } \\in \\mathbb { R } ^ { c _ { o u t } \\times c _ { i n } \\times k \\times k }$ , we can view it as a two-dimension matrix of shape $\\dot { \\mathbf { W } } \\in \\mathbb { R } ^ { c _ { o u t } \\times ( c _ { i n } \\bar { k } k ) }$ and apply the same regularization. The final optimization objective is: ",
737
+ "bbox": [
738
+ 173,
739
+ 625,
740
+ 825,
741
+ 766
742
+ ],
743
+ "page_idx": 5
744
+ },
745
+ {
746
+ "type": "equation",
747
+ "img_path": "images/d32fab94775912ad2d4d7a52fa5e9e9262b6a1f83752f98b7ac42912ba63f5c2.jpg",
748
+ "text": "$$\n\\mathcal { L } = \\mathcal { L } _ { C E } + \\frac { \\beta } { 2 } \\sum _ { \\mathbf { W } _ { l } \\in \\mathbb { W } } | | \\mathbf { W } _ { l } ^ { T } \\mathbf { W } _ { l } - \\mathbf { I } | | ^ { 2 }\n$$",
749
+ "text_format": "latex",
750
+ "bbox": [
751
+ 370,
752
+ 768,
753
+ 627,
754
+ 809
755
+ ],
756
+ "page_idx": 5
757
+ },
758
+ {
759
+ "type": "text",
760
+ "text": "where $\\mathcal { L } _ { C E }$ is the original cross entropy loss and $\\mathbb { W }$ denotes all the weight matrices of the neural network. $\\beta$ is the weighting to adjust the relative importance. The above discussion is based on simple feed forward networks. For ResNets in our experiments, we also follow Cisse et al. (2017) to modify the aggregation layer as a convex combination of their inputs, where the 2 coefficients are updated using specific projection algorithm (see (Cisse et al., 2017) for details). ",
761
+ "bbox": [
762
+ 174,
763
+ 818,
764
+ 825,
765
+ 890
766
+ ],
767
+ "page_idx": 5
768
+ },
769
+ {
770
+ "type": "text",
771
+ "text": "Our Defensive Quantization is illustrated in Figure 2. The key part is the regularization term, which suppress the noise amplification effect by regularizing the Lipschitz constant. As a result, the perturbation at each layer is kept within a certain range, the adversarial noise won’t propagate. Our method not only fixes the drop of robustness induced by quantization, but also takes quantization as a defense method to further increase the robustness. Therefore it’s named Defensive Quantization. ",
772
+ "bbox": [
773
+ 176,
774
+ 895,
775
+ 821,
776
+ 924
777
+ ],
778
+ "page_idx": 5
779
+ },
780
+ {
781
+ "type": "image",
782
+ "img_path": "images/7d1866fcf015dc1809459d67bc48aaa2fbaefc65c09b355642a345cc822367f9.jpg",
783
+ "image_caption": [
784
+ "Figure 5. The white-box and black-box robustness are consistent: vanilla quantization leads to significant robustness drop, while DQ can bridge the gap and improve the robustness, especially with lower bits $( \\mathrm { b i t } { = } 1 )$ ). Setup: white-box and black-box robustness of Wide ResNet with vanilla quantization and defensive quantization. "
785
+ ],
786
+ "image_footnote": [],
787
+ "bbox": [
788
+ 179,
789
+ 99,
790
+ 818,
791
+ 218
792
+ ],
793
+ "page_idx": 6
794
+ },
795
+ {
796
+ "type": "text",
797
+ "text": "",
798
+ "bbox": [
799
+ 174,
800
+ 300,
801
+ 825,
802
+ 342
803
+ ],
804
+ "page_idx": 6
805
+ },
806
+ {
807
+ "type": "text",
808
+ "text": "5 EXPERIMENTS ",
809
+ "text_level": 1,
810
+ "bbox": [
811
+ 176,
812
+ 359,
813
+ 326,
814
+ 376
815
+ ],
816
+ "page_idx": 6
817
+ },
818
+ {
819
+ "type": "text",
820
+ "text": "Our experiments demonstrate the following advantages of Defensive Quantization. First, DQ can retain the robustness of a model when quantized with low-bit. Second, DQ is a general and effective defense method under various scenarios, thus can be combined with other defensive techniques to further advance state-of-the-art robustness. Third, as a by-product, DQ can also improve the accuracy of training quantized models on clean images without attacks, since it limits the dynamic range. ",
821
+ "bbox": [
822
+ 174,
823
+ 391,
824
+ 825,
825
+ 460
826
+ ],
827
+ "page_idx": 6
828
+ },
829
+ {
830
+ "type": "text",
831
+ "text": "5.1 FIXING ROBUSTNESS DROP ",
832
+ "text_level": 1,
833
+ "bbox": [
834
+ 176,
835
+ 477,
836
+ 406,
837
+ 491
838
+ ],
839
+ "page_idx": 6
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "Setup: We conduct experiments with Wide ResNet (Zagoruyko & Komodakis, 2016) of $2 8 \\times 1 0$ on the CIFAR-10 dataset (Krizhevsky & Hinton, 2009) using ReLU6 based activation quantization, with number of bits ranging from 1 to 5. All the models are trained following (Zagoruyko & Komodakis, 2016) with momentum SGD for 200 epochs. The adversarial samples are generated using FGSM attacker with $\\epsilon = 8$ . ",
844
+ "bbox": [
845
+ 174,
846
+ 503,
847
+ 825,
848
+ 574
849
+ ],
850
+ "page_idx": 6
851
+ },
852
+ {
853
+ "type": "text",
854
+ "text": "Result: The results are presented in Table 1. For vanilla models, though the adversarial robustness increases with the number of bits, i.e., the models closer to full-precision one has better robustness, the best quantized model still has inferior robustness by $- 9 . 1 \\%$ . While with our Defensive Quantization, the quantized models have better robustness than full-precision counterparts. The robustness is better when the number of bits are small, since it can de-noise larger adversarial perturbations. We also find that the robustness is generally increasing as $\\beta$ gets larger, since the regularization of Lipschitz constant itself keeps the noise smaller at later layers. At the same time, the quantized models consistently achieve better robustness. The robustness of quantized model also increases with $\\beta$ . We conduct a detailed analysis of the effect of $\\beta$ in Section B. The conclusion is: (1) conventional quantized models are less robust. (2) Lipschitz regularization makes the model robust. (3) Lipschitz regularization $^ +$ quantization makes model even more robust. ",
855
+ "bbox": [
856
+ 173,
857
+ 580,
858
+ 825,
859
+ 733
860
+ ],
861
+ "page_idx": 6
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "As shown in (Athalye et al., 2018), many of the defense methods actually lead to obfuscated gradient, providing a false sense of security. Therefore it is important to check the model’s robustness under black-box attack. We separately trained a substitute VGG-16 model on the same dataset to generate adversarial samples, as it was proved to have the best transferability (Su et al., 2018). The results are presented in Figure 5. Trends of white-box and black-box attack are consistent. Vanilla quantization leads to inferior black-box robustness, while with our method can further improve the models’ robustness. As the robustness gain is consistent for both white-box and black-box setting, our method does not suffer from gradient masking. ",
866
+ "bbox": [
867
+ 174,
868
+ 741,
869
+ 825,
870
+ 853
871
+ ],
872
+ "page_idx": 6
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "5.2 DEFEND WITH DEFENSIVE QUANTIZATION ",
877
+ "text_level": 1,
878
+ "bbox": [
879
+ 174,
880
+ 867,
881
+ 511,
882
+ 882
883
+ ],
884
+ "page_idx": 6
885
+ },
886
+ {
887
+ "type": "text",
888
+ "text": "In this section, we show that we can combine Defensive Quantization with other defense techniques to achieve state-of-the-art robustness. ",
889
+ "bbox": [
890
+ 176,
891
+ 895,
892
+ 823,
893
+ 922
894
+ ],
895
+ "page_idx": 6
896
+ },
897
+ {
898
+ "type": "table",
899
+ "img_path": "images/ab1e9de4206de18569081e2f73c20ca7cb65da05d4cd96ca81037ef35814cd1d.jpg",
900
+ "table_caption": [
901
+ "Table 2. SVHN experiments tested with $\\epsilon = 2 / 8 / 1 6$ . (B) indicates black-box attack. "
902
+ ],
903
+ "table_footnote": [],
904
+ "table_body": "<table><tr><td>Training Technique</td><td>Clean</td><td>Random</td><td>FGSM</td><td>R+FGSM</td><td>PGD</td><td>FGSM(B)</td><td>PGD(B)</td></tr><tr><td>Normal</td><td>96.8</td><td>97/97/96</td><td>74/42/26</td><td>86/55/35</td><td>77/05/00</td><td>90/62/40</td><td>92/58/30</td></tr><tr><td>Normal + DQ</td><td>96.7</td><td>96/96/96</td><td>77/45/31</td><td>87/59/40</td><td>79/10/00</td><td>90/63/42</td><td>92/60/31</td></tr><tr><td>Feature Squeezing</td><td>96.3</td><td>96/96/95</td><td>69/34/20</td><td>84/48/28</td><td>72/03/00</td><td>89/61/38</td><td>91/56/27</td></tr><tr><td>Feature Squeezing + DQ</td><td>96.2</td><td>96/96/96</td><td>75/42/28</td><td>86/56/36</td><td>77/06/00</td><td>90/63/40</td><td>92/59/30</td></tr><tr><td>Adversarial R+FGSM</td><td>96.6</td><td>97/96/96</td><td>84/53/38</td><td>91/70/57</td><td>87/30/06</td><td>93/74/54</td><td>94/83/72</td></tr><tr><td>Adversarial R+FGSM+DQ</td><td>96.6</td><td>97/96/95</td><td>88/59/40</td><td>93/77/61</td><td>91/47/17</td><td>94/80/61</td><td>95/89/84</td></tr></table>",
905
+ "bbox": [
906
+ 189,
907
+ 131,
908
+ 808,
909
+ 265
910
+ ],
911
+ "page_idx": 7
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "Setup: We conducted experiments on the Street View House Number dataset (SVHN) (Netzer et al., 2011) and CIFAR-10 dataset (Krizhevsky & Hinton, 2009). Since adversarial training is time consuming, we only use the official training set for experiments. CIFAR-10 is another widely used dataset containing 50,000 training samples and 10,000 testing samples of size $3 2 \\times 3 2$ . For both datasets, we divide the pixel values by 255 as a pre-processing step. ",
916
+ "bbox": [
917
+ 173,
918
+ 301,
919
+ 825,
920
+ 371
921
+ ],
922
+ "page_idx": 7
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "Following (Athalye et al., 2018; Cisse et al., 2017; Madry et al., 2017), we used Wide ResNet (Zagoruyko & Komodakis, 2016) models in our experiments as it is considered as the standard model on the dataset. We used depth 28 and widening factor 10 for CIFAR-10, and depth 16 and widening factor 4 for SVHN. We followed the training protocol in (Zagoruyko & Komodakis, 2016) that uses a SGD optimizer with momentum $_ { 1 = 0 . 9 }$ . For CIFAR-10, the model is trained for 200 epochs with initial learning rate 0.1, decayed by a factor of 0.2 at 60, 120 and 160 epochs. For SVHN dataset, the model is trained for 160 epochs, with initial learning rate 0.01, decayed by 0.1 at 80 and 120 epochs. For DQ, we used bi $\\mathrm { = } 1$ and $\\beta = 2 \\mathrm { e } { - 3 }$ as it offers the best robustness (see Section B). ",
927
+ "bbox": [
928
+ 174,
929
+ 377,
930
+ 825,
931
+ 489
932
+ ],
933
+ "page_idx": 7
934
+ },
935
+ {
936
+ "type": "text",
937
+ "text": "We combine DQ with other defense methods to further boost the robustness. For Feature Squeezing (Xu et al., 2017), we used 5 bit for image color reduction, followed by a $2 \\times 2$ median filter. As adversarial FGSM training leads to gradient masking issue (Tramer et al., 2017) (see A.2 for our \\` experiment), we used the variant adversarial $\\mathrm { R + F G S M }$ training. To avoid over-fitting into certain $\\epsilon$ , we randomly sample $\\epsilon$ using $\\epsilon ^ { \\prime } \\sim \\mathcal { N } ( 0 , \\delta ) , \\epsilon = \\mathrm { c l i p } ^ { [ 0 , 2 \\delta ] } ( \\mathrm { a b s } ( \\epsilon ^ { \\prime } ) )$ . Specifically we used $\\delta = 8$ to cover $\\epsilon$ from 0-16. During test time, the $\\epsilon$ is set to a fixed value (2/8/16). We also conducted adversarial PGD training. Following (Kurakin et al., 2016; Song et al., 2017), during training we sample random $\\epsilon$ as in $\\mathrm { R + F G S M }$ setting, and generate adversarial samples using step size 1 and number of iterations $\\left\\lfloor \\operatorname* { m i n } ( \\epsilon + 4 , 1 . 2 5 \\epsilon ) \\right\\rfloor$ . ",
938
+ "bbox": [
939
+ 173,
940
+ 496,
941
+ 825,
942
+ 625
943
+ ],
944
+ "page_idx": 7
945
+ },
946
+ {
947
+ "type": "text",
948
+ "text": "Result: The results are presented in Table 2 and Table 3, where $\\mathbf { ( B ) }$ indicates black-box attack with a seperately trained VGG-16 model. The bold number indicates the best result in its column. We observe that for all normal training, feature squeezing and adversarial training settings, our DQ method can further improve the model’s robustness. Among all the defenses, adversarial training provides the best performance against various attacks, epecially adversarial $\\mathrm { R + F G S M }$ training. While white box PGD attack is generally the strongest attack in our experiments. Our DQ method also consistently improves the black-box robustness and there is no sign of gradient masking. Thus DQ proves to be an effective defense for various white-box and black-box attacks. ",
949
+ "bbox": [
950
+ 174,
951
+ 630,
952
+ 825,
953
+ 741
954
+ ],
955
+ "page_idx": 7
956
+ },
957
+ {
958
+ "type": "text",
959
+ "text": "5.3 IMPROVE THE TRAINING OF QUANTIZED MODELS ",
960
+ "text_level": 1,
961
+ "bbox": [
962
+ 174,
963
+ 757,
964
+ 562,
965
+ 771
966
+ ],
967
+ "page_idx": 7
968
+ },
969
+ {
970
+ "type": "text",
971
+ "text": "As a by-product of our method, Defensive Quantization can even improve the accuracy of quantized models on clean images without attack, making it a beneficial drop-in substitute for normal quantization procedures. Due to conventional quantization method’s amplification effect, the distribution of activation can step over the truncation boundary (0-6 for ReLU6, 0-1 for ReLU1), which makes the optimization difficult. DQ explicitly add a regularization to shrink the dynamic range of activation, so that it is fitted within the truncation range. To demonstrate our hypothesis, we experimented with ResNet and CIFAR-10. We quantized the activation with 4-bit (because NVIDIA recently introduced INT4 in Turing architecture) using ReLU6 and ReLU1 respectively. Vanilla quantization and DQ training are conducted for comparison. As shown in Table 4, with vanilla quantization, ReLU1 model has around $1 \\%$ worse accuracy than ReLU6 model, although they are mathematically equal if we multiply the previous BN scaling by 1/6 and next convolution weight by 6. It demonstrates that improper truncation function and range will lead to training difficulty. While with DQ training, both model has improved accuracy compared to vanilla quantization, and the gap between ReLU1 model and ReLU6 model is filled, making quantization easier regardless of truncation range. ",
972
+ "bbox": [
973
+ 174,
974
+ 785,
975
+ 825,
976
+ 924
977
+ ],
978
+ "page_idx": 7
979
+ },
980
+ {
981
+ "type": "table",
982
+ "img_path": "images/12cbe391e91badd0c41d5f78e4fca63cf458a83157db0d49d934f555664757ae.jpg",
983
+ "table_caption": [
984
+ "Table 3. CIFAR-10 Experiments tested with $\\epsilon = 2 / 8 / 1 6$ . (B) indicates black-box attack. "
985
+ ],
986
+ "table_footnote": [],
987
+ "table_body": "<table><tr><td>Training Technique</td><td>Clean</td><td>Random</td><td>FGSM</td><td>R+FGSM</td><td>PGD</td><td>FGSM(B)</td><td>PGD(B)</td></tr><tr><td>Normal</td><td>94.8</td><td>95/91/77</td><td>59/39/29</td><td>72/37/17</td><td>56/01/00</td><td>88/63/36</td><td>90/64/42</td></tr><tr><td>Normal + DQ</td><td>95.9</td><td>96/94/84</td><td>68/53/42</td><td>77/50/30</td><td>62/04/00</td><td>84/59/40</td><td>87/50/27</td></tr><tr><td>Feature Squeezing</td><td>94.1</td><td>94/92/81</td><td>61/35/27</td><td>76/40/21</td><td>64/02/00</td><td>87/62/30</td><td>89/70/42</td></tr><tr><td>Feature Squeezing + DQ</td><td>94.9</td><td>95/93/82</td><td>66/48/33</td><td>77/51/29</td><td>66/06/01</td><td>87/62/29</td><td>90/70/43</td></tr><tr><td>Adversarial R+FGSM</td><td>91.6</td><td>92/91/91</td><td>81/52/38</td><td>87/69/48</td><td>84/43/11</td><td>92/89/85</td><td>92/91/89</td></tr><tr><td>Adversarial R+FGSM+DQ</td><td>94.0</td><td>94/93/93</td><td>85/63/51</td><td>90/74/58</td><td>87/50/22</td><td>93/91/87</td><td>94/92/92</td></tr><tr><td>Adversarial PGD</td><td>86.6</td><td>86/86/86</td><td>74/46/31</td><td>79/63/46</td><td>76/44/20</td><td>84/83/81</td><td>84/83/83</td></tr><tr><td>Adversarial PGD + DQ</td><td>87.5</td><td>87/87/87</td><td>79/53/36</td><td>83/69/52</td><td>81/50/22</td><td>87786/82</td><td>87/86/86</td></tr></table>",
988
+ "bbox": [
989
+ 189,
990
+ 131,
991
+ 808,
992
+ 299
993
+ ],
994
+ "page_idx": 8
995
+ },
996
+ {
997
+ "type": "table",
998
+ "img_path": "images/2daa2326baf725928163557ff32c242ac1bd58f44349f64003af7c24992fe994.jpg",
999
+ "table_caption": [
1000
+ "Table 4. DQ method improves the training of normal quantized models by limiting the dynamic range of activation. With conventional quantization, ReLU1 suffers from inferior performance than ReLU6. While with DQ, the gap is fixed, ReLU1 and ReLU6 quantized models achieve similar accuracy. "
1001
+ ],
1002
+ "table_footnote": [],
1003
+ "table_body": "<table><tr><td></td><td>ReLU1</td><td>ReLU6</td><td>Difference</td></tr><tr><td>Vanilla Quantization</td><td>93.49%</td><td>94.41%</td><td>-0.92%</td></tr><tr><td>Defensive Quantization</td><td>95.14%</td><td>95.09%</td><td>0.05%</td></tr></table>",
1004
+ "bbox": [
1005
+ 303,
1006
+ 376,
1007
+ 692,
1008
+ 434
1009
+ ],
1010
+ "page_idx": 8
1011
+ },
1012
+ {
1013
+ "type": "text",
1014
+ "text": "",
1015
+ "bbox": [
1016
+ 174,
1017
+ 467,
1018
+ 825,
1019
+ 523
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "6 CONCLUSION ",
1026
+ "text_level": 1,
1027
+ "bbox": [
1028
+ 174,
1029
+ 540,
1030
+ 318,
1031
+ 555
1032
+ ],
1033
+ "page_idx": 8
1034
+ },
1035
+ {
1036
+ "type": "text",
1037
+ "text": "In this work, we aim to raise people’s awareness about the security of the quantized neural networks, which is widely deployed in GPU/TPU/FPGAs, and pave a possible direction to bridge two important areas in deep learning: efficiency and robustness. We connect these two domains by designing a novel Defensive Quantization (DQ) module to defend adversarial attacks while maintain the efficiency. Experimental results on two datasets validate that the new quantization method can make the deep learning models be safely deployed on mobile devices. ",
1038
+ "bbox": [
1039
+ 174,
1040
+ 570,
1041
+ 826,
1042
+ 654
1043
+ ],
1044
+ "page_idx": 8
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "ACKNOWLEDGMENTS ",
1049
+ "text_level": 1,
1050
+ "bbox": [
1051
+ 176,
1052
+ 667,
1053
+ 326,
1054
+ 681
1055
+ ],
1056
+ "page_idx": 8
1057
+ },
1058
+ {
1059
+ "type": "text",
1060
+ "text": "We acknowledge Google and Amazon providing us the cloud computing resources. ",
1061
+ "bbox": [
1062
+ 174,
1063
+ 694,
1064
+ 715,
1065
+ 709
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "REFERENCES ",
1072
+ "bbox": [
1073
+ 176,
1074
+ 724,
1075
+ 285,
1076
+ 741
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "Mart´ın Abadi, Paul Barham, Jianmin Chen, Zhifeng Chen, Andy Davis, Jeffrey Dean, Matthieu Devin, Sanjay Ghemawat, Geoffrey Irving, Michael Isard, et al. Tensorflow: a system for large-scale machine learning. In OSDI, volume 16, pp. 265–283, 2016. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 755,
1086
+ 825,
1087
+ 797
1088
+ ],
1089
+ "page_idx": 8
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "Dario Amodei, Chris Olah, Jacob Steinhardt, Paul Christiano, John Schulman, and Dan Mane.´ Concrete problems in ai safety. arXiv preprint arXiv:1606.06565, 2016. ",
1094
+ "bbox": [
1095
+ 174,
1096
+ 810,
1097
+ 825,
1098
+ 839
1099
+ ],
1100
+ "page_idx": 8
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "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. ",
1105
+ "bbox": [
1106
+ 171,
1107
+ 852,
1108
+ 825,
1109
+ 882
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "Peter L Bartlett, Dylan J Foster, and Matus J Telgarsky. Spectrally-normalized margin bounds for neural networks. In Advances in Neural Information Processing Systems, pp. 6240–6249, 2017. ",
1116
+ "bbox": [
1117
+ 173,
1118
+ 895,
1119
+ 823,
1120
+ 924
1121
+ ],
1122
+ "page_idx": 8
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "Yoshua Bengio, Nicholas Leonard, and Aaron Courville. Estimating or propagating gradients through ´ stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013. ",
1127
+ "bbox": [
1128
+ 173,
1129
+ 103,
1130
+ 823,
1131
+ 133
1132
+ ],
1133
+ "page_idx": 9
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "Moustapha Cisse, Piotr Bojanowski, Edouard Grave, Yann Dauphin, and Nicolas Usunier. Parseval networks: Improving robustness to adversarial examples. arXiv preprint arXiv:1704.08847, 2017. ",
1138
+ "bbox": [
1139
+ 174,
1140
+ 140,
1141
+ 823,
1142
+ 170
1143
+ ],
1144
+ "page_idx": 9
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "Matthieu Courbariaux and Yoshua Bengio. Binarynet: Training deep neural networks with weights and activations constrained to+ 1 or-1. arXiv preprint arXiv:1602.02830, 2016. ",
1149
+ "bbox": [
1150
+ 171,
1151
+ 176,
1152
+ 823,
1153
+ 207
1154
+ ],
1155
+ "page_idx": 9
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "text": "Guneet S Dhillon, Kamyar Azizzadenesheli, Zachary C Lipton, Jeremy Bernstein, Jean Kossaifi, Aran Khanna, and Anima Anandkumar. Stochastic activation pruning for robust adversarial defense. arXiv preprint arXiv:1803.01442, 2018. ",
1160
+ "bbox": [
1161
+ 176,
1162
+ 214,
1163
+ 825,
1164
+ 257
1165
+ ],
1166
+ "page_idx": 9
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "Angus Galloway, Graham W Taylor, and Medhat Moussa. Attacking binarized neural networks. arXiv preprint arXiv:1711.00449, 2017. ",
1171
+ "bbox": [
1172
+ 169,
1173
+ 265,
1174
+ 825,
1175
+ 295
1176
+ ],
1177
+ "page_idx": 9
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Ian J Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and harnessing adversarial examples (2014). arXiv preprint arXiv:1412.6572. ",
1182
+ "bbox": [
1183
+ 171,
1184
+ 301,
1185
+ 825,
1186
+ 332
1187
+ ],
1188
+ "page_idx": 9
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural networks with pruning, trained quantization and huffman coding. arXiv preprint arXiv:1510.00149, 2015. ",
1193
+ "bbox": [
1194
+ 171,
1195
+ 339,
1196
+ 823,
1197
+ 369
1198
+ ],
1199
+ "page_idx": 9
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "Andrew G Howard, Menglong Zhu, Bo Chen, Dmitry Kalenichenko, Weijun Wang, Tobias Weyand, Marco Andreetto, and Hartwig Adam. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv preprint arXiv:1704.04861, 2017. ",
1204
+ "bbox": [
1205
+ 176,
1206
+ 376,
1207
+ 825,
1208
+ 420
1209
+ ],
1210
+ "page_idx": 9
1211
+ },
1212
+ {
1213
+ "type": "text",
1214
+ "text": "Benoit Jacob, Skirmantas Kligys, Bo Chen, Menglong Zhu, Matthew Tang, Andrew Howard, Hartwig Adam, and Dmitry Kalenichenko. Quantization and training of neural networks for efficient integer-arithmetic-only inference. arXiv preprint arXiv:1712.05877, 2017. ",
1215
+ "bbox": [
1216
+ 178,
1217
+ 426,
1218
+ 825,
1219
+ 470
1220
+ ],
1221
+ "page_idx": 9
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
1226
+ "bbox": [
1227
+ 171,
1228
+ 478,
1229
+ 826,
1230
+ 494
1231
+ ],
1232
+ "page_idx": 9
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial machine learning at scale. arXiv preprint arXiv:1611.01236, 2016. ",
1237
+ "bbox": [
1238
+ 171,
1239
+ 501,
1240
+ 823,
1241
+ 531
1242
+ ],
1243
+ "page_idx": 9
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Fangzhou Liao, Ming Liang, Yinpeng Dong, Tianyu Pang, Jun Zhu, and Xiaolin Hu. Defense against adversarial attacks using high-level representation guided denoiser. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1778–1787, 2018. ",
1248
+ "bbox": [
1249
+ 173,
1250
+ 537,
1251
+ 823,
1252
+ 582
1253
+ ],
1254
+ "page_idx": 9
1255
+ },
1256
+ {
1257
+ "type": "text",
1258
+ "text": "Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards deep learning models resistant to adversarial attacks. arXiv preprint arXiv:1706.06083, 2017. ",
1259
+ "bbox": [
1260
+ 174,
1261
+ 589,
1262
+ 823,
1263
+ 632
1264
+ ],
1265
+ "page_idx": 9
1266
+ },
1267
+ {
1268
+ "type": "text",
1269
+ "text": "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, volume 2011, pp. 5, 2011. ",
1270
+ "bbox": [
1271
+ 176,
1272
+ 640,
1273
+ 825,
1274
+ 684
1275
+ ],
1276
+ "page_idx": 9
1277
+ },
1278
+ {
1279
+ "type": "text",
1280
+ "text": "NVIDIA. Nvidia turing architecture whitepaper. URL https://www.nvidia.com/ content/dam/en-zz/Solutions/design-visualization/technologies/ turing-architecture/NVIDIA-Turing-Architecture-Whitepaper.pdf. ",
1281
+ "bbox": [
1282
+ 173,
1283
+ 691,
1284
+ 825,
1285
+ 734
1286
+ ],
1287
+ "page_idx": 9
1288
+ },
1289
+ {
1290
+ "type": "text",
1291
+ "text": "Nicolas Papernot, Patrick McDaniel, Ian Goodfellow, Somesh Jha, Z Berkay Celik, and Ananthram Swami. Practical black-box attacks against deep learning systems using adversarial examples. arXiv preprint, 2016a. ",
1292
+ "bbox": [
1293
+ 174,
1294
+ 742,
1295
+ 825,
1296
+ 785
1297
+ ],
1298
+ "page_idx": 9
1299
+ },
1300
+ {
1301
+ "type": "text",
1302
+ "text": "Nicolas Papernot, Patrick McDaniel, Xi Wu, Somesh Jha, and Ananthram Swami. Distillation as a defense to adversarial perturbations against deep neural networks. In 2016 IEEE Symposium on Security and Privacy (SP), pp. 582–597. IEEE, 2016b. ",
1303
+ "bbox": [
1304
+ 173,
1305
+ 792,
1306
+ 823,
1307
+ 837
1308
+ ],
1309
+ "page_idx": 9
1310
+ },
1311
+ {
1312
+ "type": "text",
1313
+ "text": "Haifeng Qian and Mark N Wegman. L2-nonexpansive neural networks. arXiv preprint arXiv:1802.07896, 2018. ",
1314
+ "bbox": [
1315
+ 171,
1316
+ 844,
1317
+ 825,
1318
+ 873
1319
+ ],
1320
+ "page_idx": 9
1321
+ },
1322
+ {
1323
+ "type": "text",
1324
+ "text": "Adnan Siraj Rakin, Jinfeng Yi, Boqing Gong, and Deliang Fan. Defend deep neural networks against adversarial examples via fixed anddynamic quantized activation functions. arXiv preprint arXiv:1807.06714, 2018. ",
1325
+ "bbox": [
1326
+ 176,
1327
+ 881,
1328
+ 825,
1329
+ 924
1330
+ ],
1331
+ "page_idx": 9
1332
+ },
1333
+ {
1334
+ "type": "text",
1335
+ "text": "Mohammad Rastegari, Vicente Ordonez, Joseph Redmon, and Ali Farhadi. Xnor-net: Imagenet classification using binary convolutional neural networks. In European Conference on Computer Vision, pp. 525–542. Springer, 2016. ",
1336
+ "bbox": [
1337
+ 174,
1338
+ 103,
1339
+ 823,
1340
+ 146
1341
+ ],
1342
+ "page_idx": 10
1343
+ },
1344
+ {
1345
+ "type": "text",
1346
+ "text": "Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. Inverted residuals and linear bottlenecks: Mobile networks for classification, detection and segmentation. arXiv preprint arXiv:1801.04381, 2018. ",
1347
+ "bbox": [
1348
+ 173,
1349
+ 155,
1350
+ 823,
1351
+ 196
1352
+ ],
1353
+ "page_idx": 10
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
1358
+ "bbox": [
1359
+ 171,
1360
+ 207,
1361
+ 825,
1362
+ 236
1363
+ ],
1364
+ "page_idx": 10
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "text": "Yang Song, Taesup Kim, Sebastian Nowozin, Stefano Ermon, and Nate Kushman. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. arXiv preprint arXiv:1710.10766, 2017. ",
1369
+ "bbox": [
1370
+ 176,
1371
+ 244,
1372
+ 825,
1373
+ 286
1374
+ ],
1375
+ "page_idx": 10
1376
+ },
1377
+ {
1378
+ "type": "text",
1379
+ "text": "Dong Su, Huan Zhang, Hongge Chen, Jinfeng Yi, Pin-Yu Chen, and Yupeng Gao. Is robustness the cost of accuracy?–a comprehensive study on the robustness of 18 deep image classification models. arXiv preprint arXiv:1808.01688, 2018. ",
1380
+ "bbox": [
1381
+ 173,
1382
+ 295,
1383
+ 825,
1384
+ 338
1385
+ ],
1386
+ "page_idx": 10
1387
+ },
1388
+ {
1389
+ "type": "text",
1390
+ "text": "Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. arXiv preprint arXiv:1312.6199, 2013. ",
1391
+ "bbox": [
1392
+ 171,
1393
+ 347,
1394
+ 825,
1395
+ 376
1396
+ ],
1397
+ "page_idx": 10
1398
+ },
1399
+ {
1400
+ "type": "text",
1401
+ "text": "Florian Tramer, Alexey Kurakin, Nicolas Papernot, Ian Goodfellow, Dan Boneh, and Patrick Mc- \\` Daniel. Ensemble adversarial training: Attacks and defenses. arXiv preprint arXiv:1705.07204, 2017. ",
1402
+ "bbox": [
1403
+ 174,
1404
+ 385,
1405
+ 826,
1406
+ 428
1407
+ ],
1408
+ "page_idx": 10
1409
+ },
1410
+ {
1411
+ "type": "text",
1412
+ "text": "David Warde-Farley and Ian Goodfellow. 11 adversarial perturbations of deep neural networks. Perturbations, Optimization, and Statistics, pp. 311, 2016. ",
1413
+ "bbox": [
1414
+ 174,
1415
+ 436,
1416
+ 825,
1417
+ 467
1418
+ ],
1419
+ "page_idx": 10
1420
+ },
1421
+ {
1422
+ "type": "text",
1423
+ "text": "Weilin Xu, David Evans, and Yanjun Qi. Feature squeezing: Detecting adversarial examples in deep neural networks. arXiv preprint arXiv:1704.01155, 2017. ",
1424
+ "bbox": [
1425
+ 174,
1426
+ 474,
1427
+ 825,
1428
+ 503
1429
+ ],
1430
+ "page_idx": 10
1431
+ },
1432
+ {
1433
+ "type": "text",
1434
+ "text": "Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. ",
1435
+ "bbox": [
1436
+ 173,
1437
+ 511,
1438
+ 825,
1439
+ 540
1440
+ ],
1441
+ "page_idx": 10
1442
+ },
1443
+ {
1444
+ "type": "text",
1445
+ "text": "Shuchang Zhou, Yuxin Wu, Zekun Ni, Xinyu Zhou, He Wen, and Yuheng Zou. Dorefa-net: Training low bitwidth convolutional neural networks with low bitwidth gradients. arXiv preprint arXiv:1606.06160, 2016. ",
1446
+ "bbox": [
1447
+ 173,
1448
+ 549,
1449
+ 825,
1450
+ 592
1451
+ ],
1452
+ "page_idx": 10
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "text": "Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained ternary quantization. arXiv preprint arXiv:1612.01064, 2016. ",
1457
+ "bbox": [
1458
+ 171,
1459
+ 602,
1460
+ 825,
1461
+ 631
1462
+ ],
1463
+ "page_idx": 10
1464
+ },
1465
+ {
1466
+ "type": "text",
1467
+ "text": "A GRADIENT MASKING OF OTHER METHODS ",
1468
+ "text_level": 1,
1469
+ "bbox": [
1470
+ 176,
1471
+ 102,
1472
+ 570,
1473
+ 118
1474
+ ],
1475
+ "page_idx": 11
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "A.1 TANH-BASED ACTIVATION QUANTIZATION LEADS TO FAKE SECURITY ",
1480
+ "text_level": 1,
1481
+ "bbox": [
1482
+ 176,
1483
+ 133,
1484
+ 705,
1485
+ 148
1486
+ ],
1487
+ "page_idx": 11
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Rakin et al. (2018) tried to use activation quantization as a defense method against adversarial samples. According to their experiments, simply Tanh based activation quantization can greatly improve the model’s robustness under PGD adversarial training setting. We reproduced their experiments by training a ResNet-18 model with PGD adversarial training on CIFAR-10 following Madry et al. (2017). To make a comparison, we also trained a full precision model and a ReLU6 quantized model following same setting. All the quantized models use bi $^ { = 2 }$ . We tested the trained model using PGD attack by Madry et al. (2017) under both white-box and black-box setting. We use a VGG-16 model separately trained with PGD adversarial training as the black-box attacker. The results are provided in Table 5. ",
1492
+ "bbox": [
1493
+ 174,
1494
+ 160,
1495
+ 825,
1496
+ 286
1497
+ ],
1498
+ "page_idx": 11
1499
+ },
1500
+ {
1501
+ "type": "table",
1502
+ "img_path": "images/eb62c450ccbfe8886cc43b7fb43b9f542b1db88a31c55696a41bd8d968f82e06.jpg",
1503
+ "table_caption": [
1504
+ "Table 5. Tanh-based quantization improves white-box robustness, while suffers from inferior black-box robustness compared to full-precision model. The white-box accuracy is even higher than black-box, suggesting gradient masking. Setup: white-box and black-box robustness of PGD adversarially trained ResNet-18 on CIFAR-10. Quantization uses 2 bits. "
1505
+ ],
1506
+ "table_footnote": [],
1507
+ "table_body": "<table><tr><td></td><td>Clean Acc.</td><td>White-Box Acc.</td><td>Black-Box Acc.</td></tr><tr><td>Full-Precision</td><td>83.47%</td><td>50.51%</td><td>65.58%</td></tr><tr><td>Tanh Quantized</td><td>81.60%</td><td>71.03%</td><td>61.57%</td></tr><tr><td>ReLU6 Quantized</td><td>78.97%</td><td>48.90%</td><td>59.44%</td></tr></table>",
1508
+ "bbox": [
1509
+ 266,
1510
+ 368,
1511
+ 732,
1512
+ 449
1513
+ ],
1514
+ "page_idx": 11
1515
+ },
1516
+ {
1517
+ "type": "text",
1518
+ "text": "Our white-box result is consistent with (Rakin et al., 2018), where Tanh based quantizaion with PGD training gives much higher white-box accuracy compared to the full precision model. However, we can see that the black-box robustness decreases. Worse still, the black-box attack successful rate is even lower than white-box, which is abnormal since black-box attack is generally weaker than white-box. This phenomenon indicates severe gradient masking problem (Papernot et al., 2016a; Athalye et al., 2018), which gives a false sense of security. As a comparison, we also trained a ReLU6 quantized model. With ReLU6 quantization, there is no sign of gradient masking, nor improvement in robustness, indicating that gradient masking problem majorly comes from Tanh activation function. Actually, ReLU6 quantized model has slightly worse robustness. ",
1519
+ "bbox": [
1520
+ 173,
1521
+ 474,
1522
+ 825,
1523
+ 599
1524
+ ],
1525
+ "page_idx": 11
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "Therefore we conclude that simple quantization cannot help to improve robustness. Instead, it leads to inferior robustness. ",
1530
+ "bbox": [
1531
+ 176,
1532
+ 606,
1533
+ 823,
1534
+ 635
1535
+ ],
1536
+ "page_idx": 11
1537
+ },
1538
+ {
1539
+ "type": "text",
1540
+ "text": "A.2 ADVERSARIAL FGSM TRAINING CAUSES GRADIENT MASKING ",
1541
+ "text_level": 1,
1542
+ "bbox": [
1543
+ 176,
1544
+ 648,
1545
+ 663,
1546
+ 664
1547
+ ],
1548
+ "page_idx": 11
1549
+ },
1550
+ {
1551
+ "type": "text",
1552
+ "text": "Here we demonstrate that FGSM adversarial training leads to significant gradient masking problem, while $\\mathrm { R + F G S M }$ fixes such issues. We trained a Wide ResNet using adversarial FGSM and adversarial $\\mathrm { R + F G S M }$ respectively. Then the model is tested using FGSM with $\\epsilon = 8$ under white-box and black-box setting (VGG-16 as substitute). The results are shown in Table ",
1553
+ "bbox": [
1554
+ 174,
1555
+ 676,
1556
+ 825,
1557
+ 733
1558
+ ],
1559
+ "page_idx": 11
1560
+ },
1561
+ {
1562
+ "type": "table",
1563
+ "img_path": "images/d9125ec4325699a005f243bf2bec557a35ac05c336099c9608da0ece1f633930.jpg",
1564
+ "table_caption": [
1565
+ "Table 6. White-box and black-box robustness of FGSM/R $+$ FGSM adversarially trained Wide ResNet on CIFAR-10. "
1566
+ ],
1567
+ "table_footnote": [],
1568
+ "table_body": "<table><tr><td></td><td>Clean Acc.</td><td>White-Box Acc.</td><td>Black-Box Acc.</td></tr><tr><td>Adversarial FGSM</td><td>94.55%</td><td>94.18%</td><td>51.65%</td></tr><tr><td>Adversarial R+FGSM</td><td>91.61%</td><td>51.65%</td><td>87.39%</td></tr></table>",
1569
+ "bbox": [
1570
+ 253,
1571
+ 794,
1572
+ 743,
1573
+ 859
1574
+ ],
1575
+ "page_idx": 11
1576
+ },
1577
+ {
1578
+ "type": "text",
1579
+ "text": "We can clearly see the same gradient masking effect. For adversarial FGSM training, it gives much higher white box robustness than $\\mathrm { R + F G S M }$ adversarial training, while the black-box robustness is much worse. To avoid gradient masking, we thus use $\\mathrm { R + F G S M }$ adversarial training instead. ",
1580
+ "bbox": [
1581
+ 176,
1582
+ 882,
1583
+ 823,
1584
+ 924
1585
+ ],
1586
+ "page_idx": 11
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "B HYPER-PARAMETERS: $\\beta$ STUDY ",
1591
+ "text_level": 1,
1592
+ "bbox": [
1593
+ 173,
1594
+ 102,
1595
+ 475,
1596
+ 118
1597
+ ],
1598
+ "page_idx": 12
1599
+ },
1600
+ {
1601
+ "type": "image",
1602
+ "img_path": "images/24334ee8c75cd66a51ecbe9b9fd106ccbe2d6b0b31ef07fd3ca2ab77d2e2b576.jpg",
1603
+ "image_caption": [
1604
+ "Figure 6. Clean and adversarial accuracy of 4-bit quantized Wide ResNet w.r.t. different $\\beta$ "
1605
+ ],
1606
+ "image_footnote": [],
1607
+ "bbox": [
1608
+ 269,
1609
+ 137,
1610
+ 728,
1611
+ 292
1612
+ ],
1613
+ "page_idx": 12
1614
+ },
1615
+ {
1616
+ "type": "text",
1617
+ "text": "As observed in Section 5.1, the adversarial robustness of the model generally increases as $\\beta$ gets larger. Here we aim to find what is the optimal $\\beta$ for our experiment. We took 4-bit quantized Wide ResNet for example. As shown in Figure 6, the adversarial accuracy first gets larger as $\\beta$ increases, and slowly goes down afterwards, reaching peak performance at $\\beta = 0 . 0 0 2$ . The clean accuracy is more stable. At the first stage, as regularization gets stronger, the effect of noise amplify is suppressed more. While for the second stage, the training suffers from a too strong regularization. Therefore, we used a $\\beta = 0 . 0 0 2$ for our experiments unless specified. ",
1618
+ "bbox": [
1619
+ 173,
1620
+ 332,
1621
+ 826,
1622
+ 430
1623
+ ],
1624
+ "page_idx": 12
1625
+ },
1626
+ {
1627
+ "type": "text",
1628
+ "text": "C VISUALIZE SAMPLES AND PREDICTIONS ",
1629
+ "text_level": 1,
1630
+ "bbox": [
1631
+ 173,
1632
+ 102,
1633
+ 547,
1634
+ 118
1635
+ ],
1636
+ "page_idx": 13
1637
+ },
1638
+ {
1639
+ "type": "text",
1640
+ "text": "We visualize some of the clean and adversarial samples from CIFAR-10 test set, and the corresponding prediction for full precision model (FP), vanilla 4-bit quantized model (VQ) and our 4-bit Defensive Quantization model (DQ), as 4-bit quantization is now now supported by Tensor Cores with NVIDIA’s Turing Architecture (NVIDIA). Predicted class and probability is provided. Compared to FP and DQ, VQ has worse robustness by misclassifying more adversarial samples (sample 1, 2, 4, 6). Our DQ model enjoys better robustness than FP model in two aspects: 1. our DQ model succeeds to defend some of the attacks when FP failed (sample 5, 7); 2. our DQ model has a better confidence for true label compared to FP model when both succeeds to defend (sample 1, 4, 6). Even when all models fail to defend, our DQ model has the lowest confidence for the misclassified class (sample 3, 8). ",
1641
+ "bbox": [
1642
+ 173,
1643
+ 131,
1644
+ 826,
1645
+ 257
1646
+ ],
1647
+ "page_idx": 13
1648
+ },
1649
+ {
1650
+ "type": "image",
1651
+ "img_path": "images/2156801777e07b0beb707dcc469d27461342850f85114ac60ee0e622f52c6f90.jpg",
1652
+ "image_caption": [
1653
+ "Figure 7. Visualization of adversarial samples and the corresponding predictions (label and probability). FP: full-precision model; VQ: vanilla 4-bit quantized model; DQ: our 4-bit Defensive Quantization model "
1654
+ ],
1655
+ "image_footnote": [],
1656
+ "bbox": [
1657
+ 225,
1658
+ 270,
1659
+ 777,
1660
+ 880
1661
+ ],
1662
+ "page_idx": 13
1663
+ }
1664
+ ]
parse/train/ryetZ20ctX/ryetZ20ctX_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/ryetZ20ctX/ryetZ20ctX_model.json ADDED
The diff for this file is too large to render. See raw diff