Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- parse/train/-QxT4mJdijq/-QxT4mJdijq.md +439 -0
- parse/train/-QxT4mJdijq/-QxT4mJdijq_content_list.json +0 -0
- parse/train/-QxT4mJdijq/-QxT4mJdijq_middle.json +0 -0
- parse/train/-QxT4mJdijq/-QxT4mJdijq_model.json +0 -0
- parse/train/8jFiomKUnaT/8jFiomKUnaT.md +542 -0
- parse/train/8jFiomKUnaT/8jFiomKUnaT_content_list.json +1587 -0
- parse/train/8jFiomKUnaT/8jFiomKUnaT_middle.json +0 -0
- parse/train/8jFiomKUnaT/8jFiomKUnaT_model.json +0 -0
- parse/train/B1gdkxHFDH/B1gdkxHFDH.md +628 -0
- parse/train/B1gdkxHFDH/B1gdkxHFDH_content_list.json +0 -0
- parse/train/B1gdkxHFDH/B1gdkxHFDH_middle.json +0 -0
- parse/train/B1gdkxHFDH/B1gdkxHFDH_model.json +0 -0
- parse/train/H139Q_gAW/H139Q_gAW.md +287 -0
- parse/train/H139Q_gAW/H139Q_gAW_content_list.json +1505 -0
- parse/train/H139Q_gAW/H139Q_gAW_middle.json +0 -0
- parse/train/H139Q_gAW/H139Q_gAW_model.json +0 -0
- parse/train/HJGwcKclx/HJGwcKclx.md +334 -0
- parse/train/HJGwcKclx/HJGwcKclx_content_list.json +1602 -0
- parse/train/HJGwcKclx/HJGwcKclx_middle.json +0 -0
- parse/train/HJGwcKclx/HJGwcKclx_model.json +0 -0
- parse/train/HkuVu3ige/HkuVu3ige.md +253 -0
- parse/train/HkuVu3ige/HkuVu3ige_content_list.json +1334 -0
- parse/train/HkuVu3ige/HkuVu3ige_middle.json +0 -0
- parse/train/HkuVu3ige/HkuVu3ige_model.json +0 -0
- parse/train/HyxnnnVtwB/HyxnnnVtwB.md +474 -0
- parse/train/HyxnnnVtwB/HyxnnnVtwB_content_list.json +0 -0
- parse/train/HyxnnnVtwB/HyxnnnVtwB_middle.json +0 -0
- parse/train/HyxnnnVtwB/HyxnnnVtwB_model.json +0 -0
- parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK.md +0 -0
- parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK_content_list.json +0 -0
- parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK_middle.json +0 -0
- parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK_model.json +0 -0
- parse/train/P7GUAXxS3ym/P7GUAXxS3ym.md +242 -0
- parse/train/P7GUAXxS3ym/P7GUAXxS3ym_content_list.json +1025 -0
- parse/train/P7GUAXxS3ym/P7GUAXxS3ym_middle.json +0 -0
- parse/train/P7GUAXxS3ym/P7GUAXxS3ym_model.json +0 -0
- parse/train/SJgw51HFDr/SJgw51HFDr.md +455 -0
- parse/train/SJgw51HFDr/SJgw51HFDr_content_list.json +0 -0
- parse/train/SJgw51HFDr/SJgw51HFDr_middle.json +0 -0
- parse/train/SJgw51HFDr/SJgw51HFDr_model.json +0 -0
- parse/train/SkA-IE06W/SkA-IE06W.md +595 -0
- parse/train/SkA-IE06W/SkA-IE06W_content_list.json +0 -0
- parse/train/SkA-IE06W/SkA-IE06W_middle.json +0 -0
- parse/train/SkA-IE06W/SkA-IE06W_model.json +0 -0
- parse/train/SkZxCk-0Z/SkZxCk-0Z.md +452 -0
- parse/train/SkZxCk-0Z/SkZxCk-0Z_content_list.json +0 -0
- parse/train/SkZxCk-0Z/SkZxCk-0Z_middle.json +0 -0
- parse/train/SkZxCk-0Z/SkZxCk-0Z_model.json +0 -0
- parse/train/UcoXdfrORC/UcoXdfrORC.md +413 -0
- parse/train/UcoXdfrORC/UcoXdfrORC_content_list.json +0 -0
parse/train/-QxT4mJdijq/-QxT4mJdijq.md
ADDED
|
@@ -0,0 +1,439 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# META-LEARNING SYMMETRIES BY REPARAMETERIZATION
|
| 2 |
+
|
| 3 |
+
Allan Zhou, Tom Knowles, Chelsea Finn Dept of Computer Science, Stanford University {ayz,tknowles,cbfinn}@stanford.edu
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Many successful deep learning architectures are equivariant to certain transformations in order to conserve parameters and improve generalization: most famously, convolution layers are equivariant to shifts of the input. This approach only works when practitioners know the symmetries of the task and can manually construct an architecture with the corresponding equivariances. Our goal is an approach for learning equivariances from data, without needing to design custom task-specific architectures. We present a method for learning and encoding equivariances into networks by learning corresponding parameter sharing patterns from data. Our method can provably represent equivariance-inducing parameter sharing for any finite group of symmetry transformations. Our experiments suggest that it can automatically learn to encode equivariances to common transformations used in image processing tasks. We provide our experiment code at https: //github.com/AllanYangZhou/metalearning-symmetries.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
In deep learning, the convolutional neural network (CNN) (LeCun et al., 1998) is a prime example of exploiting equivariance to a symmetry transformation to conserve parameters and improve generalization. In image classification (Russakovsky et al., 2015; Krizhevsky et al., 2012) and audio processing (Graves and Jaitly, 2014; Hannun et al., 2014) tasks, we may expect the layers of a deep network to learn feature detectors that are translation equivariant: if we translate the input, the output feature map is also translated. Convolution layers satisfy translation equivariance by definition, and produce remarkable results on these tasks. The success of convolution’s “built in” inductive bias suggests that we can similarly exploit other equivariances to solve machine learning problems.
|
| 12 |
+
|
| 13 |
+
However, there are substantial challenges with building in inductive biases. Identifying the correct biases to build in is challenging, and even if we do know the correct biases, it is often difficult to build them into a neural network. Practitioners commonly avoid this issue by “training in” desired equivariances (usually the special case of invariances) using data augmentation. However, data augmentation can be challenging in many problem settings and we would prefer to build the equivariance into the network itself. For example, robotics sim2real transfer approaches train agents that are robust to varying conditions by varying the simulated environment dynamics (Song et al., 2020). But this type of augmentation is not possible once the agent leaves the simulator and is trying to learn or adapt to a new task in the real world. Additionally, building in incorrect biases may actually be detrimental to final performance (Liu et al., 2018b).
|
| 14 |
+
|
| 15 |
+
In this work we aim for an approach that can automatically learn and encode equivariances into a neural network. This would free practitioners from having to design custom equivariant architectures for each task, and allow them to transfer any learned equivariances to new tasks. Neural network layers can achieve various equivariances through parameter sharing patterns, such as the spatial parameter sharing of standard convolutions. In this paper we reparameterize network layers to learnably represent sharing patterns. We leverage meta-learning to learn the sharing patterns that help a model generalize on new tasks.
|
| 16 |
+
|
| 17 |
+
The primary contribution of this paper is an approach to automatically learn equivariance-inducing parameter sharing, instead of using custom designed equivariant architectures. We show theoretically that reparameterization can represent networks equivariant to any finite symmetry group. Our experiments show that meta-learning can recover various convolutional architectures from data, and learn invariances to common data augmentation transformations.
|
| 18 |
+
|
| 19 |
+
# 2 RELATED WORK
|
| 20 |
+
|
| 21 |
+
A number of works have studied designing layers with equivariances to certain transformations such as permutation, rotation, reflection, and scaling (Gens and Domingos, 2014; Cohen and Welling, 2016; Zaheer et al., 2017; Worrall et al., 2017; Cohen et al., 2019; Weiler and Cesa, 2019; Worrall and Welling, 2019). These approaches focus on manually constructing layers analagous to standard convolution, but for other symmetry groups. Rather than building symmetries into the architecture, data augmentation (Beymer and Poggio, 1995; Niyogi et al., 1998) trains a network to satisfy them. Diaconu and Worrall (2019) use a hybrid approach that pre-trains a basis of rotated filters in order to define roto-translation equivariant convolution. Unlike these works, we aim to automatically build in symmetries by acquiring them from data.
|
| 22 |
+
|
| 23 |
+
Our approach is motivated in part by theoretical work characterizing the nature of equivariant layers for various symmetry groups. In particular, the analysis of our method as learning a certain kind of convolution is inspired by Kondor and Trivedi (2018), who show that under certain conditions all linear equivariant layers are (generalized) convolutions. Shawe-Taylor (1989) and Ravanbakhsh et al. (2017) analyze the relationship between desired symmetries in a layer and symmetries of the weight matrix. Ravanbakhsh et al. (2017) show that we can make a layer equivariant to the permutation representation of any discrete group through a corresponding parameter sharing pattern in the weight matrix. From this perspective, our reparameterization is a way of representing possible parameter sharing patterns, and the training procedure aims to learn the correct parameter sharing pattern that achieves a desired equivariance.
|
| 24 |
+
|
| 25 |
+
Prior work on automatically learning symmetries include methods for learning invariances in Gaussian processes (van der Wilk et al., 2018) and learning symmetries of physical systems (Greydanus et al., 2019; Cranmer et al., 2020). Another very recent line of work has shown that more general Transformer (Vaswani et al., 2017) style architectures can match or outperform traditional CNNs on image tasks, without baking in translation symmetry (Dosovitskiy et al., 2020). Their results suggest that Transformer architectures can automatically learn symmetries and other inductive biases from data, but typically only with very large training datasets. One can also consider automatic data augmentation strategies (Cubuk et al., 2018; Lorraine et al., 2019) as a way of learning symmetries, though the symmetries are not embedded into the network in a transferable way. Concurrent work by Benton et al. (2020) aims to learn invariances from data by learning distributions over transformations of the input, similar to learned data augmentation. Our method aims to learn parameter sharing of the layer weights which induces equivariance. Additionally, our objective for learning symmetries is driven directly by generalization error (in a meta-learning framework), while the objective in Benton et al. (2020) adds a regularizer to the training loss to encourage symmetry learning.
|
| 26 |
+
|
| 27 |
+
Our work is related to neural architecture search (Zoph and Le, 2016; Brock et al., 2017; Liu et al., 2018a; Elsken et al., 2018), which also aims to automate part of the model design process. Although architecture search methods are varied, they are generally not designed to exploit symmetry or learn equivariances. Evolutionary methods for learning both network weights and topology (Stanley and Miikkulainen, 2002; Stanley et al., 2009) are also not motivated by symmetry considerations.
|
| 28 |
+
|
| 29 |
+
Our method learns to exploit symmetries that are shared by a collection of tasks, a form of metalearning (Thrun and Pratt, 2012; Schmidhuber, 1987; Bengio et al., 1992; Hochreiter et al., 2001). We extend gradient based meta-learning (Finn et al., 2017; Li et al., 2017; Antoniou et al., 2018) to separately learn parameter sharing patterns (which enforce equivariance) and actual parameter values. Separately representing network weights in terms of a sharing pattern and parameter values is a form of reparameterization. Prior work has used weight reparameterization in order to “warp” the loss surface (Lee and Choi, 2018; Flennerhag et al., 2019) and to learn good latent spaces (Rusu et al., 2018) for optimization, rather than to encode equivariance. HyperNetworks (Ha et al., 2016; Schmidhuber, 1992) generate network layer weights using a separate smaller network, which can be viewed as a nonlinear reparameterization, albeit not one that encourages learning equivariances. Modular meta-learning (Alet et al., 2018) is a related technique that aims to achieve combinatorial generalization on new tasks by stacking meta-learned “modules,” each of which is a neural network.
|
| 30 |
+
|
| 31 |
+
This can be seen as parameter sharing by re-using and combining modules, rather than using our layerwise reparameterization.
|
| 32 |
+
|
| 33 |
+
# 3 PRELIMINARIES
|
| 34 |
+
|
| 35 |
+
In Sec. 3.1, we review gradient based meta-learning, which underlies our algorithm. Sections 3.2 and 3.3 build up a formal definition of equivariance and group convolution (Cohen and Welling, 2016), a generalization of standard convolution which defines equivariant operations for other groups such as rotation and reflection. These concepts are important for a theoretical understanding of our work as a method for learning group convolutions in Sec. 4.2.
|
| 36 |
+
|
| 37 |
+
# 3.1 GRADIENT BASED META-LEARNING
|
| 38 |
+
|
| 39 |
+
Our method is a gradient-based meta-learning algorithm that extends MAML (Finn et al., 2017), which we briefly review here. Suppose we have some task distribution $p ( \mathcal { T } )$ , where each task dataset is split into training and validation datasets $\{ \mathcal { D } _ { i } ^ { t r } , \mathcal { D } _ { i } ^ { v a l } \}$ . For a model with parameters $\theta$ , loss $\mathcal { L }$ , and learning rate $\alpha$ , the “inner loop” updates $\theta$ on the task’s training data: $\theta ^ { \prime } = \theta - \alpha \nabla _ { \theta } \mathcal { L } ( \theta , \mathcal { D } ^ { t r } )$ . In the “outer loop,” MAML meta-learns a good initialization $\theta$ by minimizing the loss of $\theta ^ { \prime }$ on the task’s validation data, with updates of the form meta-learning the inner loop initialization $\theta \gets \theta - \eta \frac { \mathrm { d } } { \mathrm { d } \theta } \mathcal { L } ( \theta ^ { \prime } , \mathcal { D } ^ { v a l } )$ . Although MAML focuses ona to meta-learning other things $\theta$
|
| 40 |
+
such as the inner learning rate $\alpha$ . In our method, we meta-learn a parameter sharing pattern at each layer that maximizes performance across the task distribution.
|
| 41 |
+
|
| 42 |
+
# 3.2 GROUPS AND GROUP ACTIONS
|
| 43 |
+
|
| 44 |
+
Symmetry and equivariance is usually studied in the context of groups and their actions on sets; refer to Dummit and Foote (2004) for more comprehensive coverage. A group $G$ is a set closed under some associative binary operation, where there is an identity element and each element has an inverse. Consider the group $( \mathbb { Z } , + )$ (the set of integers with addition): we can add any two integers to obtain another, each integer has an additive inverse, and 0 is the additive identity.
|
| 45 |
+
|
| 46 |
+
A group $G$ can act on a set $X$ through some action $\rho : G \to \operatorname { A u t } ( X )$ which maps each $g \in G$ to some transformation on $X$ . $\rho$ must be a homomorphism, i.e. $\rho ( g h ) ~ = ~ \rho ( g ) \rho ( h )$ for all $g , h \in G$ , and $\operatorname { A u t } ( X )$ is the set of automorphisms on $X$ (bijective homomorphisms from $X$ to itself). As a shorthand we write $g x : = \rho ( g ) ( x )$ for any $x \in X$ . Any group can act on itself by letting $X = G$ : for $( \mathbb { Z } , + )$ , we define the action $g x = g + x$ for any $g , x \in \mathbb { Z }$ .
|
| 47 |
+
|
| 48 |
+
The action of a group $G$ on a vector space $V$ is called a representation, which we denote $\pi : G \to G L ( V )$ . Recall $G L ( V )$ is the set of invertible linear maps on $V$ . Assume the vectors $v \in V$ are discrete, with components $v [ i ]$ . If we already have $G$ ’s action on the indices, a natural corresponding representation is defined $( \pi ( g ) v ) [ i ] : = { \overset { } { v } } [ g ^ { - 1 } i ]$ . As a concrete example,
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
Figure 1: Convolution as translating filters. Left: Standard 1-D convolution slides a filter $w$ along the length of input $x$ . This operation is translation equivariant: translating $x$ will translate $y$ . Right: Standard convolution is equivalent to a fully connected layer with a parameter sharing pattern: each row contains translated copies of the filter. Other equivariant layers will have their own sharing patterns.
|
| 52 |
+
|
| 53 |
+
consider the representation of $G = ( \mathbb { Z } , + )$ for infinite length vectors. The indices are also integers, so the group is acting on itself as defined above. Then $\tilde { ( \pi ( g ) v ) } [ i ] = v [ g ^ { - 1 } i ] = v [ i - g ]$ for any $g , i \in \mathbb { Z }$ . Hence this representation of $\mathbb { Z }$ shifts vectors by translating their indices by $g$ spaces.
|
| 54 |
+
|
| 55 |
+
# 3.3 EQUIVARIANCE AND CONVOLUTION
|
| 56 |
+
|
| 57 |
+
A function (like a neural network layer) is equivariant to some transformation if transforming the function’s input is the same as transforming its output. To be more precise, we must define what those transformations of the input and output are. Consider a neural network layer $\phi : \mathbb { R } ^ { n } \mathbb { R } ^ { m }$ .
|
| 58 |
+
|
| 59 |
+
Assume we have two representations $\pi _ { 1 } , \pi _ { 2 }$ of group $G$ on $\mathbb { R } ^ { n }$ and $\mathbb { R } ^ { m }$ , respectively. For each $g \in G$ , $\pi _ { 1 } ( g )$ transforms the input vectors, while $\pi _ { 2 } ( g )$ transforms the output vectors. The layer $\phi$ is $G$ -equivariant with respect to these transformations if $\phi ( \pi _ { 1 } ( g ) v ) = \bar { \pi _ { 2 } } ( g ) \phi ( v )$ , for any $g \in$ $G , v \in \mathbb { R } ^ { n }$ . If we choose $\pi _ { 2 } \equiv i d$ we get $\phi ( \pi _ { 1 } ( g ) v ) = \phi ( v )$ , showing that invariance is a type of equivariance.
|
| 60 |
+
|
| 61 |
+
Deep networks contain many layers, but function composition preserves equivariance. So if we achieve equivariance in each individual layer, the whole network will be equivariant. Pointwise nonlinearities such as ReLU and sigmoid are already equivariant to any permutation of the input and output indices, which includes translation, reflection, and rotation. Hence we are primarily focused on enforcing equivariance in the linear layers.
|
| 62 |
+
|
| 63 |
+
Prior work (Kondor and Trivedi, 2018) has shown that a linear layer $\phi$ is equivariant to the action of some group if and only if it is a group convolution, which generalizes standard convolutions to arbitrary groups. For a specific $G$ , we call the corresponding group convolution “ $G$ -convolution” to distinguish it from standard convolution. Intuitively, $G$ -convolution transforms a filter according to each $g ~ \in ~ G$ , then computes a dot product between the transformed filter and the input. In standard convolution, the filter transformations correspond to translation (Fig. 1). $G$ -equivariant layers convolve an input $v \in \mathbb { R } ^ { n }$ with a filter $\psi \in \mathbb { R } ^ { n }$ . Assume the group $G = \{ g _ { 1 } , \cdots , g _ { m } \}$ is finite:
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\phi ( v ) [ j ] = ( v \star \psi ) [ j ] = \sum _ { i } v [ i ] ( \pi ( g _ { j } ) \psi ) [ i ] = \sum _ { i } v [ i ] \psi [ g _ { j } ^ { - 1 } i ]
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
In this work, we present a method that represents and learns parameter sharing patterns for existing layers, such as fully connected layers. These sharing patterns can force the layer to implement various group convolutions, and hence equivariant layers.
|
| 70 |
+
|
| 71 |
+
# 4 ENCODING AND LEARNING EQUIVARIANCE
|
| 72 |
+
|
| 73 |
+
To learn equivariances automatically, our method introduces a flexible representation that can encode possible equivariances, and an algorithm for learning which equivariances to encode. Here we describe this method, which we call Meta-learning Symmetries by Reparameterization (MSR).
|
| 74 |
+
|
| 75 |
+
# 4.1 LEARNABLE PARAMETER SHARING
|
| 76 |
+
|
| 77 |
+
As Fig. 1 shows, a fully connected layer can implement standard convolution if its weight matrix is constrained with a particular sharing pattern, where each row contains a translated copy of the same underlying filter parameters. This idea generalizes to equivariant layers for other transformations like rotation and reflection, but the sharing pattern depends on the transformation. Since we do not know the sharing pattern a priori, we “reparameterize” fully connected weight matrices to represent them in a general and flexible fashion. A fully connected layer $\phi : \mathbb { R } ^ { n } \mathbb { R } ^ { m }$ with weight matrix $W \in \mathbb { R } ^ { m \times n }$ is defined for input $x$ by $\phi ( x ) \ : = \ : W x$ . We can optionally incorporate biases by appending a dimension with value “1” to the input $x$ . We factorize $W$ as the product of a “symmetry matrix” $U$ and a vector $v$ of $k$ “filter parameters”:
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\operatorname { v e c } ( W ) = U v , \quad v \in \mathbb { R } ^ { k } , U \in \mathbb { R } ^ { m n \times k }
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
For fully connected layers, we reshape1 the vector $\operatorname { v e c } ( W ) \in \mathbb { R } ^ { m n }$ into a weight matrix $W \in \mathbb { R } ^ { m \times n }$ . Intuitively, $U$ encodes the pattern by which the weights $W$ will “share” the filter parameters $v$ . Crucially, we can now separate the problem of learning the sharing pattern (learning $U$ ) from the problem of learning the filter parameters $v$ . In Sec. 4.3, we discuss how to learn $U$ from data.
|
| 84 |
+
|
| 85 |
+
The symmetry matrix for each layer has mnk entries, which can become too expensive in larger layers. Kronecker factorization is a common approach for approximating a very large matrix with smaller ones (Martens and Grosse, 2015; Park and Oliva, 2019). In Appendix A we describe how we apply Kronecker approximation to Eq. 2, and analyze memory and computation efficiency.
|
| 86 |
+
|
| 87 |
+
In practice, there are certain equivariances that are expensive to meta-learn, but that we know to be useful: for example, standard 2D convolutions for image data. However, there may be still other symmetries of the data (i.e., rotation, scaling, reflection, etc.) that we still wish to learn
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\underbrace { \left( \begin{array} { l } { \pi ( \mathrm { e } ) } \\ { \pi ( \mathrm { g } ) } \\ { \rho ^ { \prime } } \\ { \sigma ^ { \prime } } \end{array} \right) } _ { \mathrm { g r o u p } } \underbrace { \left( \begin{array} { l } { 1 } \\ { 0 } \\ { 0 } \\ { 1 } \\ { 1 } \end{array} \right) } _ { \mathrm { s y m m e t r y } } \underbrace { \left( \begin{array} { l } { \equiv } \\ { \left\{ \begin{array} { l } { \overline { { \mathbf { \ } } } } \\ { \overline { { \mathbf { \ } } } } \\ { \mathbf { \mu } } \end{array} \right\} } \\ { \mathrm { p a r a m e t e r s } } \end{array} \right) } _ { \mathrm { m a t r i x } } = \underbrace { \left( \begin{array} { l } { \overline { { \mathbf { \mu } } } } \\ { \overline { { \mathbf { \mu } } } } \\ { \overline { { \mathbf { \mu } } } } \end{array} \right) } _ { \mathrm { m ~ \mu } } \xrightarrow { \mathrm { r e s h a p e } } \underbrace { \left( \underbrace { \left\{ \begin{array} { l } { \mathbf { \mu } } \\ { \mathbf { \mu } } \\ { \mathbf { \mu } } \\ { \mathrm { \mu } } \end{array} \right\} } _ { \mathrm { l o y e r } } \right) } _ { \mathrm { w e i g h t s } }
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
Figure 2: We reparameterize the weights of each layer in terms of a symmetry matrix $U$ that can enforce equivariant sharing patterns of the filter parameters $v$ . Here we show a $U$ that enforces permutation equivariance. More technically, the layer implements group convolution on the permutation group $S _ { 2 }$ : $U$ ’s block submatrices $\pi ( e ) , \pi ( g )$ define the action of each permutation on filter $v$ . Note that $U$ need not be binary in general.
|
| 94 |
+
|
| 95 |
+

|
| 96 |
+
Figure 3: For each task, the inner loop updates the filter parameters $v$ to the task using the inner loop loss. Note that the symmetry matrix $U$ does not change in the inner loop, and is only updated by the outer loop.
|
| 97 |
+
|
| 98 |
+
# Algorithm 1: MSR: Meta-Training
|
| 99 |
+
|
| 100 |
+
input: $\{ \mathcal { T } _ { j } \} _ { j = 1 } ^ { N } \sim p ( \mathcal { T } )$ : Meta-training tasks
|
| 101 |
+
input: $\{ \mathbf { U } , { \dot { \mathbf { v } } } \}$ : Randomly initialized symmetry matrices and filters.
|
| 102 |
+
input: $\alpha , \eta$ : Inner and outer loop step sizes.
|
| 103 |
+
while not done do sample minibatch $\{ \mathcal { T } _ { i } \} _ { i = 1 } ^ { n } \sim \{ \mathcal { T } _ { j } \} _ { j = 1 } ^ { N }$ ; forall $\mathcal { T } _ { i } \in \{ \mathcal { T } _ { i } \} _ { i = 1 } ^ { n } \mathbf { d }$ o $\{ \mathcal { D } _ { i } ^ { t r } , \mathcal { D } _ { i } ^ { v a l } \} \mathcal { T } _ { i }$ ; // task data $\pmb { \delta } _ { i } \gets \nabla _ { \mathbf { v } } \mathcal { L } ( \mathbf { U } , \mathbf { v } , \mathcal { D } _ { i } ^ { t r } ) ;$ $\mathbf { v } ^ { \prime } \mathbf { v } - \alpha \pmb { \delta } _ { i }$ ; // inner step /\* outer gradient $\star /$ $\begin{array} { r } { \mathbf { G } _ { i } \frac { \mathrm { d } } { \mathrm { d } \mathbf { U } } \mathcal { L } ( \mathbf { U } , \mathbf { v } ^ { \prime } , \mathcal { D } _ { i } ^ { v a l } ) } \end{array}$ ; /\* outer step \*/ U ← U − η P G i ; i
|
| 104 |
+
|
| 105 |
+
automatically. This suggests a “hybrid” approach, where we bake-in equivariances we know to be useful, and learn the others. Indeed, we can directly reparameterize a standard convolution layer by reshaping $\mathrm { v e c } ( W )$ into a convolution filter bank rather than a weight matrix. By doing so we bake in translational equivariance, but we can still learn things like rotation equivariance from data.
|
| 106 |
+
|
| 107 |
+
# 4.2 PARAMETER SHARING AND GROUP CONVOLUTION
|
| 108 |
+
|
| 109 |
+
By properly choosing the symmetry matrix $U$ of Eq. 2, we can force the layer to implement arbitrary group convolutions (Eq. 1) by filter $v$ . Recall that group convolutions generalize standard convolution to define operations that are equivariant to other transformations, such as rotation. Hence by choosing $U$ properly we can enforce various equivariances, which will be preserved regardless of the value of $v$ .
|
| 110 |
+
|
| 111 |
+
Proposition 1 Suppose $G$ is a finite group $\{ g _ { 1 } , \dotsc , g _ { m } \}$ . There exists a $U ^ { G } \in \mathbb { R } ^ { m n \times n }$ such that for any $v \in \mathbb { R } ^ { n }$ , the layer with weights $\nu e c ( W ) = U ^ { G } v$ implements $G$ -convolution on input $x \in \mathbb { R } ^ { n }$ . Moreover, with this fixed choice of $U ^ { G }$ , any $G$ -convolution can be represented by a weight matrix $\nu e c ( W ) = U ^ { G } v$ for some $v \in \mathbb { R } ^ { n }$ .
|
| 112 |
+
|
| 113 |
+
Intuitively, $U$ can store the symmetry transformations $\pi ( g )$ for each $g \in G$ , thus capturing how the filters should transform during $G$ -convolution. For example, Fig. 2 shows how $U$ can implement convolution on the permutation group $S _ { 2 }$ . We present a proof in Appendix B.
|
| 114 |
+
|
| 115 |
+
Subject to having a correct $U ^ { G }$ , $v$ is precisely the convolution filter in a $G$ -convolution. This will motivate the notion of separately learning the convolution filter $v$ and the symmetry structure $U$ in the inner and outer loops of a meta-learning process, respectively.
|
| 116 |
+
|
| 117 |
+
<table><tr><td colspan="8">Synthetic Problems MSE (lower is better)</td></tr><tr><td rowspan="2">Method</td><td colspan="3">Small train dataset</td><td colspan="4">Large train dataset</td></tr><tr><td>k=1</td><td>k=2</td><td>k=5</td><td>k=1</td><td></td><td>k=2</td><td>k=5</td></tr><tr><td>MAML-FC</td><td>3.4±.60</td><td>2.1± .35</td><td>1.0±.10</td><td>3.4±.49</td><td>2.0±.27</td><td></td><td>1.1 ± .11</td></tr><tr><td>MAML-LC</td><td>2.9 ± .53</td><td>1.8 ± .24</td><td>.87±.08</td><td>2.9 ±.42</td><td>1.6 ± .23</td><td></td><td>.89±.08</td></tr><tr><td>MAML-Conv</td><td>.00± .00</td><td>.43 ± .09</td><td>.41 ± .04</td><td>.00 ± .00</td><td>.53 ± .08</td><td></td><td>.49 ± .04</td></tr><tr><td>MTSR-FC (Ours)</td><td>3.2±.49</td><td>1.4 ± .17</td><td>.86± .06</td><td>.12 ± .03</td><td>.07 ± .02</td><td></td><td>.07 ± .01</td></tr><tr><td>MSR-Joint-FC (Ours)</td><td>.25± .16</td><td>.12 ± .04</td><td>.21 ± .03</td><td>.01± .00</td><td>.08±.02</td><td></td><td>.12 ± .02</td></tr><tr><td>MSR-FC (Ours)</td><td>.07±.02</td><td>.07± .02</td><td>.16 ± .02</td><td>.00± .00</td><td>.05 ± .01</td><td></td><td>.09 ±.01</td></tr></table>
|
| 118 |
+
|
| 119 |
+
Table 1: Meta-test MSE of different methods on synthetic data with (partial) translation symmetry. “Small” vs “large” train dataset refers to the number of examples per training task. Among methods with non-convolutional architectures, MSR-FC is closest to matching actual convolution (MAML-Conv) performance on translation equivariant $k = 1 \mathrm { \cdot }$ ) data. On data with less symmetry $k = 2 , 5$ ), MSR-FC outperforms MAML-Conv and other MAML approaches. MSR-Joint is an ablation of MSR where both $U$ and $v$ of Eq. 2 are updated on task train data, rather than just $v$ . MTSR is an ablation of MSR where we train the reparameterization using multi-task learning, rather than meta-learning. Results are shown with $9 5 \%$ confidence intervals over test tasks.
|
| 120 |
+
|
| 121 |
+
# 4.3 META-LEARNING EQUIVARIANCES
|
| 122 |
+
|
| 123 |
+
Meta-learning generally applies when we want to learn and exploit some shared structure in a distribution of tasks $p ( \mathcal T )$ . In this case, we assume the task distribution has some common underlying symmetry: i.e., models trained for each task should satisfy some set of shared equivariances. We extend gradient based meta-learning to automatically learn those equivariances.
|
| 124 |
+
|
| 125 |
+
Suppose we have an $L$ -layer network. We collect each layer’s symmetry matrix and filter parameters: $\mathbf { U } , { \bf { \dot { v } } } \gets \{ U ^ { 1 } , \cdots , U ^ { L } \} , \{ v ^ { 1 } , \cdot \cdot \cdot , v ^ { L } \}$ . Since we aim to learn equivariances that are shared across $p ( \mathcal { T } )$ ,the symmetry matrices should not change with the task. Hence, for any $\mathcal { T } _ { i } \sim p ( \mathcal { T } )$ the inner loop fixes $\mathbf { U }$ and only updates $\mathbf { v }$ using the task training data:
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\mathbf { v } ^ { \prime } \mathbf { v } - \alpha \nabla _ { \mathbf { v } } \mathcal { L } ( \mathbf { U } , \mathbf { v } , \mathcal { D } _ { i } ^ { t r } )
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
where $\mathcal { L }$ is simply the supervised learning loss, and $\alpha$ is the inner loop step size. During metatraining, the outer loop updates $\mathbf { U }$ by computing the loss on the task’s validation data using $\mathbf { v } ^ { \prime }$ :
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\mathbf { U } \gets \mathbf { U } - \eta \frac { \mathrm { d } } { \mathrm { d } \mathbf { U } } \mathcal { L } ( \mathbf { U } , \mathbf { v } ^ { \prime } , \mathcal { D } _ { i } ^ { v a l } )
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
We illustrate the inner and outer loop updates in Fig. 3. Note that in addition to meta-learning the symmetry matrices, we can also still meta-learn the filter initialization $\mathbf { v }$ as in prior work. In practice we also take outer updates averaged over mini-batches of tasks, as we describe in Alg. 1.
|
| 138 |
+
|
| 139 |
+
After meta-training is complete, we freeze the symmetry matrices U. On a new test task $\mathcal { T } _ { k } \sim p ( \mathcal { T } )$ , we use the inner loop (Eq. 3) to update only the filter $\mathbf { v }$ . The frozen $\mathbf { U }$ enforces meta-learned parameter sharing in each layer, which improves generalization by reducing the number of taskspecific inner loop parameters. For example, the sharing pattern of standard convolution makes the weight matrix constant along any diagonal, reducing the number of per-task parameters (see Fig. 1).
|
| 140 |
+
|
| 141 |
+
# 5 CAN WE RECOVER CONVOLUTIONAL STRUCTURE?
|
| 142 |
+
|
| 143 |
+
We now introduce a series of synthetic meta-learning problems, where each problem contains regression tasks that are guaranteed to have some symmetries, such as translation, rotation, or reflection. We combine meta-learning methods with general architectures not designed with these symmetries in mind to see whether each method can automatically meta-learn these equivariances.
|
| 144 |
+
|
| 145 |
+
# 5.1 LEARNING (PARTIAL) TRANSLATION SYMMETRY
|
| 146 |
+
|
| 147 |
+
Our first batch of synthetic problems contains tasks with translational symmetry: we generate outputs by feeding random input vectors through a 1-D locally connected (LC) layer with filter size 3 and no bias. Each task corresponds to different values of the LC filter, and the meta-learner must minimize mean squared error (MSE) after observing a single input-output pair. For each problem we constrain the LC filter weights with a rank $\bar { k \in \ \{ 1 , 2 , 5 \} }$ factorization, resulting in partial translation symmetry (Elsayed et al., 2020). In the case where rank $k = 1$ , the LC layer is equivalent to convolution (ignoring the biases) and thus generates exactly translation equivariant task data. We apply both MSR and MAML to this problem using a single fully connected layer (MSR-FC and MAML-FC), so these models have no translation equivariance built in and must meta-learn it to solve the tasks efficiently. For comparison, we also train convolutional and locally connected models with MAML (MAML-Conv and MAML-LC). Since MAML-Conv has built in translation equivariance, we expect it to at least perform well on the rank $k = 1$ problem.
|
| 148 |
+
|
| 149 |
+
We also ran two ablations of MSR that use the same reparameterization (Eq. 2) but vary the training procedure. In MSRJoint, we allow $U$ and $v$ to be jointly updated in the inner loop, instead of only updating $v$ in the inner loop. Hence MSRJoint is trained identically to MAML, but with reparameterized weights. MTSR is an ablation of MSR that trains using multi-task learning instead of meta-learning. Given data from training task $\mathcal { T } _ { i }$ , MTSR jointly optimizes $U$ (shared symmetry matrix) and $v ^ { ( i ) }$ (task specific filter parameters) using the MSE loss. For a new test task we freeze the optimized $U$ and optimize a newly initialized filter $v$ using the test task’s training data, then evaluate MSE on held out data. Even though the true filter that generates the data has width 3, for MSR and MTSR we initialize the learned filter $v$ to be the same size as the input, per Prop. 1. In principle, these methods should automatically meta-learn that the true filter is sparse, and to ignore the extra dimensions in $v$ . Appendix D.1 further explains the experimental setup.
|
| 150 |
+
|
| 151 |
+

|
| 152 |
+
Figure 4: After observing translation equivariant data, MSR enforces convolutional parameter sharing on the weight matrix. An example weight matrix is shown above.
|
| 153 |
+
|
| 154 |
+
Table 1 shows how each method performs on each of the synthetic problems, with columns denoting the rank $k$ of the problem’s data. The “small vs large train dataset” results differ only in that the latter contains 5 or 10 times more examples per training task, depending on $k$ . On fully translation equivariant data $k = 1$ ), MAML-Conv performs best due to its architecture having built in translation equivariance. MSR-FC is the only non-convolutional architecture to perform comparably to MAML-Conv for $k = 1$ . Fig. 4 shows that MSR-FC has learned to produce weight matrices with convolutional parameter sharing structure, indicating it has “learned convolution” from the data. Appendix C.1 visualizes the meta-learned $U$ , which we find implements convolution as Sec. 4.2 predicted. Meanwhile, MAML-FC and MAML-LC perform significantly worse as they are unable to meta-learn this structure. On partially symmetric data $k = 2$ , $k = 5$ ), MSR-FC performs well due to its ability to flexibly meta-learn even partial symmetries. MAML-Conv performs worse here since the convolution assumption is overly restrictive, while MAML-FC and MAML-LC are not able to meta-learn much structure. MSR-Joint-FC performs comparably to or worse than MSR-FC across the board. Note that following prior work (Li et al., 2017), all methods use meta-learned inner learning rates on parameters that change in the inner loop. For MSR-Joint-FC we observe that the meta-learned inner loop learning rates corresponding to $U$ are significantly smaller than the inner learning rates corresponding to $v$ , suggesting that $U$ is changing relatively little in the inner loop (see Appendix Table 4). MTSR-FC performs significantly worse than MSR-FC with small training datasets, but performs comparably with large datasets. This indicates that although our reparameterization can be trained by either multi-task learning or meta-learning, the meta-learning approach (Alg. 1) is more efficient at learning from less data.
|
| 155 |
+
|
| 156 |
+
# 5.2 LEARNING EQUIVARIANCE TO ROTATIONS AND FLIPS
|
| 157 |
+
|
| 158 |
+
We also created synthetic problems with 2-D synthetic image inputs and outputs, in order to study rotation and flip equivariance. We generate task data by passing randomly generated inputs through a single layer E(2)-equivariant steerable CNN (Weiler and Cesa, 2019) configured to be equivariant to combinations of translations, discrete rotations by increments of $4 5 ^ { \circ }$ , and reflections. Hence our synthetic task data contains rotation and reflection in addition to translation symmetry. Each task corresponds to different values of the data-generating network’s weights. We apply MSR and MAML to a single standard con
|
| 159 |
+
|
| 160 |
+
<table><tr><td rowspan=1 colspan=3>Rotation/Flip Equivariance MSE</td></tr><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Rot</td><td rowspan=1 colspan=1>Rot+Flip</td></tr><tr><td rowspan=1 colspan=1>MAML-ConvMSR-Conv (Ours)</td><td rowspan=1 colspan=1>.504.004</td><td rowspan=1 colspan=1>.507.001</td></tr></table>
|
| 161 |
+
|
| 162 |
+
Table 2: MSR learns rotation and flip equivariant parameter sharing on top of a standard convolution model, and thus achieves much better generalization error on meta-test tasks compared to MAML on rotation and flip equivariant data.
|
| 163 |
+
|
| 164 |
+
volution layer, which guarantees translation equivariance.
|
| 165 |
+
|
| 166 |
+
Each method must still meta-learn rotation and reflection (flip) equivariance from the data. Table 2 shows that MSR easily learns rotation and rotation+reflection equivariance on top of the convolutional model’s built in translational equivariance. Appendix C.2 visualizes the filters MSR produces, which we see are rotated and/or flipped versions of the same filter.
|
| 167 |
+
|
| 168 |
+
# 6 CAN WE LEARN INVARIANCES FROM AUGMENTED DATA?
|
| 169 |
+
|
| 170 |
+
Practitioners commonly use data augmentation to train their models to have certain invariances. Since invariance is a special case of equivariance, we can also view data augmentation as a way of learning equivariant models. The downside is that we need augmented data for each task. While augmentation is often possible during meta-training, there are many situations where it is impractical at meta-test time. For example, in robotics we may meta-train a robot in simulation and then deploy (meta-test) in the real world, a kind of sim2real transfer strategy (Song et al., 2020). During meta-training we can augment data using the simulated environ
|
| 171 |
+
|
| 172 |
+
# Algorithm 2: Augmentation Meta-Training
|
| 173 |
+
|
| 174 |
+
input: $\{ \mathcal { T } _ { i } \} _ { i = 1 } ^ { N }$ : Meta-training tasks
|
| 175 |
+
input: META-TRAIN: Any meta-learner
|
| 176 |
+
input: AUGMENT: Data augmenter
|
| 177 |
+
forall $\mathcal { T } _ { i } \in \{ \mathcal { T } _ { i } \} _ { i = 1 } ^ { N }$ do $\{ \mathcal { D } _ { i } ^ { t r } , \mathcal { D } _ { i } ^ { v a l } \} \mathcal { T } _ { i }$ ; // task data split
|
| 178 |
+
$\begin{array} { r l } & { \hat { \mathcal { D } } _ { i } ^ { v a l } \gets \mathrm { A U G M E N T } \big ( \mathcal { D } ^ { v a l } \big ) ; } \\ & { \hat { \mathcal { T } } _ { i } \gets \{ \mathcal { D } ^ { t r } , \hat { \mathcal { D } } _ { i } ^ { v a l } \} } \\ & { \mathbf { M } \mathrm { E T A - T R A I N } \Big ( \{ \hat { \mathcal { T } } _ { i } \} _ { i = 1 } ^ { N } \Big ) } \end{array}$
|
| 179 |
+
|
| 180 |
+
ment, but we cannot do the same at meta-test time in the real world. Can we instead use MSR to learn equivariances from data augmentation at training time, and encode those learned equivariances into the network itself? This way, the network would preserve learned equivariances on new meta-test tasks without needing any additional data augmentation.
|
| 181 |
+
|
| 182 |
+
Alg. 2 describes our approach for meta-learning invariances from data augmentation, which wraps around any meta-learning algorithm using generic data augmentation procedures. Recall that each task is split into training and validation data $\mathcal { T } _ { i } = \{ \mathcal { D } _ { i } ^ { t r } , \mathcal { D } _ { i } ^ { v a l } \}$ . We use the data augmentation procedure to only modify the validation data, producing a new validation dataset $\hat { \mathcal { D } } _ { i } ^ { v a l }$ for each task. We re-assemble each modified task $\hat { \mathcal { T } } _ { i } \gets \{ \mathcal { D } _ { i } ^ { t r } , \hat { \mathcal { D } } _ { i } ^ { v a l } \}$ . So for each task, the meta-learner observes unaugmented training data, but must generalize to augmented validation data. This forces the model to be invariant to the augmentation transforms without actually seeing any augmented training data.
|
| 183 |
+
|
| 184 |
+
We apply this augmentation strategy to Omniglot (Lake et al., 2015) and MiniImagenet (Vinyals et al., 2016) few shot classification to create the Aug-Omniglot and Aug-MiniImagenet benchmarks. Our data augmentation function contains a combination of random rotations, flips, and resizes (rescaling), which we only apply to task validation data as described above. The problem is set up analogous to (Finn et al., 2017): for each task, the model must classify images into one of either 5 or 20 classes ( $\cdot n$ -way) and receives either 1 or 5 examples of each class in the task training data ( $k$ -shot). Unlike Finn et al. (2017) our Aug-Omniglot and Aug-MiniImagenet benchmarks contain transformed task validation data.
|
| 185 |
+
|
| 186 |
+
We tried combining Alg. 2 with our MSR method and three other meta-learning algorithms: MAML (Finn et al., 2017), ANIL (Raghu et al., 2019), and Prototypical Networks (ProtoNets) (Snell et al., 2017). While the latter three methods all have the potential to learn equivariant features through Alg. 2, we hypothesize that since MSR enforces learned equivariance through its symmetry matrices it should outperform these feature-metalearning methods. We also paired MAML with a model that has built in equivariance to the group D8 $4 5 ^ { \circ }$ -increment rotation and reflections) using the E2-CNN library (Weiler and Cesa, 2019). We call this baseline “MAML $+ \mathrm { D } 8 ^ { \circ }$ . Appendix D.3 describes the experimental setup and methods implementations in more detail.
|
| 187 |
+
|
| 188 |
+
Table 3 shows each method’s meta-test accuracies on both benchmarks. Across different settings MSR performs either comparably to the best method, or the best. MAML and ANIL perform similarly to each other, and usually worse than MSR, suggesting that learning equivariant or invariant features is not as helpful as learning equivariant layer structures. ProtoNets perform well on the easier Aug-Omniglot benchmark, but evidently struggle with learning a transformation invariant metric space on the harder Aug-MiniImagenet problems. MSR even outperforms the architecture with built in rotation and reflection symmetry (MAML $+ \mathrm { D 8 }$ ) across the board. MSR’s advantage may be due to the additional presence of scaling transformations in the image data; we are not aware of architectures that build in rotation, reflection, and scaling equivariance at the time of writing. Note that MSR’s reparameterization increases the number of meta-learned parameters at each layer, so MSR models contain more total parameters than corresponding MAML models. The “MAML (Big)” results show MAML performance with very large models containing more total parameters than the corresponding MSR models. The results show that MSR also outperforms these larger MAML models despite having fewer total parameters.
|
| 189 |
+
|
| 190 |
+
Table 3: Meta-test accuracies on Aug-Omniglot and Aug-MiniImagenet few-shot classification. These benchmarks test generalization to augmented validation data from un-augmented training data. MSR performs comparably to or better than other methods under this augmented regime. Results are shown with $9 5 \%$ confidence intervals over test tasks.
|
| 191 |
+
|
| 192 |
+
<table><tr><td></td><td colspan="4">Aug-Omniglot</td><td colspan="2">Aug-MiniImagenet</td></tr><tr><td>Method</td><td colspan="2">5 way</td><td colspan="2">20 way</td><td colspan="2">5 way</td></tr><tr><td></td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td><td>1-shot</td><td>5-shot</td></tr><tr><td>MAML</td><td>87.3± 0.5</td><td>93.6± 0.3</td><td>67.0± 0.4</td><td>79.9 ± 0.3</td><td>42.5 ± 1.1</td><td>61.5 ± 1.0</td></tr><tr><td>MAML (Big)</td><td>89.3 ±0.4</td><td>94.8± 0.3</td><td>69.6±0.4</td><td>83.2 ± 0.3</td><td>37.2 ± 1.1</td><td>63.2 ± 1.0</td></tr><tr><td>ANIL</td><td>86.4±0.5</td><td>93.2 ± 0.3</td><td>67.5 ± 3.5</td><td>79.8 ± 0.3</td><td>43.0 ± 1.1</td><td>62.3 ±1.0</td></tr><tr><td>ProtoNets</td><td>92.9 ± 0.4</td><td>97.4±0.2</td><td>85.1 ± 0.3</td><td>94.3 ± 0.2</td><td>34.6± 0.5</td><td>54.5 ± 0.6</td></tr><tr><td>MAML + D8</td><td>94.6± 0.4</td><td>96.4± 0.3</td><td>82.6 ± 0.3</td><td>85.1 ± 0.3</td><td>44.9 ± 1.2</td><td>56.8 ±1.1</td></tr><tr><td>MSR (Ours)</td><td>95.3 ± 0.3</td><td>97.7 ± 0.2</td><td>84.3± 0.2</td><td>92.6± 0.2</td><td>45.5 ± 1.1</td><td>65.2 ± 1.0</td></tr></table>
|
| 193 |
+
|
| 194 |
+
# 7 DISCUSSION AND FUTURE WORK
|
| 195 |
+
|
| 196 |
+
We introduce a method for automatically meta-learning equivariances in neural network models, by encoding learned equivariance-inducing parameter sharing patterns in each layer. On new tasks, these sharing patterns reduce the number of task-specific parameters and improve generalization. Our experiments show that this method can improve few-shot generalization on task distributions with shared underlying symmetries. We also introduce a strategy for meta-training invariances into networks using data augmentation, and show that it works well with our method. By encoding equivariances into the network as a parameter sharing pattern, our method has the benefit of preserving learned equivariances on new tasks so it can learn more efficiently.
|
| 197 |
+
|
| 198 |
+
Machine learning thus far has benefited from exploiting human knowledge of problem symmetries, and we believe this work presents a step towards learning and exploiting symmetries automatically. This work leads to numerous directions for future investigation. In addition to generalization benefits, standard convolution is practical since it exploits the parameter sharing structure to improve computational efficiency, relative to a fully connected layer of the same input/output dimensions. While MSR we can improve computational efficiency by reparameterizing standard convolution layers, it does not exploit learned structure to further optimize its computation. Can we automatically learn or find efficient implementations of these more structured operations? Additionally, MSR is focused on learning finite symmetry groups, while approximating infinite ones (e.g., learning $4 5 ^ { \circ }$ - increment rotation symmetry as an approximation to continuous rotation symmetry). Unfortunately, the number of parameters increases with the resolution of the approximation, so further research would be useful in discovering more scalable methods of approximating and learning continuous symmetries. Finally, our method is best for learning symmetries which are shared across a distribution of tasks. Further research on quickly discovering symmetries which are particular to a single task would make deep learning methods significantly more useful on many difficult real world problems.
|
| 199 |
+
|
| 200 |
+
# ACKNOWLEDGEMENTS
|
| 201 |
+
|
| 202 |
+
We would like to thank Sam Greydanus, Archit Sharma, and Yiding Jiang for reviewing and critiquing earlier drafts of this paper. This work was supported in part by Google. CF is a CIFAR Fellow.
|
| 203 |
+
|
| 204 |
+
REFERENCES
|
| 205 |
+
F. Alet, T. Lozano-Perez, and L. P. Kaelbling. Modular meta-learning. ´ arXiv preprint arXiv:1806.10166, 2018.
|
| 206 |
+
A. Antoniou, H. Edwards, and A. Storkey. How to train your maml. arXiv preprint arXiv:1810.09502, 2018.
|
| 207 |
+
S. Bengio, Y. Bengio, J. Cloutier, and J. Gecsei. On the optimization of a synaptic learning rule. In Preprints Conf. Optimality in Artificial and Biological Neural Networks, volume 2. Univ. of Texas, 1992.
|
| 208 |
+
G. Benton, M. Finzi, P. Izmailov, and A. G. Wilson. Learning invariances in neural networks. arXiv preprint arXiv:2010.11882, 2020.
|
| 209 |
+
D. Beymer and T. Poggio. Face recognition from one example view. In Proceedings of IEEE International Conference on Computer Vision, pages 500–507. IEEE, 1995.
|
| 210 |
+
A. Brock, T. Lim, J. M. Ritchie, and N. Weston. Smash: one-shot model architecture search through hypernetworks. arXiv preprint arXiv:1708.05344, 2017.
|
| 211 |
+
T. Cohen and M. Welling. Group equivariant convolutional networks. In International conference on machine learning, pages 2990–2999, 2016.
|
| 212 |
+
T. S. Cohen, M. Weiler, B. Kicanaoglu, and M. Welling. Gauge equivariant convolutional networks and the icosahedral cnn. arXiv preprint arXiv:1902.04615, 2019.
|
| 213 |
+
M. Cranmer, S. Greydanus, S. Hoyer, P. Battaglia, D. Spergel, and S. Ho. Lagrangian neural networks. arXiv preprint arXiv:2003.04630, 2020.
|
| 214 |
+
E. D. Cubuk, B. Zoph, D. Mane, V. Vasudevan, and Q. V. Le. Autoaugment: Learning augmentation ´ policies from data. corr abs/1805.09501 (2018). arXiv preprint arXiv:1805.09501, 2018.
|
| 215 |
+
T. Deleu, T. Wurfl, M. Samiei, J. P. Cohen, and Y. Bengio. Torchmeta: A Meta-Learning li- ¨ brary for PyTorch, 2019. URL https://arxiv.org/abs/1909.06576. Available at: https://github.com/tristandeleu/pytorch-meta.
|
| 216 |
+
N. Diaconu and D. E. Worrall. Learning to convolve: A generalized weight-tying approach. arXiv preprint arXiv:1905.04663, 2019.
|
| 217 |
+
A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
|
| 218 |
+
D. S. Dummit and R. M. Foote. Abstract algebra, volume 3. Wiley Hoboken, 2004.
|
| 219 |
+
G. F. Elsayed, P. Ramachandran, J. Shlens, and S. Kornblith. Revisiting spatial invariance with low-rank local connectivity. arXiv preprint arXiv:2002.02959, 2020.
|
| 220 |
+
T. Elsken, J. H. Metzen, and F. Hutter. Neural architecture search: A survey. arXiv preprint arXiv:1808.05377, 2018.
|
| 221 |
+
C. Finn, P. Abbeel, and S. Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 1126–1135. JMLR. org, 2017.
|
| 222 |
+
S. Flennerhag, A. A. Rusu, R. Pascanu, H. Yin, and R. Hadsell. Meta-learning with warped gradient descent. arXiv preprint arXiv:1909.00025, 2019.
|
| 223 |
+
R. Gens and P. M. Domingos. Deep symmetry networks. In Advances in neural information processing systems, pages 2537–2545, 2014.
|
| 224 |
+
A. Graves and N. Jaitly. Towards end-to-end speech recognition with recurrent neural networks. In International conference on machine learning, pages 1764–1772, 2014.
|
| 225 |
+
E. Grefenstette, B. Amos, D. Yarats, P. M. Htut, A. Molchanov, F. Meier, D. Kiela, K. Cho, and S. Chintala. Generalized inner loop meta-learning. arXiv preprint arXiv:1910.01727, 2019.
|
| 226 |
+
S. Greydanus, M. Dzamba, and J. Yosinski. Hamiltonian neural networks. In Advances in Neural Information Processing Systems, pages 15353–15363, 2019.
|
| 227 |
+
D. Ha, A. Dai, and Q. V. Le. Hypernetworks. arXiv preprint arXiv:1609.09106, 2016.
|
| 228 |
+
A. Hannun, C. Case, J. Casper, B. Catanzaro, G. Diamos, E. Elsen, R. Prenger, S. Satheesh, S. Sengupta, A. Coates, et al. Deep speech: Scaling up end-to-end speech recognition. arXiv preprint arXiv:1412.5567, 2014.
|
| 229 |
+
S. Hochreiter, A. S. Younger, and P. R. Conwell. Learning to learn using gradient descent. In International Conference on Artificial Neural Networks, pages 87–94. Springer, 2001.
|
| 230 |
+
D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 231 |
+
T. G. Kolda and B. W. Bader. Tensor decompositions and applications. SIAM review, 51(3):455–500, 2009.
|
| 232 |
+
R. Kondor and S. Trivedi. On the generalization of equivariance and convolution in neural networks to the action of compact groups, 2018.
|
| 233 |
+
A. Krizhevsky, I. Sutskever, and G. E. Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pages 1097–1105, 2012.
|
| 234 |
+
B. M. Lake, R. Salakhutdinov, and J. B. Tenenbaum. Human-level concept learning through probabilistic program induction. Science, 350(6266):1332–1338, 2015.
|
| 235 |
+
Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 236 |
+
Y. Lee and S. Choi. Gradient-based meta-learning with learned layerwise metric and subspace. arXiv preprint arXiv:1801.05558, 2018.
|
| 237 |
+
Z. Li, F. Zhou, F. Chen, and H. Li. Meta-sgd: Learning to learn quickly for few-shot learning. arXiv preprint arXiv:1707.09835, 2017.
|
| 238 |
+
H. Liu, K. Simonyan, and Y. Yang. Darts: Differentiable architecture search. arXiv preprint arXiv:1806.09055, 2018a.
|
| 239 |
+
R. Liu, J. Lehman, P. Molino, F. P. Such, E. Frank, A. Sergeev, and J. Yosinski. An intriguing failing of convolutional neural networks and the coordconv solution. In Advances in Neural Information Processing Systems, pages 9605–9616, 2018b.
|
| 240 |
+
J. Lorraine, P. Vicol, and D. Duvenaud. Optimizing millions of hyperparameters by implicit differentiation. arXiv preprint arXiv:1911.02590, 2019.
|
| 241 |
+
J. Martens and R. Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In International conference on machine learning, pages 2408–2417, 2015.
|
| 242 |
+
P. Niyogi, F. Girosi, and T. Poggio. Incorporating prior information in machine learning by creating virtual examples. Proceedings of the IEEE, 86(11):2196–2209, 1998.
|
| 243 |
+
E. Park and J. B. Oliva. Meta-curvature. In Advances in Neural Information Processing Systems, pages 3309–3319, 2019.
|
| 244 |
+
A. Raghu, M. Raghu, S. Bengio, and O. Vinyals. Rapid learning or feature reuse? towards understanding the effectiveness of maml. arXiv preprint arXiv:1909.09157, 2019.
|
| 245 |
+
S. Ravanbakhsh, J. Schneider, and B. Poczos. Equivariance through parameter-sharing. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pages 2892–2901. JMLR. org, 2017.
|
| 246 |
+
O. Russakovsky, J. Deng, H. Su, J. Krause, S. Satheesh, S. Ma, Z. Huang, A. Karpathy, A. Khosla, M. Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115(3):211–252, 2015.
|
| 247 |
+
A. A. Rusu, D. Rao, J. Sygnowski, O. Vinyals, R. Pascanu, S. Osindero, and R. Hadsell. Metalearning with latent embedding optimization. arXiv preprint arXiv:1807.05960, 2018.
|
| 248 |
+
J. Schmidhuber. Evolutionary principles in self-referential learning. On learning how to learn: The meta-meta-... hook.) Diploma thesis, Institut f. Informatik, Tech. Univ. Munich, 1:2, 1987.
|
| 249 |
+
J. Schmidhuber. Learning to control fast-weight memories: An alternative to dynamic recurrent networks. Neural Computation, 4(1):131–139, 1992.
|
| 250 |
+
J. Shawe-Taylor. Building symmetries into feedforward networks. In 1989 First IEE International Conference on Artificial Neural Networks,(Conf. Publ. No. 313), pages 158–162. IET, 1989.
|
| 251 |
+
J. Snell, K. Swersky, and R. Zemel. Prototypical networks for few-shot learning. In Advances in neural information processing systems, pages 4077–4087, 2017.
|
| 252 |
+
X. Song, Y. Yang, K. Choromanski, K. Caluwaerts, W. Gao, C. Finn, and J. Tan. Rapidly adaptable legged robots via evolutionary meta-learning. arXiv preprint arXiv:2003.01239, 2020.
|
| 253 |
+
K. O. Stanley and R. Miikkulainen. Evolving neural networks through augmenting topologies. Evolutionary computation, 10(2):99–127, 2002.
|
| 254 |
+
K. O. Stanley, D. B. D’Ambrosio, and J. Gauci. A hypercube-based encoding for evolving largescale neural networks. Artificial life, 15(2):185–212, 2009.
|
| 255 |
+
S. Thrun and L. Pratt. Learning to learn. Springer Science & Business Media, 2012.
|
| 256 |
+
M. van der Wilk, M. Bauer, S. John, and J. Hensman. Learning invariances using the marginal likelihood. In Advances in Neural Information Processing Systems, pages 9938–9948, 2018.
|
| 257 |
+
A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, Ł. Kaiser, and I. Polosukhin. Attention is all you need. In Advances in neural information processing systems, pages 5998–6008, 2017.
|
| 258 |
+
O. Vinyals, C. Blundell, T. Lillicrap, D. Wierstra, et al. Matching networks for one shot learning. In Advances in neural information processing systems, pages 3630–3638, 2016.
|
| 259 |
+
M. Weiler and G. Cesa. General e (2)-equivariant steerable cnns. In Advances in Neural Information Processing Systems, pages 14334–14345, 2019.
|
| 260 |
+
D. Worrall and M. Welling. Deep scale-spaces: Equivariance over scale. In Advances in Neural Information Processing Systems, pages 7364–7376, 2019.
|
| 261 |
+
D. E. Worrall, S. J. Garbin, D. Turmukhambetov, and G. J. Brostow. Harmonic networks: Deep translation and rotation equivariance. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5028–5037, 2017.
|
| 262 |
+
M. Zaheer, S. Kottur, S. Ravanbakhsh, B. Poczos, R. R. Salakhutdinov, and A. J. Smola. Deep sets. In Advances in neural information processing systems, pages 3391–3401, 2017.
|
| 263 |
+
B. Zoph and Q. V. Le. Neural architecture search with reinforcement learning. arXiv preprint arXiv:1611.01578, 2016.
|
| 264 |
+
|
| 265 |
+
# A APPROXIMATION AND TRACTABILITY
|
| 266 |
+
|
| 267 |
+
# A.1 FULLY CONNECTED
|
| 268 |
+
|
| 269 |
+
From Eq. 2 we see that for a layer with $m$ output units, $n$ input units, and $k$ filter parameters the symmetry matrix $U$ has mnk entries. This is too expensive for larger layers, so in practice, we need a factorized reparameterization to reduce memory and compute requirements when $k$ is larger.
|
| 270 |
+
|
| 271 |
+
For fully connected layers, we use a Kronecker factorization to scalably reparameterize each layer. First, we assume that the filter parameters $v \in \mathbb { R } ^ { k l }$ can be arranged in a matrix $V \in \mathbb { R } ^ { k \times l }$ . Then we reparameterize each layer’s weight matrix $W$ similar to Eq. 2, but assume the symmetry matrix is the Kronecker product of two smaller matrices:
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
\begin{array} { r } { \mathbf { v e c } ( W ) = ( U _ { 1 } \otimes U _ { 2 } ) \mathbf { v e c } ( V ) , \quad U _ { 1 } \in \mathbb { R } ^ { n \times l } , U _ { 2 } \in \mathbb { R } ^ { m \times k } } \end{array}
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
Since we only store the two Kronecker factors $U _ { 1 }$ and $U _ { 2 }$ , we reduce the memory requirements of $U$ from mnkl to $m k + n l$ . In our experiments we generally choose $V \in \mathbb { R } ^ { m \times n }$ so $U _ { 1 } \in \mathbb { R } ^ { n \times n }$ and $U _ { 2 } \in \mathbb { R } ^ { m \times m }$ . Then the actual memory cost of each reparameterized layer (including both $U$ and $v$ ) is $m ^ { 2 } + n ^ { 2 } + m n$ , compared to mn for a standard fully connected layer. So in the case where $m \approx n$ , MSR increases memory cost by roughly a constant factor of 3.
|
| 278 |
+
|
| 279 |
+
After approximation MSR also increases computation time (forward and backward passes) by roughly a constant factor of 3 compared to MAML. A standard fully connected layer requires a single matrix-matrix multiply $Y = W X$ in the forward pass (here $Y$ and $X$ are matrices since inputs and outputs are in batches). Applying the Kronecker-vec trick to Eq. 5 gives:
|
| 280 |
+
|
| 281 |
+
$$
|
| 282 |
+
W = U _ { 1 } V U _ { 2 } ^ { T } \iff \operatorname { v e c } ( W ) = ( U _ { 1 } \otimes U _ { 2 } ) \mathbf { v e c } ( V )
|
| 283 |
+
$$
|
| 284 |
+
|
| 285 |
+
So rather than actually forming the (possibly large) symmetry matrix $U _ { 1 } \otimes U _ { 2 }$ , we can directly construct $W$ simply using 2 additional matrix-matrix multiplies $W = U _ { 1 } V U _ { 2 } ^ { T }$ . Again assuming $V \in \mathbb { R } ^ { m \times n }$ and $m \approx n$ , each matrix in the preceding expression is approximately the same size as $W$ .
|
| 286 |
+
|
| 287 |
+
# A.2 2D CONVOLUTION
|
| 288 |
+
|
| 289 |
+
When reparameterizing 2-D convolutions, we need to produce a filter (a rank-4 tensor $W \in$ $\mathbb { R } ^ { C _ { o } \times C _ { i } \times \mathbf { \bar { H } } \times W } )$ . We assume the filter parameters are stored in a rank 3 tensor $V \in \mathbb { R } ^ { p \times q \times s }$ , and factorize the symmetry matrix $U$ into three separate matrices $U _ { 1 } \in \mathbb { R } ^ { C _ { o } \times p } , U _ { 2 } \in \mathbb { R } ^ { C _ { i } \times q }$ and $U _ { 3 } \in \mathbb { R } ^ { H W \times s }$ . A similar Kronecker product approximation gives:
|
| 290 |
+
|
| 291 |
+
$$
|
| 292 |
+
\begin{array} { r } { \tilde { W } = V \times _ { 1 } U _ { 1 } \times _ { 2 } U _ { 2 } \times _ { 3 } U _ { 3 } , \quad \tilde { W } \in \mathbb { R } ^ { C _ { o } \times C _ { i } \times H W } } \\ { W = \mathrm { r e s h a p e } ( \tilde { W } ) , \quad W \in \mathbb { R } ^ { C _ { i } \times C _ { i } \times H \times W } } \end{array}
|
| 293 |
+
$$
|
| 294 |
+
|
| 295 |
+
where $\times _ { n }$ represents $n$ -mode tensor multiplication (Kolda and Bader, 2009). Just as in the fully connected case, this convolution reparameterization is equivalent to a Kronecker factorization of the symmetry matrix $U$ .
|
| 296 |
+
|
| 297 |
+
An analysis of the memory and computation requirements of reparameterized convolution layers proceeds similarly to the above analysis for the fully connected case. As we describe below, in our augmented experiments using convolutional models each MSR outer step takes roughly $3 0 \% - 4 0 \%$ longer than a MAML outer step.
|
| 298 |
+
|
| 299 |
+
In practice, for any experiment where we reparameterize a standard 2-D convolution with weights $\boldsymbol { W } ^ { \bullet } \in \mathbb { R } ^ { C _ { o } \times C _ { i } \times H \times W }$ , we choose $p = C _ { o } , q = C _ { i }$ , and $s = H W$ . Equivalently, we choose $V \in$ $\mathbb { R } ^ { C _ { o } \times C _ { i } \times H W }$ . Although not necessary, this choice conveniently makes the matrices $U _ { 1 } , U _ { 2 }$ and $U _ { 3 }$ into square matrices, which we can initialize to identity matrices at the start of meta-learning.
|
| 300 |
+
|
| 301 |
+
# B PROOF OF PROPOSITION 1
|
| 302 |
+
|
| 303 |
+
To show the connection with the existing literature, we first present a slightly generalised definition of $G$ -convolution that is more common in the existing literature. We instead model an input signal as a function $f : X \to \mathbb { R }$ on some underlying space $X$ . We then consider a finite group $G =$ $\{ g _ { 1 } , \ldots , g _ { n } \}$ of symmetries acting transitively on $X$ , over which we desire $G$ -equivariance. Many (but not all) of the groups discussed in (Weiler and Cesa, 2019) are finite groups of this form.
|
| 304 |
+
|
| 305 |
+
It is proven by (Kondor and Trivedi, 2018) that a function $\phi$ is equivariant to $G$ if and only if it is a $G$ -convolution on this space. In the domain of finite groups, we can consider a slight simplification of this notion: a finite “ $\cdot _ { G }$ cross-correlation” of $f$ with a filter $\psi : X \to \mathbb { R }$ . This is defined by (Cohen and Welling, 2016) as:
|
| 306 |
+
|
| 307 |
+
$$
|
| 308 |
+
[ \phi ( f ) ] ( g ) = ( f \star \psi ) ( g ) = \sum _ { x \in X } f ( x ) \psi ( g ^ { - 1 } x ) . ^ { 2 }
|
| 309 |
+
$$
|
| 310 |
+
|
| 311 |
+
We can now connect this notion with the linear layer, as described in our paper. First, in order for a fully connected layer’s weight matrix $W$ to act on function $f$ , we must first assume that $f$ has finite support $\{ x _ { 1 } , \ldots , x _ { s } \}$ —i.e. $f ( x )$ is only non-zero at these $s$ points within $X$ . This means that $f$ can be represented as a “dual” vector $\overline { { f } } \in \mathbb R ^ { s }$ given by ${ \overline { { f } } } _ { i } = f ( x _ { i } )$ , on which $W$ can act.3
|
| 312 |
+
|
| 313 |
+
We aim to show a certain value of $U ^ { G } \in \mathbb { R } ^ { n s \times s }$ allows arbitrary $G$ cross-correlations—and only $G$ cross-correlations—to be represented by fully connected layers with weight matrices of the form
|
| 314 |
+
|
| 315 |
+
$$
|
| 316 |
+
\mathrm { v e c } ( W ) = U ^ { G } v ,
|
| 317 |
+
$$
|
| 318 |
+
|
| 319 |
+
where $v \in \mathbb { R } ^ { s }$ is any arbitrary vector of appropriate dimension. The reshape specifically gives $W \in \mathbb { R } ^ { n \times s }$ , which transforms the vector $\overline { { f } } \in \mathbb R ^ { s }$ .
|
| 320 |
+
|
| 321 |
+
With this in mind, we first use that the action of the group can be represented as a matrix transformation on this vector space, using the matrix representation $\pi$ :
|
| 322 |
+
|
| 323 |
+
$$
|
| 324 |
+
[ \pi ( g ) \overline { { f } } ] _ { i } = f ( g ^ { - 1 } x _ { i } )
|
| 325 |
+
$$
|
| 326 |
+
|
| 327 |
+
where notably $\pi ( g ) \in \mathbb { R } ^ { s \times s }$ .
|
| 328 |
+
|
| 329 |
+

|
| 330 |
+
Figure 5: The theoretical convolutional weight symmetry matrix for the group $\langle g \rangle \ \cong$ $C _ { 4 }$ , where $g$ is a $\frac { N \pi } { 2 }$ -radian rotation of a 3x3 image $N \in$ $\{ 0 , 1 , 2 , 3 \}$ . Notice that the image is flattened into a length 9 vector. The matrix $\pi ( g )$ describes the action of a $\frac { N \pi } { 2 }$ radian rotation on this image.
|
| 331 |
+
|
| 332 |
+
We consider $U ^ { G } \in \mathbb { R } ^ { n s \times s }$ , and $v \in \mathbb { R } ^ { s }$ . Since $v \in \mathbb { R } ^ { s }$ , we can also treat $v$ as a the “dual” vector of a function ${ \hat { v } } : X \to \mathbb { R }$ with support $\{ x _ { 1 } , \ldots , x _ { s } \}$ , described by $\hat { v } ( x _ { i } ) = v _ { i }$ . We can interpret $\hat { v }$
|
| 333 |
+
|
| 334 |
+
as a convolutional filter, just like $\psi$ in Eq. 9. $W$ then acts on $v$ just as it acts on $\overline { { f } }$ , namely:
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
[ \pi ( g ) v ] _ { i } = \hat { v } ( g ^ { - 1 } x _ { i } ) .
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
Now, we define $U ^ { G }$ by stacking the matrix representations of $g _ { i } \in G$
|
| 341 |
+
|
| 342 |
+
$$
|
| 343 |
+
U ^ { G } = \left[ \overbrace { \begin{array} { c } { \vdots } \\ { \pi ( g _ { n } ) } \end{array} } ^ { \pi ( g _ { 1 } ) } \right]
|
| 344 |
+
$$
|
| 345 |
+
|
| 346 |
+
which implies the following value of $W$ :
|
| 347 |
+
|
| 348 |
+
$$
|
| 349 |
+
W = { \mathrm { r e s h a p e } } ( U ^ { G } v ) = { \mathrm { r e s h a p e } } \left( { \left[ \begin{array} { l } { \qquad | } \\ { \pi ( g _ { 1 } ) v } \\ { \qquad | } \\ { \qquad \vdots } \\ { \pi ( g _ { n } ) v } \\ { \qquad | } \end{array} \right] } \right) = { \left[ \begin{array} { l l l } { \qquad - } & { \pi ( g _ { 1 } ) v } & { - } \\ { \qquad \vdots } & { \qquad \vdots } \\ { \qquad \pi ( g _ { n } ) v } & { - } \end{array} \right] }
|
| 350 |
+
$$
|
| 351 |
+
|
| 352 |
+
<table><tr><td colspan="7">Meta-learned LRs on synthetic problems</td></tr><tr><td rowspan="2">Variable</td><td colspan="3">Small traindataset</td><td colspan="3">Large train dataset</td></tr><tr><td>k=1</td><td>k=2</td><td>k=5</td><td>k=1</td><td>k=2</td><td>k=5</td></tr><tr><td>U</td><td>-0.017</td><td>-0.011</td><td>-0.052</td><td>-0.009</td><td>-0.021</td><td>-0.039</td></tr><tr><td>U</td><td>+0.241</td><td>+0.326</td><td>+0.401</td><td>+0.241</td><td>+0.307</td><td>+0.312</td></tr></table>
|
| 353 |
+
|
| 354 |
+
Table 4: In the ablation “MSR-Joint-FC” of Sec. 4 we jointly updated $U$ and $v$ in the inner loop with metalearned inner loop learning rates for each. This is in contrast with standard MSR, where only $v$ is updated in the inner loop (also with a meta-learned learning rate), and $U$ is only updated in the outer loop. The inner learning rates were initialized at 0.02 for all variables. The table shows the inner loop learning rates at the end of training. The relative magnitudes suggest that $v$ is being updated significantly more than $U$ in the inner loop.
|
| 355 |
+
|
| 356 |
+
This then grants that the output of the fully connected layer with weights $W$ is:
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
( W \overline { { { f } } } ) _ { i } = \sum _ { j = 1 } ^ { s } ( \pi ( g _ { i } ) v ) _ { j } \overline { { { f } } } _ { j } .
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
Using that $f$ has finite support $\{ x _ { 1 } , \ldots , x _ { s } \}$ , and that $( \pi ( g _ { i } ) v ) _ { j } = \hat { v } ( g _ { i } ^ { - 1 } x _ { j } )$ , we have that:
|
| 363 |
+
|
| 364 |
+
$$
|
| 365 |
+
( W \overline { { { f } } } ) _ { i } = \sum _ { j = 1 } ^ { s } \hat { v } ( g _ { i } ^ { - 1 } x _ { j } ) f ( x _ { j } ) = \sum _ { x \in X } \hat { v } ( g _ { i } ^ { - 1 } x ) f ( x ) .
|
| 366 |
+
$$
|
| 367 |
+
|
| 368 |
+
Lastly, we can interpret $W _ { G } { \overline { { f } } }$ as a function $\phi ^ { G } ( f )$ mapping each $g _ { i } \in G$ to its $i ^ { \mathrm { { t h } } }$ component:
|
| 369 |
+
|
| 370 |
+
$$
|
| 371 |
+
[ \phi ^ { G } ( f ) ] ( g _ { i } ) = ( W \overline { { f } } ) _ { i } = \sum _ { x \in X } \hat { v } ( g _ { i } ^ { - 1 } x ) f ( x )
|
| 372 |
+
$$
|
| 373 |
+
|
| 374 |
+
which is precisely the cross-correlation as described in Eq. 9 with filter $\psi = \hat { v }$ . This implies that φG must be equivariant with respect to $G$ . Moreover, all such $G$ -equivariant functions are $G$ crosscorrelations parameterized by $v$ , so with $U ^ { G }$ fixed as in Eq.-13, we have that $W = U ^ { G } v$ can represent all $G$ -equivariant functions.
|
| 375 |
+
|
| 376 |
+
This means that if $v$ is chosen to have the same dimension as the input, and the weight symmetry matrix is sufficiently large, any equivariance to a finite group can be meta-learned using this approach. Moreover, in this case the symmetry matrix has a very natural and interpretable structure, containing a representation of the group in block submatrices—this structure is seen in practice in our synthetic experiments. Lastly, notice that $v$ corresponds (dually) to the convolutional filter, justifying the notion that we learn the convolutional filter in the inner loop, and the group action in the outer group.
|
| 377 |
+
|
| 378 |
+
In the above proof, we’ve used the original definition of group convolution (Cohen and Welling, 2016) for the sake of simplicity. It is useful to note that a slight generalization of the proof applies for more general equivariance between representations, as defined in equation (3.3)—(i.e. the case when $\pi ( g )$ is an arbitrary linear transformation, and not necessarily of the form $\pi ( g ) f ( x ) = f ( g ^ { - 1 } x ) .$ ) This is subject to a unitarity condition on the group representation (Worrall and Welling, 2019).
|
| 379 |
+
|
| 380 |
+
Without any modification to the method, arbitrary linear approximations to group convolution can be learnt when the representation is not a permutation of the indices. For example, non axis-aligned rotations can be easily approximated through both bilinear and bicubic interpolation, whereby the value of a pixel $x$ after rotation is a linear interpolation of the 4 or 16 pixels nearest to the “true” value of this pixel before rotation $g ^ { - 1 } x$ . Practically, this allows us to approximate equivariance to 45 degree rotations of 2D images, for which there don’t exist representations of the form in Eq. 12.
|
| 381 |
+
|
| 382 |
+
# C FURTHER SYNTHETIC EXPERIMENT RESULTS
|
| 383 |
+
|
| 384 |
+
# C.1 VISUALIZING TRANSLATION EQUIVARIANT SYMMETRY MATRICES
|
| 385 |
+
|
| 386 |
+
Fig. 6 visualizes the actual symmetry matrix $U$ that MSR-FC meta-learns from translation equivariant data. Each column is one of the submatrices $\pi ( i )$ corresponding to the action of the discrete translation group element $i \in \mathbb Z$ on the filter $v$ . In other words, MSR automatically meta-learned $U$ to contain these submatrices $\pi ( i )$ such that each $\pi ( i )$ translates the filter by $i$ spaces, effectively meta-learning standard convolution! In the actual symmetry matrix the submatrices are stacked on top of each other as in Eq. 13, but we display each submatrix side-by-side for easy visualization. The figure is also cropped for space: there are a total of 68 submatrices but we show only the first 20, and each submatrix is cropped from $7 0 \times 3$ to $2 2 \times 3$ .
|
| 387 |
+
|
| 388 |
+

|
| 389 |
+
Meta-learned symmetry matrix representations
|
| 390 |
+
Figure 6: The submatrices of the meta-learned symmetry matrix of MSR-FC on the translation equivariant problem (Sec. 5.1). Intensity corresponds to each entry’s absolute value. We see that the symmetry matrix has been meta-learned to implement standard convolution: each $\pi ( i )$ translates the size filter $v \in \mathbb { R } ^ { 3 }$ by $i$ spaces. Note that in actuality the submatrices are stacked on top of each other in $U$ as in Eq. 13, but we display them side-by-side for visualization.
|
| 391 |
+
|
| 392 |
+
Table 5: The amount of training and test data provided to each method in the synthetic experiments of Table 1 and Table 2. The last row indicates that on the test tasks,, all methods were expected to solve each problem using a single example from that task.
|
| 393 |
+
|
| 394 |
+
<table><tr><td colspan="6">Synthetic problem data quantity</td></tr><tr><td></td><td>k=1</td><td>k=2</td><td>k=5</td><td>Rot</td><td>Rot+flip</td></tr><tr><td>No.train tasks</td><td>400</td><td>800</td><td>800</td><td>8000</td><td>8000</td></tr><tr><td>No. test tasks</td><td>100</td><td>200</td><td>200</td><td>2000</td><td>2000</td></tr><tr><td>Examples/train task (Small)</td><td>2</td><td>2</td><td>4</td><td>20</td><td>20</td></tr><tr><td>Examples/train task (Large)</td><td>20</td><td>20</td><td>20</td><td>1</td><td>1</td></tr><tr><td>Train examples/test task</td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td></tr></table>
|
| 395 |
+
|
| 396 |
+
# C.2 VISUALIZING ROTATION AND FLIP EQUIVARIANT FILTERS
|
| 397 |
+
|
| 398 |
+
In Sec. 5.2 we ran three experiments reparameterizing convolution layers to meta-learn $9 0 °$ rotation, $4 5 ^ { \circ }$ rotation, and $4 5 ^ { \circ }$ rotation+flip equivariance, respectively. Figure 7 shows that MSR produces rotated and flipped versions of filters in order to make the convolution layers equivariant to the corresponding rotation or flip transformations.
|
| 399 |
+
|
| 400 |
+
# D EXPERIMENTAL DETAILS
|
| 401 |
+
|
| 402 |
+
Throughout this work we implemented all gradient based meta-learning algorithms in PyTorch using the Higher (Grefenstette et al., 2019) library.
|
| 403 |
+
|
| 404 |
+
# D.1 TRANSLATION SYMMETRY SYNTHETIC PROBLEMS
|
| 405 |
+
|
| 406 |
+
For the (partial) translation symmetry problems we generated regression data using a single locally connected layer. Each task corresponds to different weights of the data generating network, whose entries we sample independently from a standard normal distribution. For rank $k$ locally connected filters we sampled $k$ width-3 filters and then set the filter value at each spatial location to be a random linear combination of those $k$ filters. Table 5 shows how many distinct training and test tasks we generated data for. For each particular task, we generated data points by randomly sampling the entries of the input vector from a standard normal distribution, passing the input vector into the data generating network, and saving the input and output as a pair.
|
| 407 |
+
|
| 408 |
+
MSR and MAML training: During meta-training we trained each method for 1, 000 outer steps on task batches of size 32, enough for the training loss to converge for every method in every problem. We used the Adam (Kingma and Ba, 2014) optimizer in the outer loop with learning rate .0005. Like most meta-learning methods, MAML and MSR split each task’s examples into a support set (task training data) and a query set (task validation data). On training tasks MAML and MSR used 3 SGD steps on the support data before computing the meta-training objective on the query data, while using 9 SGD steps on the support data of test tasks. We also used meta-learned per-layer learning rates initialized to 0.02. At meta-test time we evaluated average performance and error bars on held-out tasks.
|
| 409 |
+
|
| 410 |
+
MTSR training: We reparameterize fully connected layers into symmetry matrix $U$ and filter $v$ , similar to MSR. MTSR maintains single shared $U$ , but initializes a separate filter $v ^ { ( i ) }$ for each training task $\mathcal { T } _ { i }$ . Given example data $\mathcal { D } _ { i }$ from $\mathcal { T } _ { i }$ , we jointly optimize $\{ U , v ^ { ( i ) } \}$ using the loss $\mathcal { L } ( U , v ^ { ( i ) } , \mathcal { D } _ { i } )$ . In practice each update step updates $U$ and all $\{ v ^ { ( i ) } \}$ in parallel using the full batch of training tasks. Given a test task we initialize a new filter $v$ alongside our already trained $U$ . We then update $v$ on training examples from the test task before evaluating on held out examples from the test task. We use 500 gradient steps for each task at both training and test time, again using the Adam optimizer with learning rate 0.001.
|
| 411 |
+
|
| 412 |
+
We ran all experiments on a single machine with a single NVidia RTX 2080Ti GPU. Our MSR-FC experiments took about 9.5 (outer loop) steps per second, while our MSR-Conv experiments took about 2.8 (outer loop) steps per second.
|
| 413 |
+
|
| 414 |
+
# D.2 ROTATION $^ +$ FLIP SYMMETRY SYNTHETIC PROBLEMS
|
| 415 |
+
|
| 416 |
+
The setup of the rotation and rotation $^ +$ flip symmetry problems is very similar to that of the translation symmetry problems. Here we generated regression data using a single E(2)-steerable (Weiler and Cesa, 2019) layer. Each task again corresponds to a particular setting of the weights of this data generating network, whose entries are sampled from a standard normal distribution for each task. We generate examples for each task similarly to above, and Table 5 shows the quantity of data available for training and test tasks.
|
| 417 |
+
|
| 418 |
+
MAML and MSR training setups here are similar to the translation setups, but we reparameterize the filter of a standard convolution layer to build in translation symmetry and focus on learning rotation/flip symmetry. Unlike the translation experiments, here we use 1 SGD step in the inner loop for both train and test tasks, and initialize the learned learning rates to 0.1.
|
| 419 |
+
|
| 420 |
+
# D.3 AUGMENTATION EXPERIMENTS
|
| 421 |
+
|
| 422 |
+
To create Aug-Omniglot and Aug-MiniImagenet, we extended the Omniglot and MiniImagenet benchmarks from TorchMeta (Deleu et al., 2019). Each task in these benchmarks is split into support (train) and query (validation) datasets. For the augmented benchmarks we applied data augmentation to only the query dataset of each task, which consisted of randomly resized crops, reflections, and rotations by up to $3 0 ^ { \circ }$ . Using the torchvision library, the augmentation function is:
|
| 423 |
+
|
| 424 |
+
# D a t a a u g m e n t a t i o n a p p l i e d t o ONLY t h e q u e r y s e t . s i z e $\ c = \ 2 8$ # O m n i g l o t i m a g e s i z e . 84 f o r M i n i I m a g e n e t . a u g m e n t f n $=$ Compose (
|
| 425 |
+
|
| 426 |
+
RandomResizedC rop ( 2 8 $, \quad \mathrm { ~ s ~ c ~ a ~ l ~ e ~ = ( ~ 0 ~ . ~ 8 ~ , ~ } \quad 1 . 0 ) )$ , R a n d o m V e r t i c a l F l i p ( $\mathtt { p } = 0 . 5 )$ , R a n d o m H o r i z o n t a l F l i p $\cdot { \bf p } { = } 0 . 5 )$ , R a n d o m R o t a t i o n ( 3 0 , r e s a m p l e $=$ I ma ge . BILINEAR ) , )
|
| 427 |
+
|
| 428 |
+
For the augmented Omniglot and MiniImagenet 1-shot experiments, MAML used exactly the same convolutional architecture (same number of layers, number of channels, filter sizes, etc.) as prior work on Omniglot and MiniImagenet (Vinyals et al., 2016; Finn et al., 2017). For MSR we reparameterize each layer’s weight matrix or convolutional filter using the Kronecker approximation (Appendix A) such that the reparameterized layer has the same number of input and output neurons as the corresponding layer in the MAML model.
|
| 429 |
+
|
| 430 |
+
For MiniImagenet 5-shot, we experimented with increasing architecture size via more channels and/or larger filters, which yielded better accuracies on meta-validation tasks. For MSR, MAML, and ANIL we increased the number of output channels from 32 to 128 and increased the kernel size from 3 to 5 in the first 3 convolution layers. We then inserted a $1 \times 1$ convolution layer with 64 output channels right before the linear output layer. For the ProtoNet architecture we similarly increased the output channels at each layer from 32 to 128, but found that keeping the kernel size at 3 worked best.
|
| 431 |
+
|
| 432 |
+
For “MAML (Big)” experiments we increased the architecture size of the MAML model to exceed the number of meta-parameters (symmetry matrices $^ +$ filter parameters) in the corresponding MSR model. For MiniImagenet 5-Shot we inserted an additional linear layer with 3840 output units before the final linear layer. For MiniImagenet 1-Shot we increased the number of output channels at each of the 3 convolution layers from 32 to 64, then inserted an additional linear layer with 1920 output units before the final linear layer. For the Omniglot experiments we increased the number of output channels at each of the 3 convolution layers to 150.
|
| 433 |
+
|
| 434 |
+
For all experiments and gradient based methods we trained for 60, 000 (outer) steps using the Adam optimizer with learning rate .0005 for MiniImagenet 5-shot and .001 for all other experiments. In the inner loop we used SGD with meta-learned per-layer learning rates initialized to 0.4 for Omniglot and .05 for MiniImagenet. We meta-trained using a single inner loop step in all experiments, and used 3 inner loop steps at meta-test time. Although MAML originally meta-trained with 5 inner loop steps on MiniImagenet, we found that this destabilized meta-training on our augmented version. We hypothesize that this is due to the discrepancy between support and query data in our augmented problems. During meta-training we used a task batch size of 32 for Omniglot and 10 for MiniImagenet. At meta-test time we evaluated average performance and error bars using 1000 held-out meta-test tasks.
|
| 435 |
+
|
| 436 |
+
We ran all experiments on a machine with a single NVidia Titan RTX GPU. For our Aug-Omniglot, we ran two experiments at simultaneously on the same machine, which likely slowed each invididual experiment down. Our MSR method took about 0.6 steps per second, whereas the MAML baseline took about 0.86 steps per second. For Aug-Miniimagenet we ran one experiment per machine. MSR took 4.2 steps per second, while MAML took 5.6 steps per second on these experiments.
|
| 437 |
+
|
| 438 |
+

|
| 439 |
+
Figure 7: MSR produced convolution filters, after meta-learning $9 0 ^ { \circ }$ rotation, $4 5 ^ { \circ }$ rotation, and $4 5 ^ { \circ }$ rotation+flip equivariance in the Sec. 5.2 experiments. Notice that MSR learns to achieve the corresponding equivariance by producing rotated/flipped versions of the same filter.
|
parse/train/-QxT4mJdijq/-QxT4mJdijq_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/-QxT4mJdijq/-QxT4mJdijq_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/-QxT4mJdijq/-QxT4mJdijq_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/8jFiomKUnaT/8jFiomKUnaT.md
ADDED
|
@@ -0,0 +1,542 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Revisiting Multi-Codebook Quantization
|
| 2 |
+
|
| 3 |
+
Anonymous Author(s)
|
| 4 |
+
Affiliation
|
| 5 |
+
Address
|
| 6 |
+
email
|
| 7 |
+
|
| 8 |
+
# Abstract
|
| 9 |
+
|
| 10 |
+
1 Multi-Codebook Quantization (MCQ) is a generalized version of existing codebook
|
| 11 |
+
2 based quantizations for Approximate Nearest Neighbor (ANN) search. Therefore,
|
| 12 |
+
3 MCQ theoretically has the potential to achieve the best performance because so
|
| 13 |
+
4 lutions of other codebook-based quantization methods are all covered by MCQ’s
|
| 14 |
+
5 solution space under the same codebook size setting. However, finding the opti
|
| 15 |
+
6 mal solution to MCQ is proved to be NP-hard due to its encoding process, i.e.,
|
| 16 |
+
7 converting an input vector to a binary code. To tackle this, researchers apply
|
| 17 |
+
8 constraints to it to find near-optimal solutions, or employ heuristic algorithms
|
| 18 |
+
9 which are still time-consuming for encoding. Different from previous approaches,
|
| 19 |
+
10 this paper takes the first attempt to find a deep solution to MCQ. The encoding
|
| 20 |
+
11 network is designed to be as simple as possible, so the very complex encoding
|
| 21 |
+
12 problem becomes simply a feed-forward. Compared with other methods on three
|
| 22 |
+
13 datasets, our method shows state-of-the-art performance. Notably, our method
|
| 23 |
+
14 is $1 1 \times - 3 8 \times$ faster than heuristic algorithms for encoding, which makes it more
|
| 24 |
+
15 practical for real scenery of large-scale retrieval. Our code is publicly available:
|
| 25 |
+
16 https://github.com/DeepMCQ/DeepQ.
|
| 26 |
+
|
| 27 |
+
# 17 1 Introduction
|
| 28 |
+
|
| 29 |
+
18 Rapidly increasing multimedia contents in recent years raise an urgent request for retrieval in a
|
| 30 |
+
19 short time. Unlike the exhaustive routine [31, 20], Approximate Nearest Neighbor (ANN) search
|
| 31 |
+
20 significantly reduces retrieval time while preserving high recall. It has been widely applied to various
|
| 32 |
+
21 scenarios, such as database indexing, fast image retrieval, and recommender systems.
|
| 33 |
+
22 As a typical approach, vector quantization (VQ) [7] is at first developed as a compression technique,
|
| 34 |
+
23 which uses a codebook to approximate vectors. People further find the power of VQ to preserve
|
| 35 |
+
24 similarities between quantized features and enable VQ to perform ANN search. In order to achieve
|
| 36 |
+
25 low quantization errors with limited codebook size, a multi-codebook structure is introduced. The
|
| 37 |
+
26 proposal of the Multi-Codebook Quantization (MCQ) [2] describes the approach as a combination
|
| 38 |
+
27 of one codeword for each sub-codebook, and previous methods [9, 6, 19, 30, 10, 3] are summarized
|
| 39 |
+
28 as exceptional cases of MCQ or constrained MCQs. The quantization codes are designed to be
|
| 40 |
+
29 compacted, which results in negligible storage cost and high-quality results.
|
| 41 |
+
30 However, the optimization of MCQ without any constraints is formally NP-hard. [14] models
|
| 42 |
+
31 it as the minimization on several fully-connected Markov Random Fields (MRFs). As a result,
|
| 43 |
+
32 current researches aim at solving MCQ under acceptable computational costs. Other than applying
|
| 44 |
+
33 constraints on it [34, 4, 15], another approach designs algorithms in a heuristic way [2, 14, 16]. The
|
| 45 |
+
34 latter achieves better performance but suffers from slow encoding.
|
| 46 |
+
35 There are chances to employ neural networks’ power to solve MCQ, where people expect to obtain
|
| 47 |
+
36 higher performance and encoding efficiency than previous methods. [11, 5, 28, 33, 27] already give
|
| 48 |
+
37 the way to treat codebook as network parameter and update it by gradient-descent, but they are
|
| 49 |
+
38 all still under constraints that hinder performance. Morozov and Babenko [18] and Sablayrolles et
|
| 50 |
+
39 al. [22] map datapoints to learned space, which are not flexible, especially when performing the
|
| 51 |
+
40 reconstruction. Therefore in this paper, we give our first attempt to solve MCQ in a deep learning
|
| 52 |
+
41 approach, without constraints and work-arounds. Our contributions can be summarized as three-folds:
|
| 53 |
+
42 • Our novel approach, Deep Multi-Codebook Quantization (DeepQ), fully considers encoding
|
| 54 |
+
43 difficulty and time complexity in MCQ. With the high efficient and parallelized encoding networks,
|
| 55 |
+
44 our method significantly reduces encoding time.
|
| 56 |
+
45 To tackle the NP-hard encoding problem and non-differentiable gradient estimation, we employ and
|
| 57 |
+
46 further revise a policy gradient method. Value-Corrected Proximal Policy Optimization (VC-PPO)
|
| 58 |
+
47 is proposed to speed up convergence in the training phase.
|
| 59 |
+
48 Experiments conducted on a benchmark dataset validate our proposed method. Furthermore, to
|
| 60 |
+
49 evaluate the scalability of the method, it is tested on million-scale datasets to show the effectiveness
|
| 61 |
+
50 of our proposed algorithm.
|
| 62 |
+
|
| 63 |
+
# 51 2 Related Works
|
| 64 |
+
|
| 65 |
+
52 Vector quantization is a routine to approximate vectors by a codebook. Typical applications include
|
| 66 |
+
53 clustering, compression, and Approximate Nearest Neighbor (ANN) search. The famous proposal
|
| 67 |
+
54 $k$ -means [7], also known as Lloyd’s algorithm [13], clusters the dataset into uniformly sized convex
|
| 68 |
+
55 cells. When it is applied to ANN search, datapoints from the base set are quantized into their
|
| 69 |
+
56 nearest centriods and represented by indices. The distance from a given query to any datapoint
|
| 70 |
+
57 is approximated by the distance from the query to the datapoint’s centriod, which is effectively
|
| 71 |
+
58 pre-computed and stored in a lookup table. To perform fine-grained clustering as well as reducing the
|
| 72 |
+
59 space and time complexity, they [9, 6, 19, 10, 30] divide the feature space orthogonally by performing
|
| 73 |
+
60 $k$ -means in each subspace concurrently. Meanwhile, the introduced sub-codebook structure reveals
|
| 74 |
+
61 the prototype of MCQ. Formally, [2] gives a well definition of MCQ, and previous works are all
|
| 75 |
+
62 summarized into constrained MCQs. Specifically, subspace $k$ -means must keep orthogonality among
|
| 76 |
+
63 sub-codebooks. Zhang et al. [34] loosens the orthogonality constraint, but sub-codebooks are still
|
| 77 |
+
64 weakly-orthogonal. Chen et al. [4] and Martinez et al. [15] propose hierarchical $k$ -means, where
|
| 78 |
+
65 vectors are quantized coarse-to-fine. If constraints are moved, MCQ is not easy to solve. Current
|
| 79 |
+
66 state-of-the-art methods develop heuristic algorithms to help to encode. Specifically, Babenko and
|
| 80 |
+
67 Lempitsky [2] employs beam search, Martinez et al. [14, 16] give algorithm based on Iterated
|
| 81 |
+
68 Conditional Modes (ICM). However, the above methods do not achieve satisfied time complexity in
|
| 82 |
+
69 encoding yet.
|
| 83 |
+
70 When neural networks and gradient descent become a fashion, a few attempts to integrate quantization
|
| 84 |
+
71 into deep retrieval networks are proposed. Klein and Wolf [11] and Song et al. [5] propose Deep
|
| 85 |
+
72 Product Quantization (DPQ) and Deep Progressive Quantization $\mathrm { ( D P g Q ) }$ which update codebook by
|
| 86 |
+
73 soft relaxation, but they are still under the same constraints as [9, 15]. Sablayrolles et al. [22] and
|
| 87 |
+
74 Morozov and Babenko [18] give pipelines to encode compact representations for compressed-domain
|
| 88 |
+
75 search, but they do not strictly follow the paradigm of MCQ.
|
| 89 |
+
|
| 90 |
+
# 76 3 Preliminaries
|
| 91 |
+
|
| 92 |
+
77 Given a vector $\pmb { x } \in \mathbb { R } ^ { D }$ , its quantized vector $\tilde { \pmb { x } }$ are composed by several codewords in a codebook
|
| 93 |
+
78 $C$ . More Specifically, $C = ( \bar { C } _ { m } )$ , $C _ { m } \in \mathbb { R } ^ { K \times D }$ , $1 \leq m \leq M$ contains $M$ sub-codebooks and $K$
|
| 94 |
+
79 codewords for each. Quantization codes are formed by $\pmb { b } = ( \pmb { b } _ { m } )$ , $\pmb { b _ { m } } \in \{ 1 , 2 , \cdots , K \}$ , $1 \leq m \leq$
|
| 95 |
+
80 $M$ , which indicates the picked codeword in each sub-codebook. For the whole training set $X = \{ x \}$
|
| 96 |
+
81 with $N$ datapoints, MCQ aims at finding the optimal quantization codes ${ \boldsymbol { B } } = \{ { \boldsymbol { b } } \}$ and codebook $C$
|
| 97 |
+
82 to minimize following objective:
|
| 98 |
+
|
| 99 |
+
$$
|
| 100 |
+
\underset { C , B } { \operatorname* { m i n } } \ \underset { { \bf { x } } \in { \cal { X } } } { \mathbb { E } } \operatorname { Q } \left( { \bf { x } } , { \bf { b } } , C \right) = \underset { C , B } { \operatorname* { m i n } } \ \underset { { \bf { x } } \in { \cal { X } } } { \mathbb { E } } \left\| { \bf { x } } - \sum _ { m = 1 } ^ { M } C _ { m b _ { m } } \right\| _ { 2 }
|
| 101 |
+
$$
|
| 102 |
+
|
| 103 |
+
83 where $C _ { m { \pmb b } _ { m } } \in \mathbb { R } ^ { D }$ is the $b _ { m }$ -th codeword of the $m$ -th sub-codebook. The sum of picked codewords
|
| 104 |
+
84 $\sum C _ { m { \pmb b } _ { m } }$ tries to approximate $_ { \textbf { \em x } }$ . $C$ and $^ { b }$ are stored for further retrieval. Some of the previously
|
| 105 |
+
85 mentioned methods [9, 6, 4, 15, 34] are treated as constrained MCQs, as they are all represented
|
| 106 |
+
86 as special cases of (1). Specifically, when $M = 1$ , (1) becomes VQ. Or if any two sub-codebooks
|
| 107 |
+
87 $C _ { i } , C _ { j }$ are orthogonal, it will be PQ or OPQ.
|
| 108 |
+
88 The optimization of (1) without any constraints is proved to be NP-hard [14]. To tackle this, we
|
| 109 |
+
89 propose a Expectation-Maximization style solution. Following sections will explain the deep neural
|
| 110 |
+
90 network for encoding $^ { b }$ (Section 4.1), the way to solve $C$ (Section 4.2), and how to conduct retrieval
|
| 111 |
+
91 (Section 4.3), respectively.
|
| 112 |
+
|
| 113 |
+
# 92 4 Methodology
|
| 114 |
+
|
| 115 |
+
# 93 4.1 Expectation: Encoding $\textbf { { B } }$ with neural networks
|
| 116 |
+
|
| 117 |
+
94 Our first step, is to find a potential code $^ { b }$ by given $_ { \textbf { \em x } }$ and
|
| 118 |
+
95 a fixed $C$ . A policy $\pi$ parameterized by $\theta$ is employed to
|
| 119 |
+
96 take possible solution of $^ { b }$ by feeding $_ { \textbf { \em x } }$ :
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\pi = \left( \pi _ { m } \right) = \pi \left( \pmb { x } \mid \theta _ { m } \right) , 1 \leq m \leq M .
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
97 More specifically, $\pi$ produces $M$ Categorical distribu
|
| 126 |
+
98 tions Categorical $( K , \pmb { p } _ { m 1 } , \cdots , \pmb { p } _ { m K } )$ , where $\pmb { p } _ { m j }$ is
|
| 127 |
+
99 the probability to pick the $j$ -th codeword in the $m$ -th
|
| 128 |
+
100 sub-codebook. A potential encoding $\boldsymbol { b } _ { m }$ is generated by
|
| 129 |
+
101 drawing samples from $\pi _ { m }$ , which then helps us to pick
|
| 130 |
+
102 codeword $C _ { m b _ { m } }$ . Therefore:
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\pmb { b _ { m } } \sim \pi _ { m } \left( \pmb { x } \mid \theta _ { m } \right) = \operatorname { C a t e g o r i c a l } ( K , \pmb { p _ { m } } ) .
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
103 Since the independence among different sub-codebooks
|
| 137 |
+
104 is a prerequisite of MCQ, $\boldsymbol { b } _ { m }$ should be drawn from $\pi _ { m }$
|
| 138 |
+
105 independently. Intuitively, the probability of $^ { b }$ to be a
|
| 139 |
+
106 specific ${ \pmb { b } } ^ { \star }$ is derived by conditional independence:
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\operatorname* { P r } \left( \boldsymbol { b } = \boldsymbol { b } ^ { \star } \right) = \prod _ { m = 1 } ^ { M } \operatorname* { P r } \left( \boldsymbol { b } _ { m } = \boldsymbol { b } _ { m } ^ { \star } \right) = \prod _ { m = 1 } ^ { M } p _ { m \boldsymbol { b } _ { m } ^ { \star } } .
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
107 We adopt the power of neural networks to model
|
| 146 |
+
108 $\pi _ { m }$ . Specifically, $\theta _ { m }$ produces $K$ unnormalized log
|
| 147 |
+
109 probabilities $\ell _ { m }$ and $\pmb { p } _ { m j }$ is obtained by Softmax. To
|
| 148 |
+
110 keep the independence, $\dot { \theta _ { m } }$ will not share parameters with
|
| 149 |
+
111 each other.
|
| 150 |
+
112 Therefore, $\theta$ , or our proposed IndepNet is illustrated in
|
| 151 |
+
113 Figure 1. We first build a basic structure called IndepBlock and duplicate this block for $M$ times as
|
| 152 |
+
114 $\theta _ { 1 } , \theta _ { 2 } , \cdots , \theta _ { M }$ . We try to keep the basic structure really simple to achieve high efficiency during
|
| 153 |
+
115 training and encoding. As the figure shows, IndepBlock is an hourglass network contains 6 layer
|
| 154 |
+
116 groups (consists of a linear layer with ReLU activation and layer-normalization) with skip-connections.
|
| 155 |
+
117 The last three outputs are concatenated and further fed into a final linear layer with $K$ outputs as
|
| 156 |
+
118 $\ell _ { m } = ( \ell _ { m 1 } , \cdot \cdot \cdot , \bar { \ell } _ { m K } )$ , and therefore:
|
| 157 |
+
|
| 158 |
+

|
| 159 |
+
Figure 1: Our proposed IndepNet for producing probabilities of choosing each codeword. IndepBlock is duplicated for $M$ times without shared parameters, in order to keep independence between different IndepBlocks. Categorical distribution is built upon output from the IndepBlock. Then, quantization code $b _ { m }$ associated with sub-codebook $C _ { m }$ is sampled from distribution.
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\pmb { p } _ { m j } = \mathrm { S o f t m a x } \left( \pmb { \ell } _ { m } \right) _ { j } , \ w h e r e \ \pmb { \ell } _ { m } = \theta _ { m } \left( \pmb { x } \right) .
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
# 119 4.1.1 Gradient estimation
|
| 166 |
+
|
| 167 |
+
120 The objective of training $\theta$ is formed as:
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
\operatorname* { m i n } _ { \pmb { \pi } } \operatorname* { \mathbb { E } } _ { \pmb { x } \in \pmb { X } } \mathrm { Q } \left( \pmb { x } , \pmb { b } , \pmb { C } \right) .
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
121 However, the optimization faces two problems: 1) The encoding of $^ { b }$ involves sampling from discrete
|
| 174 |
+
122 distributions, which is non-differentiable, 2) All possible encoding of $^ { b }$ is $\mathcal { O } \left( \overset { \bullet } { K } { } ^ { M } \right)$ . Exhaustive
|
| 175 |
+
123 search becomes impracticable.
|
| 176 |
+
124 Therefore, gradient estimation over discrete, stochastic computation graph is required to train $\theta$ .
|
| 177 |
+
125 Mainstream methods [23, 32, 17] include score function gradient estimator, pathwise gradient
|
| 178 |
+
126 estimator, etc. Meanwhile, minimizing (6) is also faced with the high-variance problem during
|
| 179 |
+
127 gradient estimation. To tackle this, the advantage function is introduced [12, 25]. Specifically in
|
| 180 |
+
128 our work, a value network called QENet parameterized by $\tau$ is proposed to model a value function
|
| 181 |
+
129 $v = \mathrm { V } \left( \cdot \mid \tau \right)$ . It performs a regression task to minimize the following objectives:
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
\operatorname* { m i n } _ { \tau } \underset { \pmb { x } \in \pmb { X } } { \mathbb { E } } \| \mathrm { Q } \left( \pmb { x } , \pmb { b } , \pmb { C } \right) - \mathrm { V } \left( \pmb { x } , \pmb { b } , \pmb { C } \mid \tau \right) \| _ { 2 } .
|
| 185 |
+
$$
|
| 186 |
+
|
| 187 |
+
Advantages 130 $\hat { A }$ is then estimated by
|
| 188 |
+
|
| 189 |
+
$$
|
| 190 |
+
\hat { A } = \operatorname { Q } \left( \mathbf { { x } } , \boldsymbol { b } , \boldsymbol { C } \right) - \operatorname { V } \left( \mathbf { { x } } , \boldsymbol { b } , \boldsymbol { C } \mid \tau \right) .
|
| 191 |
+
$$
|
| 192 |
+
|
| 193 |
+
131 The detailed architecture of QENet is shown in Figure 2.
|
| 194 |
+
132 We reuse the IndepBlock to generate $v$ by $M + 1$ blocks:
|
| 195 |
+
133 $\boldsymbol { \tau } = \left( \tau _ { 1 } , \cdot \cdot \cdot , \tau _ { M } , \tau _ { x } \right)$ . Specifically, latent representation
|
| 196 |
+
134 for each selected-codeword $C _ { m b _ { m } }$ is obtained by:
|
| 197 |
+
|
| 198 |
+
$$
|
| 199 |
+
\pmb { \iota } _ { m } = \tau _ { m } ( C _ { m { \pmb b } _ { m } } ) .
|
| 200 |
+
$$
|
| 201 |
+
|
| 202 |
+
135 The last IndepBlock $\tau _ { x }$ is introduced to transform $_ { \textbf { \em x } }$ . Then,
|
| 203 |
+
136 all the outputs from IndepBlocks are summed up to get
|
| 204 |
+
137 scalar value $v$ (denoted as “reduce-sum”):
|
| 205 |
+
|
| 206 |
+
$$
|
| 207 |
+
v = { \mathrm { s u m } } ( \iota _ { 1 } , \cdot \cdot \cdot , \iota _ { M } , \iota _ { x } ) .
|
| 208 |
+
$$
|
| 209 |
+
|
| 210 |
+

|
| 211 |
+
Figure 2: Our proposed QENet for advantage estimation. First $M$ IndepBlocks are fed by $M$ selected codewords and the last one is fed by $_ { \textbf { \em x } }$ . Outputs are summed up to get scalar value $v$ .
|
| 212 |
+
|
| 213 |
+
138 Value-corrected proximal policy optimization We
|
| 214 |
+
139 propose a variant of score function gradient estimator
|
| 215 |
+
140 called Value Corrected Proximal Policy Optimization (VC
|
| 216 |
+
141 PPO) based on PPO to get simple but efficient Trust Re
|
| 217 |
+
142 gion updates [26, 24]. In the real scenario of large-scale
|
| 218 |
+
143 ANN search, the training size $N$ is usually larger than $1 0 k$ . Conventional PPO still does not satisfy
|
| 219 |
+
144 us due to the speed of convergence. Therefore, we revise and propose the Value-Corrected PPO
|
| 220 |
+
145 (VC-PPO) to achieve fast training. Firstly in the sampling stage, $b _ { o }$ and $v _ { o }$ is produced from datapoint
|
| 221 |
+
146 $_ { \textbf { \em x } }$ over whole training set $\boldsymbol { X }$ by freezing current policy network and value network as $\theta _ { o } , \tau _ { o }$ :
|
| 222 |
+
|
| 223 |
+
$$
|
| 224 |
+
\begin{array} { r l } & { b _ { o } \sim \pi \left( \pmb { x } \mid \theta _ { o } \right) , } \\ & { v _ { o } = \mathrm { V } \left( \pmb { x } , b _ { o } , C \mid \tau _ { o } \right) . } \end{array}
|
| 225 |
+
$$
|
| 226 |
+
|
| 227 |
+
147 The probability of producing the sampled $b _ { o }$ is denoted as $p _ { o } = \operatorname* { P r } \left( \pmb { b } _ { o } \mid \pmb { x } , \pmb { \theta } _ { o } \right)$ , calculated by
|
| 228 |
+
148 equation (4). Finally, our surrogate objectives of VC-PPO is defined as [8]:
|
| 229 |
+
|
| 230 |
+
149
|
| 231 |
+
|
| 232 |
+
$$
|
| 233 |
+
\begin{array} { r l } & { \mathcal { L } _ { \theta } = \operatorname* { m i n } \left( \frac { \operatorname* { P r } \left( b _ { o } \mid \boldsymbol { x } , \theta \right) } { \operatorname* { P r } \left( b _ { o } \mid \boldsymbol { x } , \theta _ { o } \right) } \hat { A } , \right. } \\ & { \qquad \left. \mathrm { c l i p } _ { 1 - \epsilon } ^ { 1 + \epsilon } \left( \frac { \operatorname* { P r } \left( b _ { o } \mid \boldsymbol { x } , \theta \right) } { \operatorname* { P r } \left( b _ { o } \mid \boldsymbol { x } , \theta _ { o } \right) } \right) \hat { A } \right) , } \\ & { \mathcal { L } _ { \tau } = \operatorname* { m a x } \left( \left( \operatorname { Q } \left( \boldsymbol { x } , b _ { o } , C \right) - \mathrm { V } \left( \boldsymbol { x } , b _ { o } , C \mid \tau \right) \right) ^ { 2 } , \right. } \\ & { \qquad \left. \left( \mathrm { Q } \left( \boldsymbol { x } , b _ { o } , C \right) - \boldsymbol { v } _ { o } - \mathrm { c l i p } _ { - \epsilon } ^ { + \epsilon } \left( \mathrm { V } \left( \boldsymbol { x } , b _ { o } , C \mid \tau \right) - \boldsymbol { v } _ { o } \right) \right) ^ { 2 } \right) . } \end{array}
|
| 234 |
+
$$
|
| 235 |
+
|
| 236 |
+
150 Here, The $\mathrm { c l i p } \left( \cdot \right)$ forces the policy and value to be not too far from old ones and $\epsilon$ is the clip-range.
|
| 237 |
+
151 In both equations, it prevents a large update ratio leading to an unstable policy. The key difference
|
| 238 |
+
152 between the original PPO and our VC-PPO is, we use $\mathrm { V } \left( \boldsymbol { x } , \boldsymbol { b _ { o } } , \boldsymbol { C } \mid \tau \right)$ other than the recorded old
|
| 239 |
+
153 value $v _ { o }$ from sampling stage to estimate advantage. This modification is treated as a value-correction
|
| 240 |
+
154 process. Correcting value leads to a precise estimation on advantage, which is based on two reasons:
|
| 241 |
+
155 a) Biases are introduced into advantage estimation if we use $v _ { o }$ , since the policy is getting better and
|
| 242 |
+
156 better during training but $\tau _ { o }$ is froze, and 2) The calculation of $\mathrm { V } \left( \boldsymbol { x } , \boldsymbol { b _ { o } } , \boldsymbol { C } \mid \tau \right)$ can be done instantly
|
| 243 |
+
157 without introducing significant computational overhead. To further encourage the network choose
|
| 244 |
+
158 codewords uniformly, a regularization is applied to $\theta$ to maximize the entropy of $\pi$ :
|
| 245 |
+
|
| 246 |
+
$$
|
| 247 |
+
e _ { \theta } = - \sum _ { m = 1 } ^ { M } \sum _ { j = 1 } ^ { K } p _ { m j } \log { p _ { m j } }
|
| 248 |
+
$$
|
| 249 |
+
|
| 250 |
+
159 which forces network to try more codeword combinations.
|
| 251 |
+
|
| 252 |
+
# 60 4.2 Maximization: Solve $C$ by least-squares
|
| 253 |
+
|
| 254 |
+
161 To give the closed-form derivation of solving $C$ by given $\boldsymbol { X }$ and $\textbf { { B } }$ , We will firstly rewrite Equation
|
| 255 |
+
162 (1) to a matrix formulation. Since $\pmb { b } = ( \pmb { b } _ { 1 } , \pmb { b } _ { 2 } , \pmb { \cdot \cdot \cdot } , \pmb { b } _ { M } )$ and ${ \pmb b } _ { m } \in \{ 1 , 2 , \cdots \dot { K } \}$ is the index of
|
| 256 |
+
163 selected codeword in the $i$ -th sub-codebook, a one-hot encoding and a concatenation on each $b _ { m }$ :
|
| 257 |
+
164 $\pmb { b } _ { m } ^ { \prime } = \mathrm { o n e - h o t } ( \pmb { b } _ { m } )$ , $\pmb { b } ^ { \prime } = ( \pmb { b } _ { 1 } ^ { \prime } , \cdots , \pmb { b } _ { m } ^ { \prime } )$ will convert the quantization code to a $M$ -hot vector i.e. a
|
| 258 |
+
165 vector that contains $M$ segments, and each segment contains exactly one 1 and remaining 0, where
|
| 259 |
+
1 is the entry of picked codeword. Correspondingly, a reshape is applied to 166 $C \colon C ^ { \prime } = \left( \begin{array} { c } { { C _ { 1 } } } \\ { { C _ { 2 } } } \\ { { \vdots } } \\ { { C _ { M } } } \end{array} \right) \in$
|
| 260 |
+
|
| 261 |
+
$\mathbb { R } ^ { ( M \times K ) \times D }$ . (1) will become:
|
| 262 |
+
|
| 263 |
+
$$
|
| 264 |
+
\operatorname* { m i n } _ { \boldsymbol { C ^ { \prime } } } \left\| \boldsymbol { X } - \boldsymbol { B ^ { \prime } } \boldsymbol { C ^ { \prime } } \right\| _ { 2 } ^ { 2 } .
|
| 265 |
+
$$
|
| 266 |
+
|
| 267 |
+
168 This equation is formally a linear least-squares regression, where $\pmb { { B } } ^ { \prime } \in \{ 0 , 1 \} ^ { N \times ( M \times K ) }$ is known
|
| 268 |
+
169 and $\boldsymbol { X }$ is target. Although there is a bunch of algorithms to solve it, we finally choose gelsy [1],
|
| 269 |
+
170 which in our experiments shows the best results. The solution is to first apply a QR factorization with
|
| 270 |
+
171 column permutation on $B ^ { \prime }$ :
|
| 271 |
+
|
| 272 |
+
$$
|
| 273 |
+
B ^ { \prime } = Q \left( \begin{array} { c c } { { R _ { 1 1 } } } & { { R _ { 1 2 } } } \\ { { 0 } } & { { R _ { 2 2 } } } \end{array} \right) P ^ { \intercal }
|
| 274 |
+
$$
|
| 275 |
+
|
| 276 |
+
where 172 $Q$ and $\pmb { R } = \left( \begin{array} { c c } { R _ { 1 1 } } & { R _ { 1 2 } } \\ { 0 } & { R _ { 2 2 } } \end{array} \right)$ is the factorization matrix and $_ { r }$ is an orthogonal matrix that 173 permutes columns of $B ^ { \prime }$ until $\pmb { R } _ { 1 1 }$ is well-conditioned (its estimated condition number approaches 174 0). With the permutation, $ { R _ { 2 2 } }$ becomes negligible. Moreover, $\mathbf { R } _ { 1 2 }$ is erased by another orthogonal 175 transformation:
|
| 277 |
+
|
| 278 |
+
$$
|
| 279 |
+
\begin{array} { r l } { \bigg ( R _ { 1 1 } } & { { } R _ { 1 2 } \bigg ) \bigg ( R _ { 1 1 } \quad R _ { 1 2 } \bigg ) = \bigg ( T _ { 1 1 } \quad 0 \bigg ) Z } \\ { 0 } & { { } R _ { 2 2 } \bigg ) \bigg ( T _ { 0 } \qquad 0 \bigg ) = \bigg ( T _ { 0 } \quad 0 \bigg ) Z } \end{array}
|
| 280 |
+
$$
|
| 281 |
+
|
| 282 |
+
where 176 $\mathbf { T }$ and $z$ are from the orthogonal transformation of $\pmb { R }$ . Then, $C ^ { \prime }$ is derived by:
|
| 283 |
+
|
| 284 |
+
$$
|
| 285 |
+
\begin{array} { r } { B ^ { \prime } = Q \left( \begin{array} { c c } { T _ { 1 1 } } & { 0 } \\ { 0 } & { 0 } \end{array} \right) Z P ^ { \intercal } , } \\ { C \gets C ^ { \prime } \gets P Z ^ { \intercal } \left( \begin{array} { c c } { T _ { 1 1 } ^ { - 1 } Q _ { 1 } ^ { \intercal } X } \\ { 0 } \end{array} \right) } \end{array}
|
| 286 |
+
$$
|
| 287 |
+
|
| 288 |
+
where 177 $Q _ { 1 }$ is the top $\mathrm { r a n k } ( B ^ { \prime } )$ columns of $Q$ .
|
| 289 |
+
|
| 290 |
+
178 In brief, our overall training approach is summarized into algorithm 1.
|
| 291 |
+
|
| 292 |
+
# 4.3 Fast retrieval
|
| 293 |
+
|
| 294 |
+
80 After training, we are able to encode the base set for retrieval. Other than sampling from $\pi$ , codewords
|
| 295 |
+
81 are simply rolled out by greedy assignments:
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
\pmb { b } _ { m } ^ { g } = \arg \operatorname* { m a x } \theta _ { m } ( \pmb { x } ) .
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+
182 We firstly use the greedy roll-out strategy to obtain $\textbf { { B } }$ in the training set in order to solve the final
|
| 302 |
+
183 codebook. Then, we employ the same strategy to encode the base set.
|
| 303 |
+
184 To further refine assignments, we add an extra step that randomly selects and alters $b _ { i }$ while fixing
|
| 304 |
+
185 others:
|
| 305 |
+
|
| 306 |
+
$$
|
| 307 |
+
\begin{array} { l } { { b _ { i } ^ { g } \underset { b _ { i } ^ { g } } { \operatorname { a r g m i n } } \mathrm { Q } ( x , b ^ { g } , C ) , } } \\ { { \quad i \sim \mathcal { U } [ 1 , M ] . } } \end{array}
|
| 308 |
+
$$
|
| 309 |
+
|
| 310 |
+
186 Since this refinement only causes negligible overhead referred to the implementation by [14], in
|
| 311 |
+
187 practice, we benefit from it not only to get lower quantization error but also to obtain acceptable
|
| 312 |
+
188 performance from a fast training, i.e., training within a very few steps before the network is converged.
|
| 313 |
+
189 The encoded and refined base set, combined with the codebook, is finally employed for retrieval. The
|
| 314 |
+
90 LSQ-style lookup table [14] is utilized to speed up similarity search.
|
| 315 |
+
|
| 316 |
+
# 191 4.4 Discussion
|
| 317 |
+
|
| 318 |
+
Our work aims at solving Multi-Codebook Quantization via neural networks. Similar works include Unsupervised Neural Quantization (UNQ) [18] and Spreading Vectors [22]. But ours has several key advantages compared to previous works: 1) Unlike UNQ, which reconstructs features by an encoderdecoder structure, we follow the paradigm of MCQ to directly give binary codes and codebooks for the benefit of speed and storage, for UNQ needs an extra decoding stage during retrieval. 2) UNQ and Spreading Vectors both project original features into a learned space. Although similarities between features are preserved, they still have biases in quantized results. This causes several issues, especially when we want to perform a reconstruction to approximate original features, e.g. data compression.
|
| 319 |
+
|
| 320 |
+
208 Compared to LSQ [14], the state-of-the-art heuris
|
| 321 |
+
209 tic algorithm, our work is the first to tackle MCQ in
|
| 322 |
+
210 a deep learning fashion. The policy network is de
|
| 323 |
+
211 signed to be very simple to get fast encoding speed
|
| 324 |
+
212 and comparable retrieval performance.
|
| 325 |
+
|
| 326 |
+
# Algorithm 1: VC-PPO for Training
|
| 327 |
+
|
| 328 |
+
Inputs: Training set $\boldsymbol { X }$ , max step $T$ , hyper
|
| 329 |
+
parameters $\alpha$ , , learning rates $\eta _ { 1 } , \eta _ { 2 }$ .
|
| 330 |
+
Outputs: Policy $\pi$ .
|
| 331 |
+
Initialize codebook $C$ , parameters $\theta$ and $\tau$ ;
|
| 332 |
+
$i \gets 0$ ;
|
| 333 |
+
while $i < T$ do $^ { \prime * }$ Training loop $^ { * / }$ for $_ { \textbf { \em x } }$ in $\boldsymbol { X }$ do $^ { \prime * }$ Sampling stage $^ { * / }$ Sample $\ b { b _ { o } } \sim \pi \left( \pmb { x } \mid \theta _ { o } \right)$ into $\textbf { { B } }$ ; Compute $v _ { o } , p _ { o }$ into $V$ , $_ { r }$ ; end for $x , b _ { o } , v _ { o } , p _ { o }$ in $X , B , V , P r$ do $^ { \prime * }$ Updating stage $^ { * / }$ $\tau \tau - \eta _ { 1 } \nabla _ { \tau } { \mathcal { L } } _ { \tau }$ ; Compute $\hat { A }$ by (8); $\theta \theta + \eta _ { 2 } \nabla _ { \theta } ( \mathcal { L } _ { \theta } + \alpha \cdot e _ { \theta } ) ;$ end C ← Solved by (15) ∼ (18); $i \gets i + 1$ ;
|
| 334 |
+
end
|
| 335 |
+
return π (· | θ)
|
| 336 |
+
|
| 337 |
+
# 5 Experiments
|
| 338 |
+
|
| 339 |
+
214 Our proposed Deep Multi-Codebook Quantization (DeepQ) is compared against the state-of-the-arts
|
| 340 |
+
215 on a visual-feature dataset (LabelMe22K) to evaluate retrieval performance and encoding speed.
|
| 341 |
+
216 Then, we scale up to make comparisons on commonly used large-scale datasets (SIFT1M and
|
| 342 |
+
217 DEEP1M), whose base sets include 1 million vectors for retrieval. Furthermore, ablation study on
|
| 343 |
+
218 SIFT1M investigates the effectiveness of each component in our proposed pipeline.
|
| 344 |
+
|
| 345 |
+
# 5.1 Datasets and evaluation metrics
|
| 346 |
+
|
| 347 |
+
LabelMe22K [29]: This dataset collects images by the LabelMe annotation tool1 and uses Convolutional Neural Network (CNN) to extract them into 512-d features. It has 22, 019 vectors for training and 2, 000 vectors for test.
|
| 348 |
+
|
| 349 |
+
SIFT1M2 and DEEP1M3: Both datasets contain $1 0 ^ { 4 }$ , $1 0 ^ { 5 }$ , $1 0 ^ { 6 }$ vectors in query, training and base set, respectively. Vectors from SIFT1M is extracted by Scale-Invariant Feature Transform (128-d) while DEEP1M contains 96-d vectors from outputs of a CNN.
|
| 350 |
+
|
| 351 |
+
226 Recall $ @ \{ 1 , 1 0 , 1 0 0 \}$ and quantization error are adopted as evaluation metrics. These two metrics
|
| 352 |
+
227 indicate not only the retrieval performance but also the reconstruction accuracy. Because LabelMe22K
|
| 353 |
+
228 does not have a base set, its training set is adopted as a base set. We train on the training set, and then
|
| 354 |
+
229 encode the base set for evaluations with queries. When calculating recall, groundtruth is defined as
|
| 355 |
+
230 the nearest neighbor of each query in the base set (sorted by l2 distance). As for quantization error,
|
| 356 |
+
231 the average value of $\wr ( { \pmb x } , { \pmb b } , { \pmb C } )$ is reported over all $_ { \textbf { \em x } }$ in the base set.
|
| 357 |
+
|
| 358 |
+
We compare our proposal with both shallow and deep methods, including three classic quantization: OPQ [6], SQ [15] and $\mathbf { L S Q + + }$ [14, 16] (denoted as LSQ for simplicity. Also, these two in our experiments have similar performance), as well as three graident-based methods: DPQ [11], $\mathbf { D P g Q }$ [5] and DRQ [28]. DPQ and PQNet [33] have basically the same architecture that extend PQ with gradient-descent, so we only report the performance of DPQ. Additionally, UNQ [18] is also included, although they introduce an extra decoder and re-ranking trick for retrieval.
|
| 359 |
+
|
| 360 |
+
# 5.2 Implementation details
|
| 361 |
+
|
| 362 |
+
Our method is implemented with PyTorch,4 the popular deep learning package in Python. Codebook $C$ is solved by Intel MKL that has been fully optimized for speed. As for network training, we adopt Adam optimizer with AMSGrad [21] and hyperparameters are tuned by grid search. Specifically, learning rates $\eta _ { 1 } = \eta _ { 2 } =$ $2 \times 1 0 ^ { - 4 }$ , with an exponetial learning rate decay $\gamma = 0 . 9 9 9 9$ . Batch-size in updating stage is 2000, while other hyper-parameters $\epsilon = 0 . 2$ , $\alpha = 0 . 0 5$ . Additionally, during training, we insert dropout layers after every layernormalization in all layer-groups to tackle overfitting. More detailed settings as well as specifications of $I n$ - depNet $\theta$ and QENet $\tau$ on each dataset
|
| 363 |
+
|
| 364 |
+
<table><tr><td rowspan="3">Method</td><td colspan="6">LabelMe22K</td></tr><tr><td rowspan="2">R@1</td><td>32 bits</td><td rowspan="2">R@100</td><td rowspan="2">R@1</td><td rowspan="2">64 bits R@10</td><td rowspan="2">R@100</td></tr><tr><td>R@10</td></tr><tr><td>OPQ</td><td>18.70</td><td>57.25</td><td>90.10</td><td>32.30</td><td>80.40</td><td>98.00</td></tr><tr><td>SQ</td><td>18.45</td><td>57.60</td><td>90.85</td><td>32.65</td><td>82.05</td><td>99.05</td></tr><tr><td>LSQ</td><td>21.20</td><td>60.85</td><td>94.35</td><td>36.45</td><td>86.25</td><td>99.15</td></tr><tr><td>DPQ</td><td>8.60</td><td>32.80</td><td>77.50</td><td>15.35</td><td>48.75</td><td>90.75</td></tr><tr><td>DPgQ</td><td>19.85</td><td>57.80</td><td>90.70</td><td>35.05</td><td>84.10</td><td>98.90</td></tr><tr><td>DRQ</td><td>9.65</td><td>34.15</td><td>80.15</td><td>30.75</td><td>77.35</td><td>97.10</td></tr><tr><td>UNQ</td><td>22.25</td><td>61.20</td><td>89.30</td><td>37.10</td><td>85.55</td><td>98.80</td></tr><tr><td>Ours</td><td>24.45</td><td>69.05</td><td>97.65</td><td>39.60</td><td>87.60</td><td>99.80</td></tr></table>
|
| 365 |
+
|
| 366 |
+
Table 1: Recall(R $) @ \{ 1 , 1 0 , 1 0 0 \}$ on LabelMe22K dataset $( \% )$ . Ours outperforms state-of-the-arts by at least $2 . 2 0 \%$ $7 . 8 5 \%$ , $3 . 3 0 \%$ (32 bits), and $2 . 7 0 \%$ , $1 . 4 5 \%$ , $0 . 6 5 \%$ (64 bits), respectively.
|
| 367 |
+
|
| 368 |
+
(LabelMe22K, SIFT1M, DEEP1M) can be found in supplementary material.
|
| 369 |
+
|
| 370 |
+
As for quantization code-lengths, $K = 2 5 6$ codewords for each sub-codebook and $M = \{ 4 , 8 \}$ sub-codebooks are employed in total. We follow [2] to report “effective” code-lengths (additional code-length for storing $\lVert \boldsymbol { x } \rVert$ for lookup table is ignored). Therefore code-lengths become $\{ 3 2 , 6 4 \}$ bits, respectively.
|
| 371 |
+
|
| 372 |
+
For a fair comparison, experiments are conducted on a single machine, equipped with Intel Xeon E5-2678v3 CPU, 256 GiB RAM, and NVIDIA RTX 3090 GPU. For other methods, we re-run on all datasets under unified settings with implementations provided by the authors.
|
| 373 |
+
|
| 374 |
+
# 5.3 Comparisons with state-of-the-arts
|
| 375 |
+
|
| 376 |
+
Under the small training set and base set settings on LabelMe22K, we get the results placed in Table 1. Our method takes the highest recall on this dataset, outperforming the state-of-the-art by $2 . 2 0 \%$ , $7 . 8 5 \%$ , $3 . 3 0 \%$ on 32 bits for $\mathbf { R } \ @ 1$ , $\mathrm { R @ 1 0 }$ and $\mathbf { R } @ \mathbf { 1 } 0 0$ . It also outperforms the best competitor by $2 . 7 0 \%$ , $1 . 4 5 \%$ , $0 . 6 5 \%$ on 64 bits. In brief, All methods except for UNQ are generally split into three styles: 1) PQ-like: OPQ and DPQ. 2) SQ-like: SQ, $\mathrm { D P g Q }$ and DRQ. 3) MCQ: LSQ and ours. Generally, DPQ, $\mathrm { D P g Q }$ , and DRQ achieve similar results compared to their shallow versions. However, since they are still constrained MCQs, they show worse performances than 3). The performance of LSQ is worse than ours, shows the effectiveness of neural networks for modeling the MCQ encoding problem. As for UNQ, it takes several extra tricks i.e., another network for decoding and re-ranking in retrieval. Although it beats LSQ, our network still shows the power of MCQ to win the competition.
|
| 377 |
+
|
| 378 |
+
<table><tr><td rowspan="3">Method</td><td colspan="6">SIFT1M</td><td colspan="6">DEEP1M</td></tr><tr><td></td><td>32 bits</td><td></td><td></td><td>64 bits</td><td></td><td></td><td>32 bits</td><td></td><td></td><td>64 bits</td><td></td></tr><tr><td>R@1</td><td>R@10</td><td>R@100</td><td>R@1</td><td>R@10</td><td>R@100</td><td>R@1</td><td>R@10</td><td>R@100</td><td>R@1</td><td>R@10</td><td>R@100</td></tr><tr><td>OPQ</td><td>5.34</td><td>22.03</td><td>56.72</td><td>22.84</td><td>60.27</td><td>92.19</td><td>3.07</td><td>15.39</td><td>48.40</td><td>15.34</td><td>50.06</td><td>87.96</td></tr><tr><td>sQ</td><td>9.45</td><td>34.88</td><td>70.07</td><td>24.41</td><td>65.48</td><td>93.17</td><td>6.41</td><td>26.79</td><td>70.25</td><td>19.95</td><td>56.31</td><td>91.27</td></tr><tr><td>LSQ</td><td>11.43</td><td>40.48</td><td>80.52</td><td>33.23</td><td>78.37</td><td>98.72</td><td>7.29</td><td>28.96</td><td>72.93</td><td>21.12</td><td>61.47</td><td>93.98</td></tr><tr><td>DPQ</td><td>5.41</td><td>22.97</td><td>58.57</td><td>21.87</td><td>59.39</td><td>91.66</td><td>1.59</td><td>8.96</td><td>33.09</td><td>9.53</td><td>33.45</td><td>72.80</td></tr><tr><td>DPgQ</td><td>9.71</td><td>35.03</td><td>74.19</td><td>27.96</td><td>69.98</td><td>96.04</td><td>6.36</td><td>26.16</td><td>70.02</td><td>18.98</td><td>55.80</td><td>90.95</td></tr><tr><td>DRQ</td><td>1.40</td><td>8.87</td><td>35.27</td><td>18.56</td><td>53.06</td><td>88.45</td><td>4.48</td><td>22.46</td><td>62.57</td><td>16.10</td><td>52.76</td><td>89.31</td></tr><tr><td>UNQ</td><td>10.01</td><td>33.92</td><td>73.39</td><td>28.37</td><td>69.15</td><td>95.99</td><td>5.19</td><td>23.55</td><td>65.09</td><td>16.12</td><td>52.06</td><td>90.10</td></tr><tr><td>Ours</td><td>11.02</td><td>37.73</td><td>76.79</td><td>28.02</td><td>70.22</td><td>96.43</td><td>7.43</td><td>30.03</td><td>72.48</td><td>20.87</td><td>62.06</td><td>94.07</td></tr></table>
|
| 379 |
+
|
| 380 |
+
Table 2: Quantitative comparisons with state-of-the-arts on SIFT1M and DEEP1M datasets. $\operatorname { R e c a l l } ( \mathbf { R } ) @ \left\{ 1 , 1 0 , 1 0 0 \right\}$ are reported $( \% )$ . Ours shows comparable performance with staet-of-the-arts on SIFT1M, while achieving the highest recall in most cases on DEEP1M.
|
| 381 |
+
|
| 382 |
+
# 78 5.3.1 Large-scale retrieval performance
|
| 383 |
+
|
| 384 |
+
Our evaluations on SIFT1M and DEEP1M datasets is presented in Table 2. The training set and base set are scaled up, and retrievals on these datasets become more difficult. We observe expected results on two datasets. Compared to our main competitor, LSQ, our method achieves comparable performance on SIFT1M, and outperforms LSQ on DEEP1M in most cases. Our method achieves higher recall on DEEP1M than SIFT1M. A potential reason is that DEEP1M is under a nearly normal distribution that, in practice, is easier to converge than SIFT1M, which has a larger variance between datapoints. The performance of UNQ in our experiments is lower than expected, possibly due to different dataset settings.
|
| 385 |
+
|
| 386 |
+
Another key advantage of our method is that, different from shallow methods, which are hand-crafted algorithms that find possible solutions manually or with constraints, our DeepQ encodes vectors by only a feed-forward.
|
| 387 |
+
|
| 388 |
+
# 5.3.2 Encoding efficiency
|
| 389 |
+
|
| 390 |
+
In order to verify the encoding efficiency of our method, evaluations of encoding time on SIFT1M with the $1 0 ^ { 6 }$ base set are conducted by checking the total time spent. All of them are run under GPU-acceleration. Additionally, we evaluate the time with and without the extra codewords refinement that introduced in section 4.3 (128 bits results are simulated). As Figure 3 shows, our network is significantly faster than LSQ since it needs to perform local search iteratively for 25 or even 100 rounds. Specifically, to encode SIFT1M base set, LSQ takes 52.84s, 96.99s, 256.86s and 639.18s for 16, 32, 64 and 128 bits respectively. By contrast, our method takes 4.46s, 5.46s, 8.26s and 16.64s, which is $1 1 . 8 \times$ , $1 7 . 8 \times$ , $3 1 . 1 \times$ and $3 8 . 4 \times$ faster than LSQ. Moreover, our method is even faster than most of the constrained MCQs. We also notice that the refinement takes negligible overhead. Although UNQ takes the fastest encoding speed, it still needs to decode and re-rank during retrieval, which slows down its retrieval speed.
|
| 391 |
+
|
| 392 |
+
# 5.3.3 Reconstruction accuracy
|
| 393 |
+
|
| 394 |
+

|
| 395 |
+
Figure 3: Total encoding time w.r.t. code-length on SIFT1M dataset. For 128 bits, we illustrate the simulated results. The variant Ours\* removes extra refinement step to show its overhead. Our two variants are significantly faster than LSQ while achieving similar performance. Furthermore, our method is slightly faster than most of the constrained MCQs. Our method achieves high performance as well as superior encoding efficiency. UNQ has the shortest time to encode the whole set, however during retrieval, they still need to decode and re-rank that slow down the speed.
|
| 396 |
+
|
| 397 |
+
315 datasets are stated in Table 3. Basically, when the quantization error gets lower, recall will be higher.
|
| 398 |
+
|
| 399 |
+
Table 3: Comparisons of quantization error with state-of-the-arts on three datasets (lower is better). Ours achieves the lowest quantization error in most cases. This gives us benefits of feature reconstruction. Observe that UNQ performs poorly, we believe it focuses more on ranking and similarity preservation, other than reconstruction.
|
| 400 |
+
|
| 401 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">SIFT1M</td><td colspan="2">DEEP1M</td><td colspan="2">LabelMe22K</td></tr><tr><td>32 bits</td><td>64 bits</td><td>32 bits</td><td>64 bits</td><td>32 bits</td><td>64 bits</td></tr><tr><td>OPQ</td><td>4.03×104</td><td>2.51×104</td><td>4.25×10-1</td><td>2.70×10-1</td><td>1.25×10-1</td><td>9.25×10-2</td></tr><tr><td>sQ</td><td>3.42 ×104</td><td>2.13×104</td><td>3.24×10-1</td><td>2.10×10-1</td><td>1.25 × 10-1</td><td>9.10 ×10-2</td></tr><tr><td>LSQ</td><td>2.90 ×104</td><td>1.12 × 104</td><td>3.04× 10-1</td><td>1.99 ×10-1</td><td>1.21 ×10-1</td><td>8.57×10-2</td></tr><tr><td>DPQ</td><td>4.01×104</td><td>2.48×104</td><td>4.58×10-1</td><td>3.54×10-1</td><td>1.77 × 10-1</td><td>1.60×10-1</td></tr><tr><td>DPgQ</td><td>3.30×104</td><td>2.10×104</td><td>3.29 ×10-1</td><td>2.12 ×10-1</td><td>1.31 × 10-1</td><td>8.74×10-2</td></tr><tr><td>DRQ</td><td>4.75×104</td><td>2.88×104</td><td>3.52 ×10-1</td><td>2.54×10-1</td><td>1.61 × 10-1</td><td>1.01 × 10-1</td></tr><tr><td>UNQ</td><td>4.14×104</td><td>2.33×104</td><td>3.52 ×10-1</td><td>2.39 ×10-1</td><td>1.48 ×10-1</td><td>1.08×10-1</td></tr><tr><td>Ours</td><td>2.92×104</td><td>1.91 × 104</td><td>2.92×10-1</td><td>1.93×10-1</td><td>1.02×10-1</td><td>6.72×10-2</td></tr></table>
|
| 402 |
+
|
| 403 |
+
316 Ours get the 2nd place on SIFT1M, and the lowest on remaining datasets in most cases. Quantization
|
| 404 |
+
317 error indicates reconstruction accuracy and further shows the quality of codebook generation and
|
| 405 |
+
318 quantization codes selection. Notably, ours significantly outperforms UNQ, which has a strong bias
|
| 406 |
+
319 on the reconstruction task. This is because they focus more on ranking, not the quantization error.
|
| 407 |
+
320 The result shows that our method can be applied to other areas, e.g. vector compression.
|
| 408 |
+
|
| 409 |
+
# 5.4 Ablation study
|
| 410 |
+
|
| 411 |
+
Our ablation study is conducted on the SIFT1M dataset, with the code-length of 32 bits, which in our experiments is sufficient to show how does each component affects our model. We choose the following variants to perform ablation:
|
| 412 |
+
|
| 413 |
+
w/o regularization: which removes $e _ { \theta }$ in the losses, and the output distributions will not be forced to be uniform.
|
| 414 |
+
|
| 415 |
+
w/o return-norm: which does not normalize $R$ , and therefor advantage is computed by $R$ other than $\bar { R }$ .
|
| 416 |
+
|
| 417 |
+
<table><tr><td rowspan="2">Method</td><td colspan="4">SIFT1M@32 bits</td></tr><tr><td>QE</td><td>R@1</td><td>R@10</td><td>R@100</td></tr><tr><td>w/o regularization</td><td>3.38×104</td><td>7.60</td><td>29.96</td><td>68.73</td></tr><tr><td>w/o return-norm</td><td>3.06×104</td><td>10.57</td><td>36.44</td><td>76.04</td></tr><tr><td>w/o correction</td><td>3.10×104</td><td>10.09</td><td>35.30</td><td>75.16</td></tr><tr><td>w/o refinement</td><td>3.17 ×104</td><td>9.91</td><td>30.39</td><td>68.28</td></tr><tr><td>DeepQ</td><td>2.92×104</td><td>11.02</td><td>37.73</td><td>76.79</td></tr></table>
|
| 418 |
+
|
| 419 |
+
w/o correction: which removes value correction. So our VC-PPO falls back to the original PPO.
|
| 420 |
+
|
| 421 |
+
Table 4: Ablation study conducted on SIFT1M with 32 bits code-length. Entropy regularization forces network to try more codeword combinations, which help to jump out of local-optima. Return normalization and value correction help for fast convergence. The extra refinement leads to low quantization error and high recall with negligible costs.
|
| 422 |
+
|
| 423 |
+
w/o refinement: which directly encode the base set without extra refinement.
|
| 424 |
+
|
| 425 |
+
Quantization error and recall are evaluated and placed in Table 4. We report the best value they ever met during the training procedure. Specifically, when regularization is removed, it seems that the network is trapped in local-optima and the performance drops. Meanwhile, although return normalization and value correction give us only subtle improvements, we find they help the network to converge quickly. The extra refinement gives us lower quantization error and higher recall, specially when we want to perform fast training before the network is converged.
|
| 426 |
+
|
| 427 |
+
# 43 6 Conclusion and Future Work
|
| 428 |
+
|
| 429 |
+
In this paper, we first review previous works of constrained MCQs, and investigate solutions to unconstrained ones. Since finding the global-optima of MCQ is NP-hard, researchers apply constraints to find near-optimal solutions or employ heuristic algorithms that are still time-consuming. This paper takes the first attempt to find a deep solution to MCQ. The proposed IndepNet is designed to be simple enough to encode vectors extremely fast. Furthermore, our network shows state-of-the-art performance in retrieval and reconstruction tasks. Our method is slow to converge in a large dataset, which hinders our performance. So, our future work will focus on training speedup.
|
| 430 |
+
|
| 431 |
+
# 351 References
|
| 432 |
+
|
| 433 |
+
353 Demmel, J., Bischof, C. H., and Sorensen, D. C. (1990). LAPACK: a portable linear algebra library for
|
| 434 |
+
354 high-performance computers. In SC, pages 2–11.
|
| 435 |
+
355 [2] Babenko, A. and Lempitsky, V. (2014). Additive quantization for extreme vector compression. In CVPR,
|
| 436 |
+
356 pages 931–938.
|
| 437 |
+
357 [3] Babenko, A. and Lempitsky, V. (2015). Tree quantization for large-scale similarity search and classification.
|
| 438 |
+
358 In CVPR, pages 4240–4248.
|
| 439 |
+
359 [4] Chen, Y., Guan, T., and Wang, C. (2010). Approximate nearest neighbor search by residual vector
|
| 440 |
+
360 quantization. Sensors, 10(12):11259–11273.
|
| 441 |
+
361 [5] Gao, L., Zhu, X., Song, J., Zhao, Z., and Shen, H. T. (2019). Beyond product quantization: Deep progressive
|
| 442 |
+
362 quantization for image retrieval. In IJCAI, pages 723–729.
|
| 443 |
+
363 [6] Ge, T., He, K., Ke, Q., and Sun, J. (2013). Optimized product quantization for approximate nearest neighbor
|
| 444 |
+
364 search. In CVPR, pages 2946–2953.
|
| 445 |
+
365 [7] Gray, R. (1984). Vector quantization. IEEE Assp Magazine, 1(2):4–29.
|
| 446 |
+
366 [8] Ilyas, A., Engstrom, L., Santurkar, S., Tsipras, D., Janoos, F., Rudolph, L., and Madry, A. (2020). A closer
|
| 447 |
+
367 look at deep policy gradients. In ICLR.
|
| 448 |
+
368 [9] Jégou, H., Douze, M., and Schmid, C. (2010). Product quantization for nearest neighbor search. IEEE Trans.
|
| 449 |
+
369 Pattern Anal. Mach. Intell., 33(1):117–128.
|
| 450 |
+
370 [10] Kalantidis, Y. and Avrithis, Y. (2014). Locally optimized product quantization for approximate nearest
|
| 451 |
+
371 neighbor search. In CVPR, pages 2329–2336.
|
| 452 |
+
372 [11] Klein, B. and Wolf, L. (2019). End-to-end supervised product quantization for image search and retrieval.
|
| 453 |
+
373 In CVPR, pages 5041–5050.
|
| 454 |
+
374 [12] Konda, V. R. and Tsitsiklis, J. N. (2000). Actor-critic algorithms. In NeurIPS, pages 1008–1014.
|
| 455 |
+
375 [13] Lloyd, S. (1982). Least squares quantization in pcm. IEEE transactions on information theory, 28(2):129–
|
| 456 |
+
376 137.
|
| 457 |
+
377 [14] Martinez, J., Clement, J., Hoos, H. H., and Little, J. J. (2016). Revisiting additive quantization. In ECCV,
|
| 458 |
+
378 pages 137–153. Springer.
|
| 459 |
+
379 [15] Martinez, J., Hoos, H. H., and Little, J. J. (2014). Stacked quantizers for compositional vector compression.
|
| 460 |
+
380 arXiv preprint arXiv:1411.2173.
|
| 461 |
+
381 [16] Martinez, J., Zakhmi, S., Hoos, H. H., and Little, J. J. (2018). Lsq $^ { + + }$ : Lower running time and higher
|
| 462 |
+
382 recall in multi-codebook quantization. In ECCV, pages 491–506.
|
| 463 |
+
383 [17] Mohamed, S., Rosca, M., Figurnov, M., and Mnih, A. (2020). Monte carlo gradient estimation in machine
|
| 464 |
+
384 learning. J. Mach. Learn. Res., 21:132:1–132:62.
|
| 465 |
+
385 [18] Morozov, S. and Babenko, A. (2019). Unsupervised neural quantization for compressed-domain similarity
|
| 466 |
+
386 search. In ICCV, pages 3036–3045.
|
| 467 |
+
387 [19] Norouzi, M. and Fleet, D. J. (2013). Cartesian k-means. In CVPR, pages 3017–3024.
|
| 468 |
+
388 [20] Radenovic, F., Iscen, A., Tolias, G., Avrithis, Y., and Chum, O. (2018). Revisiting oxford and paris:
|
| 469 |
+
389 Large-scale image retrieval benchmarking. In CVPR, pages 5706–5715.
|
| 470 |
+
390 [21] Reddi, S. J., Kale, S., and Kumar, S. (2018). On the convergence of adam and beyond. In ICLR.
|
| 471 |
+
391 [22] Sablayrolles, A., Douze, M., Schmid, C., and Jégou, H. (2019). Spreading vectors for similarity search. In
|
| 472 |
+
392 ICLR.
|
| 473 |
+
393 [23] Schulman, J., Heess, N., Weber, T., and Abbeel, P. (2015a). Gradient estimation using stochastic computa
|
| 474 |
+
394 tion graphs. In NeurIPS, pages 3528–3536.
|
| 475 |
+
395 [24] Schulman, J., Levine, S., Abbeel, P., Jordan, M. I., and Moritz, P. (2015b). Trust region policy optimization.
|
| 476 |
+
396 In ICML, pages 1889–1897.
|
| 477 |
+
397 [25] Schulman, J., Moritz, P., Levine, S., Jordan, M. I., and Abbeel, P. (2016). High-dimensional continuous
|
| 478 |
+
398 control using generalized advantage estimation. In ICLR.
|
| 479 |
+
399 [26] Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal policy optimization
|
| 480 |
+
400 algorithms. arXiv preprint arXiv:1707.06347.
|
| 481 |
+
401 [27] Song, J., Lang, R., Zhu, X., Xu, X., Gao, L., and Shen, H. T. (2020). 3d self-attention for unsupervised
|
| 482 |
+
402 video quantization. In ACM SIGIR, pages 1061–1070.
|
| 483 |
+
403 [28] Song, J., Zhu, X., Gao, L., Xu, X.-S., Liu, W., and Shen, H. T. (2019). Deep recurrent quantization for
|
| 484 |
+
404 generating sequential binary codes. In IJCAI, pages 912–918.
|
| 485 |
+
405 [29] Torralba, A., Fergus, R., and Weiss, Y. (2008). Small codes and large image databases for recognition. In
|
| 486 |
+
406 CVPR, pages 1–8. IEEE.
|
| 487 |
+
407 [30] Wang, J., Wang, J., Song, J., Xu, X., Shen, H. T., and Li, S. (2015). Optimized cartesian k-means. IEEE
|
| 488 |
+
408 Transactions on Knowledge and Data Engineering, 27(1):180–192.
|
| 489 |
+
409 [31] Weyand, T., Araujo, A., Cao, B., and Sim, J. (2020). Google landmarks dataset v2 - A large-scale
|
| 490 |
+
410 benchmark for instance-level recognition and retrieval. In CVPR, pages 2572–2581.
|
| 491 |
+
411 [32] Williams, R. J. (1992). Simple statistical gradient-following algorithms for connectionist reinforcement
|
| 492 |
+
412 learning. Machine learning, 8(3-4):229–256.
|
| 493 |
+
413 [33] Yu, T., Yuan, J., Fang, C., and Jin, H. (2018). Product quantization network for fast image retrieval. In
|
| 494 |
+
414 ECCV, pages 186–201.
|
| 495 |
+
415 [34] Zhang, T., Du, C., and Wang, J. (2014). Composite quantization for approximate nearest neighbor search.
|
| 496 |
+
416 In ICML, volume 2, page 3.
|
| 497 |
+
|
| 498 |
+
# 417 Checklist
|
| 499 |
+
|
| 500 |
+
418 The checklist follows the references. Please read the checklist guidelines carefully for information on
|
| 501 |
+
419 how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or
|
| 502 |
+
420 [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing
|
| 503 |
+
421 the appropriate section of your paper or providing a brief inline description. For example:
|
| 504 |
+
|
| 505 |
+
• Did you include the license to the code and datasets? [Yes] See Section ??. • Did you include the license to the code and datasets? [No] The code and the data are proprietary. • Did you include the license to the code and datasets? [N/A]
|
| 506 |
+
|
| 507 |
+
425 Please do not modify the questions and only use the provided macros for your answers. Note that the
|
| 508 |
+
426 Checklist section does not count towards the page limit. In your paper, please delete this instructions
|
| 509 |
+
427 block and only keep the Checklist section heading above along with the questions/answers below.
|
| 510 |
+
|
| 511 |
+
1. For all authors...
|
| 512 |
+
|
| 513 |
+
(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
|
| 514 |
+
(b) Did you describe the limitations of your work? [Yes] See Section 6.
|
| 515 |
+
(c) Did you discuss any potential negative societal impacts of your work? [N/A]
|
| 516 |
+
(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
|
| 517 |
+
|
| 518 |
+
2. If you are including theoretical results...
|
| 519 |
+
|
| 520 |
+
(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]
|
| 521 |
+
|
| 522 |
+
3. If you ran experiments...
|
| 523 |
+
|
| 524 |
+
(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] See https://github.com/ DeepMCQ/DeepQ.
|
| 525 |
+
(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 5 and supplementary materials.
|
| 526 |
+
(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No]
|
| 527 |
+
(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 5.
|
| 528 |
+
|
| 529 |
+
48 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
|
| 530 |
+
|
| 531 |
+
(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 5.
|
| 532 |
+
(b) Did you mention the license of the assets? [N/A]
|
| 533 |
+
(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] See https://github.com/DeepMCQ/DeepQ.
|
| 534 |
+
(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
|
| 535 |
+
|
| 536 |
+
(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
|
| 537 |
+
|
| 538 |
+
5. If you used crowdsourcing or conducted research with human subjects...
|
| 539 |
+
|
| 540 |
+
(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
|
| 541 |
+
(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
|
| 542 |
+
(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
|
parse/train/8jFiomKUnaT/8jFiomKUnaT_content_list.json
ADDED
|
@@ -0,0 +1,1587 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Revisiting Multi-Codebook Quantization ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
250,
|
| 8 |
+
122,
|
| 9 |
+
748,
|
| 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 Multi-Codebook Quantization (MCQ) is a generalized version of existing codebook \n2 based quantizations for Approximate Nearest Neighbor (ANN) search. Therefore, \n3 MCQ theoretically has the potential to achieve the best performance because so \n4 lutions of other codebook-based quantization methods are all covered by MCQ’s \n5 solution space under the same codebook size setting. However, finding the opti \n6 mal solution to MCQ is proved to be NP-hard due to its encoding process, i.e., \n7 converting an input vector to a binary code. To tackle this, researchers apply \n8 constraints to it to find near-optimal solutions, or employ heuristic algorithms \n9 which are still time-consuming for encoding. Different from previous approaches, \n10 this paper takes the first attempt to find a deep solution to MCQ. The encoding \n11 network is designed to be as simple as possible, so the very complex encoding \n12 problem becomes simply a feed-forward. Compared with other methods on three \n13 datasets, our method shows state-of-the-art performance. Notably, our method \n14 is $1 1 \\times - 3 8 \\times$ faster than heuristic algorithms for encoding, which makes it more \n15 practical for real scenery of large-scale retrieval. Our code is publicly available: \n16 https://github.com/DeepMCQ/DeepQ. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
148,
|
| 42 |
+
324,
|
| 43 |
+
766,
|
| 44 |
+
545
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "17 1 Introduction ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
148,
|
| 54 |
+
571,
|
| 55 |
+
312,
|
| 56 |
+
589
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "18 Rapidly increasing multimedia contents in recent years raise an urgent request for retrieval in a \n19 short time. Unlike the exhaustive routine [31, 20], Approximate Nearest Neighbor (ANN) search \n20 significantly reduces retrieval time while preserving high recall. It has been widely applied to various \n21 scenarios, such as database indexing, fast image retrieval, and recommender systems. \n22 As a typical approach, vector quantization (VQ) [7] is at first developed as a compression technique, \n23 which uses a codebook to approximate vectors. People further find the power of VQ to preserve \n24 similarities between quantized features and enable VQ to perform ANN search. In order to achieve \n25 low quantization errors with limited codebook size, a multi-codebook structure is introduced. The \n26 proposal of the Multi-Codebook Quantization (MCQ) [2] describes the approach as a combination \n27 of one codeword for each sub-codebook, and previous methods [9, 6, 19, 30, 10, 3] are summarized \n28 as exceptional cases of MCQ or constrained MCQs. The quantization codes are designed to be \n29 compacted, which results in negligible storage cost and high-quality results. \n30 However, the optimization of MCQ without any constraints is formally NP-hard. [14] models \n31 it as the minimization on several fully-connected Markov Random Fields (MRFs). As a result, \n32 current researches aim at solving MCQ under acceptable computational costs. Other than applying \n33 constraints on it [34, 4, 15], another approach designs algorithms in a heuristic way [2, 14, 16]. The \n34 latter achieves better performance but suffers from slow encoding. \n35 There are chances to employ neural networks’ power to solve MCQ, where people expect to obtain \n36 higher performance and encoding efficiency than previous methods. [11, 5, 28, 33, 27] already give \n37 the way to treat codebook as network parameter and update it by gradient-descent, but they are \n38 all still under constraints that hinder performance. Morozov and Babenko [18] and Sablayrolles et \n39 al. [22] map datapoints to learned space, which are not flexible, especially when performing the \n40 reconstruction. Therefore in this paper, we give our first attempt to solve MCQ in a deep learning \n41 approach, without constraints and work-arounds. Our contributions can be summarized as three-folds: \n42 • Our novel approach, Deep Multi-Codebook Quantization (DeepQ), fully considers encoding \n43 difficulty and time complexity in MCQ. With the high efficient and parallelized encoding networks, \n44 our method significantly reduces encoding time. \n45 To tackle the NP-hard encoding problem and non-differentiable gradient estimation, we employ and \n46 further revise a policy gradient method. Value-Corrected Proximal Policy Optimization (VC-PPO) \n47 is proposed to speed up convergence in the training phase. \n48 Experiments conducted on a benchmark dataset validate our proposed method. Furthermore, to \n49 evaluate the scalability of the method, it is tested on million-scale datasets to show the effectiveness \n50 of our proposed algorithm. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
147,
|
| 65 |
+
603,
|
| 66 |
+
823,
|
| 67 |
+
659
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "",
|
| 74 |
+
"bbox": [
|
| 75 |
+
145,
|
| 76 |
+
665,
|
| 77 |
+
825,
|
| 78 |
+
776
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "",
|
| 85 |
+
"bbox": [
|
| 86 |
+
147,
|
| 87 |
+
782,
|
| 88 |
+
825,
|
| 89 |
+
852
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
148,
|
| 98 |
+
858,
|
| 99 |
+
823,
|
| 100 |
+
900
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
147,
|
| 109 |
+
90,
|
| 110 |
+
826,
|
| 111 |
+
147
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "",
|
| 118 |
+
"bbox": [
|
| 119 |
+
147,
|
| 120 |
+
152,
|
| 121 |
+
826,
|
| 122 |
+
287
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "51 2 Related Works ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
147,
|
| 132 |
+
306,
|
| 133 |
+
330,
|
| 134 |
+
324
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "52 Vector quantization is a routine to approximate vectors by a codebook. Typical applications include \n53 clustering, compression, and Approximate Nearest Neighbor (ANN) search. The famous proposal \n54 $k$ -means [7], also known as Lloyd’s algorithm [13], clusters the dataset into uniformly sized convex \n55 cells. When it is applied to ANN search, datapoints from the base set are quantized into their \n56 nearest centriods and represented by indices. The distance from a given query to any datapoint \n57 is approximated by the distance from the query to the datapoint’s centriod, which is effectively \n58 pre-computed and stored in a lookup table. To perform fine-grained clustering as well as reducing the \n59 space and time complexity, they [9, 6, 19, 10, 30] divide the feature space orthogonally by performing \n60 $k$ -means in each subspace concurrently. Meanwhile, the introduced sub-codebook structure reveals \n61 the prototype of MCQ. Formally, [2] gives a well definition of MCQ, and previous works are all \n62 summarized into constrained MCQs. Specifically, subspace $k$ -means must keep orthogonality among \n63 sub-codebooks. Zhang et al. [34] loosens the orthogonality constraint, but sub-codebooks are still \n64 weakly-orthogonal. Chen et al. [4] and Martinez et al. [15] propose hierarchical $k$ -means, where \n65 vectors are quantized coarse-to-fine. If constraints are moved, MCQ is not easy to solve. Current \n66 state-of-the-art methods develop heuristic algorithms to help to encode. Specifically, Babenko and \n67 Lempitsky [2] employs beam search, Martinez et al. [14, 16] give algorithm based on Iterated \n68 Conditional Modes (ICM). However, the above methods do not achieve satisfied time complexity in \n69 encoding yet. \n70 When neural networks and gradient descent become a fashion, a few attempts to integrate quantization \n71 into deep retrieval networks are proposed. Klein and Wolf [11] and Song et al. [5] propose Deep \n72 Product Quantization (DPQ) and Deep Progressive Quantization $\\mathrm { ( D P g Q ) }$ which update codebook by \n73 soft relaxation, but they are still under the same constraints as [9, 15]. Sablayrolles et al. [22] and \n74 Morozov and Babenko [18] give pipelines to encode compact representations for compressed-domain \n75 search, but they do not strictly follow the paradigm of MCQ. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
145,
|
| 143 |
+
337,
|
| 144 |
+
825,
|
| 145 |
+
587
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "",
|
| 152 |
+
"bbox": [
|
| 153 |
+
147,
|
| 154 |
+
593,
|
| 155 |
+
825,
|
| 156 |
+
676
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "76 3 Preliminaries ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
148,
|
| 166 |
+
695,
|
| 167 |
+
318,
|
| 168 |
+
713
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "77 Given a vector $\\pmb { x } \\in \\mathbb { R } ^ { D }$ , its quantized vector $\\tilde { \\pmb { x } }$ are composed by several codewords in a codebook \n78 $C$ . More Specifically, $C = ( \\bar { C } _ { m } )$ , $C _ { m } \\in \\mathbb { R } ^ { K \\times D }$ , $1 \\leq m \\leq M$ contains $M$ sub-codebooks and $K$ \n79 codewords for each. Quantization codes are formed by $\\pmb { b } = ( \\pmb { b } _ { m } )$ , $\\pmb { b _ { m } } \\in \\{ 1 , 2 , \\cdots , K \\}$ , $1 \\leq m \\leq$ \n80 $M$ , which indicates the picked codeword in each sub-codebook. For the whole training set $X = \\{ x \\}$ \n81 with $N$ datapoints, MCQ aims at finding the optimal quantization codes ${ \\boldsymbol { B } } = \\{ { \\boldsymbol { b } } \\}$ and codebook $C$ \n82 to minimize following objective: ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
147,
|
| 177 |
+
726,
|
| 178 |
+
825,
|
| 179 |
+
810
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "equation",
|
| 185 |
+
"img_path": "images/49b04dc37c65702fbf56ecf6dd2ea3e2f241ff72ba65a7feeecdf14f6d3261e8.jpg",
|
| 186 |
+
"text": "$$\n\\underset { C , B } { \\operatorname* { m i n } } \\ \\underset { { \\bf { x } } \\in { \\cal { X } } } { \\mathbb { E } } \\operatorname { Q } \\left( { \\bf { x } } , { \\bf { b } } , C \\right) = \\underset { C , B } { \\operatorname* { m i n } } \\ \\underset { { \\bf { x } } \\in { \\cal { X } } } { \\mathbb { E } } \\left\\| { \\bf { x } } - \\sum _ { m = 1 } ^ { M } C _ { m b _ { m } } \\right\\| _ { 2 }\n$$",
|
| 187 |
+
"text_format": "latex",
|
| 188 |
+
"bbox": [
|
| 189 |
+
323,
|
| 190 |
+
816,
|
| 191 |
+
674,
|
| 192 |
+
861
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "83 where $C _ { m { \\pmb b } _ { m } } \\in \\mathbb { R } ^ { D }$ is the $b _ { m }$ -th codeword of the $m$ -th sub-codebook. The sum of picked codewords \n84 $\\sum C _ { m { \\pmb b } _ { m } }$ tries to approximate $_ { \\textbf { \\em x } }$ . $C$ and $^ { b }$ are stored for further retrieval. Some of the previously \n85 mentioned methods [9, 6, 4, 15, 34] are treated as constrained MCQs, as they are all represented \n86 as special cases of (1). Specifically, when $M = 1$ , (1) becomes VQ. Or if any two sub-codebooks \n87 $C _ { i } , C _ { j }$ are orthogonal, it will be PQ or OPQ. \n88 The optimization of (1) without any constraints is proved to be NP-hard [14]. To tackle this, we \n89 propose a Expectation-Maximization style solution. Following sections will explain the deep neural \n90 network for encoding $^ { b }$ (Section 4.1), the way to solve $C$ (Section 4.2), and how to conduct retrieval \n91 (Section 4.3), respectively. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
147,
|
| 201 |
+
868,
|
| 202 |
+
825,
|
| 203 |
+
912
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "",
|
| 210 |
+
"bbox": [
|
| 211 |
+
151,
|
| 212 |
+
90,
|
| 213 |
+
825,
|
| 214 |
+
119
|
| 215 |
+
],
|
| 216 |
+
"page_idx": 2
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"type": "text",
|
| 220 |
+
"text": "",
|
| 221 |
+
"bbox": [
|
| 222 |
+
145,
|
| 223 |
+
126,
|
| 224 |
+
825,
|
| 225 |
+
181
|
| 226 |
+
],
|
| 227 |
+
"page_idx": 2
|
| 228 |
+
},
|
| 229 |
+
{
|
| 230 |
+
"type": "text",
|
| 231 |
+
"text": "92 4 Methodology ",
|
| 232 |
+
"text_level": 1,
|
| 233 |
+
"bbox": [
|
| 234 |
+
153,
|
| 235 |
+
200,
|
| 236 |
+
313,
|
| 237 |
+
218
|
| 238 |
+
],
|
| 239 |
+
"page_idx": 2
|
| 240 |
+
},
|
| 241 |
+
{
|
| 242 |
+
"type": "text",
|
| 243 |
+
"text": "93 4.1 Expectation: Encoding $\\textbf { { B } }$ with neural networks ",
|
| 244 |
+
"text_level": 1,
|
| 245 |
+
"bbox": [
|
| 246 |
+
148,
|
| 247 |
+
232,
|
| 248 |
+
545,
|
| 249 |
+
247
|
| 250 |
+
],
|
| 251 |
+
"page_idx": 2
|
| 252 |
+
},
|
| 253 |
+
{
|
| 254 |
+
"type": "text",
|
| 255 |
+
"text": "94 Our first step, is to find a potential code $^ { b }$ by given $_ { \\textbf { \\em x } }$ and \n95 a fixed $C$ . A policy $\\pi$ parameterized by $\\theta$ is employed to \n96 take possible solution of $^ { b }$ by feeding $_ { \\textbf { \\em x } }$ : ",
|
| 256 |
+
"bbox": [
|
| 257 |
+
147,
|
| 258 |
+
257,
|
| 259 |
+
549,
|
| 260 |
+
300
|
| 261 |
+
],
|
| 262 |
+
"page_idx": 2
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"type": "equation",
|
| 266 |
+
"img_path": "images/6aa15a957df05570571a28a7a91f94cdbb003ce8a6c642d180e814dbce6a717b.jpg",
|
| 267 |
+
"text": "$$\n\\pi = \\left( \\pi _ { m } \\right) = \\pi \\left( \\pmb { x } \\mid \\theta _ { m } \\right) , 1 \\leq m \\leq M .\n$$",
|
| 268 |
+
"text_format": "latex",
|
| 269 |
+
"bbox": [
|
| 270 |
+
230,
|
| 271 |
+
306,
|
| 272 |
+
493,
|
| 273 |
+
324
|
| 274 |
+
],
|
| 275 |
+
"page_idx": 2
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"type": "text",
|
| 279 |
+
"text": "97 More specifically, $\\pi$ produces $M$ Categorical distribu \n98 tions Categorical $( K , \\pmb { p } _ { m 1 } , \\cdots , \\pmb { p } _ { m K } )$ , where $\\pmb { p } _ { m j }$ is \n99 the probability to pick the $j$ -th codeword in the $m$ -th \n100 sub-codebook. A potential encoding $\\boldsymbol { b } _ { m }$ is generated by \n101 drawing samples from $\\pi _ { m }$ , which then helps us to pick \n102 codeword $C _ { m b _ { m } }$ . Therefore: ",
|
| 280 |
+
"bbox": [
|
| 281 |
+
143,
|
| 282 |
+
330,
|
| 283 |
+
550,
|
| 284 |
+
415
|
| 285 |
+
],
|
| 286 |
+
"page_idx": 2
|
| 287 |
+
},
|
| 288 |
+
{
|
| 289 |
+
"type": "equation",
|
| 290 |
+
"img_path": "images/3c459d93988ed32b76be0d5e7b9e438df9eb14e580e420fbb6a715e8eb4ad0d5.jpg",
|
| 291 |
+
"text": "$$\n\\pmb { b _ { m } } \\sim \\pi _ { m } \\left( \\pmb { x } \\mid \\theta _ { m } \\right) = \\operatorname { C a t e g o r i c a l } ( K , \\pmb { p _ { m } } ) .\n$$",
|
| 292 |
+
"text_format": "latex",
|
| 293 |
+
"bbox": [
|
| 294 |
+
214,
|
| 295 |
+
420,
|
| 296 |
+
508,
|
| 297 |
+
439
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 2
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "103 Since the independence among different sub-codebooks \n104 is a prerequisite of MCQ, $\\boldsymbol { b } _ { m }$ should be drawn from $\\pi _ { m }$ \n105 independently. Intuitively, the probability of $^ { b }$ to be a \n106 specific ${ \\pmb { b } } ^ { \\star }$ is derived by conditional independence: ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
140,
|
| 306 |
+
452,
|
| 307 |
+
547,
|
| 308 |
+
508
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 2
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "equation",
|
| 314 |
+
"img_path": "images/a62b960589644e691d94f19299f13f2a5c21ce1e0c75dd15d239fedbc74ad5c1.jpg",
|
| 315 |
+
"text": "$$\n\\operatorname* { P r } \\left( \\boldsymbol { b } = \\boldsymbol { b } ^ { \\star } \\right) = \\prod _ { m = 1 } ^ { M } \\operatorname* { P r } \\left( \\boldsymbol { b } _ { m } = \\boldsymbol { b } _ { m } ^ { \\star } \\right) = \\prod _ { m = 1 } ^ { M } p _ { m \\boldsymbol { b } _ { m } ^ { \\star } } .\n$$",
|
| 316 |
+
"text_format": "latex",
|
| 317 |
+
"bbox": [
|
| 318 |
+
191,
|
| 319 |
+
513,
|
| 320 |
+
511,
|
| 321 |
+
559
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "107 We adopt the power of neural networks to model \n108 $\\pi _ { m }$ . Specifically, $\\theta _ { m }$ produces $K$ unnormalized log \n109 probabilities $\\ell _ { m }$ and $\\pmb { p } _ { m j }$ is obtained by Softmax. To \n110 keep the independence, $\\dot { \\theta _ { m } }$ will not share parameters with \n111 each other. \n112 Therefore, $\\theta$ , or our proposed IndepNet is illustrated in \n113 Figure 1. We first build a basic structure called IndepBlock and duplicate this block for $M$ times as \n114 $\\theta _ { 1 } , \\theta _ { 2 } , \\cdots , \\theta _ { M }$ . We try to keep the basic structure really simple to achieve high efficiency during \n115 training and encoding. As the figure shows, IndepBlock is an hourglass network contains 6 layer \n116 groups (consists of a linear layer with ReLU activation and layer-normalization) with skip-connections. \n117 The last three outputs are concatenated and further fed into a final linear layer with $K$ outputs as \n118 $\\ell _ { m } = ( \\ell _ { m 1 } , \\cdot \\cdot \\cdot , \\bar { \\ell } _ { m K } )$ , and therefore: ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
140,
|
| 330 |
+
570,
|
| 331 |
+
550,
|
| 332 |
+
640
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 2
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "image",
|
| 338 |
+
"img_path": "images/b6f11e48f5dde3ac69f93081e039972bb0654b233b1a3a45b23d641592ccfc34.jpg",
|
| 339 |
+
"image_caption": [
|
| 340 |
+
"Figure 1: Our proposed IndepNet for producing probabilities of choosing each codeword. IndepBlock is duplicated for $M$ times without shared parameters, in order to keep independence between different IndepBlocks. Categorical distribution is built upon output from the IndepBlock. Then, quantization code $b _ { m }$ associated with sub-codebook $C _ { m }$ is sampled from distribution. "
|
| 341 |
+
],
|
| 342 |
+
"image_footnote": [],
|
| 343 |
+
"bbox": [
|
| 344 |
+
562,
|
| 345 |
+
215,
|
| 346 |
+
823,
|
| 347 |
+
479
|
| 348 |
+
],
|
| 349 |
+
"page_idx": 2
|
| 350 |
+
},
|
| 351 |
+
{
|
| 352 |
+
"type": "text",
|
| 353 |
+
"text": "",
|
| 354 |
+
"bbox": [
|
| 355 |
+
140,
|
| 356 |
+
646,
|
| 357 |
+
826,
|
| 358 |
+
744
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "equation",
|
| 364 |
+
"img_path": "images/961efebbfae0b006f8d58171160a962b71c54f713c0e10166c09a413d72841ab.jpg",
|
| 365 |
+
"text": "$$\n\\pmb { p } _ { m j } = \\mathrm { S o f t m a x } \\left( \\pmb { \\ell } _ { m } \\right) _ { j } , \\ w h e r e \\ \\pmb { \\ell } _ { m } = \\theta _ { m } \\left( \\pmb { x } \\right) .\n$$",
|
| 366 |
+
"text_format": "latex",
|
| 367 |
+
"bbox": [
|
| 368 |
+
343,
|
| 369 |
+
751,
|
| 370 |
+
653,
|
| 371 |
+
770
|
| 372 |
+
],
|
| 373 |
+
"page_idx": 2
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"type": "text",
|
| 377 |
+
"text": "119 4.1.1 Gradient estimation ",
|
| 378 |
+
"text_level": 1,
|
| 379 |
+
"bbox": [
|
| 380 |
+
143,
|
| 381 |
+
784,
|
| 382 |
+
366,
|
| 383 |
+
799
|
| 384 |
+
],
|
| 385 |
+
"page_idx": 2
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"type": "text",
|
| 389 |
+
"text": "120 The objective of training $\\theta$ is formed as: ",
|
| 390 |
+
"bbox": [
|
| 391 |
+
143,
|
| 392 |
+
806,
|
| 393 |
+
437,
|
| 394 |
+
821
|
| 395 |
+
],
|
| 396 |
+
"page_idx": 2
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"type": "equation",
|
| 400 |
+
"img_path": "images/c7d9cc96b99782d4d6763024734cab95a67f875e991af32a6310bc0e4d6e4cfb.jpg",
|
| 401 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\pmb { \\pi } } \\operatorname* { \\mathbb { E } } _ { \\pmb { x } \\in \\pmb { X } } \\mathrm { Q } \\left( \\pmb { x } , \\pmb { b } , \\pmb { C } \\right) .\n$$",
|
| 402 |
+
"text_format": "latex",
|
| 403 |
+
"bbox": [
|
| 404 |
+
411,
|
| 405 |
+
828,
|
| 406 |
+
584,
|
| 407 |
+
862
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 2
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "121 However, the optimization faces two problems: 1) The encoding of $^ { b }$ involves sampling from discrete \n122 distributions, which is non-differentiable, 2) All possible encoding of $^ { b }$ is $\\mathcal { O } \\left( \\overset { \\bullet } { K } { } ^ { M } \\right)$ . Exhaustive \n123 search becomes impracticable. \n124 Therefore, gradient estimation over discrete, stochastic computation graph is required to train $\\theta$ . \n125 Mainstream methods [23, 32, 17] include score function gradient estimator, pathwise gradient \n126 estimator, etc. Meanwhile, minimizing (6) is also faced with the high-variance problem during \n127 gradient estimation. To tackle this, the advantage function is introduced [12, 25]. Specifically in \n128 our work, a value network called QENet parameterized by $\\tau$ is proposed to model a value function \n129 $v = \\mathrm { V } \\left( \\cdot \\mid \\tau \\right)$ . It performs a regression task to minimize the following objectives: ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
142,
|
| 416 |
+
868,
|
| 417 |
+
825,
|
| 418 |
+
911
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 2
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "",
|
| 425 |
+
"bbox": [
|
| 426 |
+
140,
|
| 427 |
+
90,
|
| 428 |
+
826,
|
| 429 |
+
175
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 3
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "equation",
|
| 435 |
+
"img_path": "images/61a7b474f4aa3bbb9029fcf6b97a53dc5c978349829fffde7631e49d407d0889.jpg",
|
| 436 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\tau } \\underset { \\pmb { x } \\in \\pmb { X } } { \\mathbb { E } } \\| \\mathrm { Q } \\left( \\pmb { x } , \\pmb { b } , \\pmb { C } \\right) - \\mathrm { V } \\left( \\pmb { x } , \\pmb { b } , \\pmb { C } \\mid \\tau \\right) \\| _ { 2 } .\n$$",
|
| 437 |
+
"text_format": "latex",
|
| 438 |
+
"bbox": [
|
| 439 |
+
339,
|
| 440 |
+
181,
|
| 441 |
+
656,
|
| 442 |
+
215
|
| 443 |
+
],
|
| 444 |
+
"page_idx": 3
|
| 445 |
+
},
|
| 446 |
+
{
|
| 447 |
+
"type": "text",
|
| 448 |
+
"text": "Advantages 130 $\\hat { A }$ is then estimated by ",
|
| 449 |
+
"bbox": [
|
| 450 |
+
142,
|
| 451 |
+
231,
|
| 452 |
+
403,
|
| 453 |
+
247
|
| 454 |
+
],
|
| 455 |
+
"page_idx": 3
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"type": "equation",
|
| 459 |
+
"img_path": "images/de141b5cf1a36fc877726b5931dccd18fcbd9a7f893c1f51b055a87c1f45a7ec.jpg",
|
| 460 |
+
"text": "$$\n\\hat { A } = \\operatorname { Q } \\left( \\mathbf { { x } } , \\boldsymbol { b } , \\boldsymbol { C } \\right) - \\operatorname { V } \\left( \\mathbf { { x } } , \\boldsymbol { b } , \\boldsymbol { C } \\mid \\tau \\right) .\n$$",
|
| 461 |
+
"text_format": "latex",
|
| 462 |
+
"bbox": [
|
| 463 |
+
241,
|
| 464 |
+
253,
|
| 465 |
+
480,
|
| 466 |
+
273
|
| 467 |
+
],
|
| 468 |
+
"page_idx": 3
|
| 469 |
+
},
|
| 470 |
+
{
|
| 471 |
+
"type": "text",
|
| 472 |
+
"text": "131 The detailed architecture of QENet is shown in Figure 2. \n132 We reuse the IndepBlock to generate $v$ by $M + 1$ blocks: \n133 $\\boldsymbol { \\tau } = \\left( \\tau _ { 1 } , \\cdot \\cdot \\cdot , \\tau _ { M } , \\tau _ { x } \\right)$ . Specifically, latent representation \n134 for each selected-codeword $C _ { m b _ { m } }$ is obtained by: ",
|
| 473 |
+
"bbox": [
|
| 474 |
+
140,
|
| 475 |
+
287,
|
| 476 |
+
550,
|
| 477 |
+
343
|
| 478 |
+
],
|
| 479 |
+
"page_idx": 3
|
| 480 |
+
},
|
| 481 |
+
{
|
| 482 |
+
"type": "equation",
|
| 483 |
+
"img_path": "images/0a7877792fdd8d6f0b3c351d17f5df444e91be0571a05754cb5379a9d680ef63.jpg",
|
| 484 |
+
"text": "$$\n\\pmb { \\iota } _ { m } = \\tau _ { m } ( C _ { m { \\pmb b } _ { m } } ) .\n$$",
|
| 485 |
+
"text_format": "latex",
|
| 486 |
+
"bbox": [
|
| 487 |
+
299,
|
| 488 |
+
351,
|
| 489 |
+
424,
|
| 490 |
+
367
|
| 491 |
+
],
|
| 492 |
+
"page_idx": 3
|
| 493 |
+
},
|
| 494 |
+
{
|
| 495 |
+
"type": "text",
|
| 496 |
+
"text": "135 The last IndepBlock $\\tau _ { x }$ is introduced to transform $_ { \\textbf { \\em x } }$ . Then, \n136 all the outputs from IndepBlocks are summed up to get \n137 scalar value $v$ (denoted as “reduce-sum”): ",
|
| 497 |
+
"bbox": [
|
| 498 |
+
140,
|
| 499 |
+
375,
|
| 500 |
+
549,
|
| 501 |
+
416
|
| 502 |
+
],
|
| 503 |
+
"page_idx": 3
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"type": "equation",
|
| 507 |
+
"img_path": "images/191a27a45eeb34ad88403685a62c75336635c072b5219704927cf4fb3366f952.jpg",
|
| 508 |
+
"text": "$$\nv = { \\mathrm { s u m } } ( \\iota _ { 1 } , \\cdot \\cdot \\cdot , \\iota _ { M } , \\iota _ { x } ) .\n$$",
|
| 509 |
+
"text_format": "latex",
|
| 510 |
+
"bbox": [
|
| 511 |
+
272,
|
| 512 |
+
424,
|
| 513 |
+
449,
|
| 514 |
+
440
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 3
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "image",
|
| 520 |
+
"img_path": "images/7d1a762b0aaa3ad7a080abf2fa63c21a54cc7025884a767faccb3fb522015eaa.jpg",
|
| 521 |
+
"image_caption": [
|
| 522 |
+
"Figure 2: Our proposed QENet for advantage estimation. First $M$ IndepBlocks are fed by $M$ selected codewords and the last one is fed by $_ { \\textbf { \\em x } }$ . Outputs are summed up to get scalar value $v$ . "
|
| 523 |
+
],
|
| 524 |
+
"image_footnote": [],
|
| 525 |
+
"bbox": [
|
| 526 |
+
565,
|
| 527 |
+
248,
|
| 528 |
+
823,
|
| 529 |
+
425
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 3
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "138 Value-corrected proximal policy optimization We \n139 propose a variant of score function gradient estimator \n140 called Value Corrected Proximal Policy Optimization (VC \n141 PPO) based on PPO to get simple but efficient Trust Re \n142 gion updates [26, 24]. In the real scenario of large-scale \n143 ANN search, the training size $N$ is usually larger than $1 0 k$ . Conventional PPO still does not satisfy \n144 us due to the speed of convergence. Therefore, we revise and propose the Value-Corrected PPO \n145 (VC-PPO) to achieve fast training. Firstly in the sampling stage, $b _ { o }$ and $v _ { o }$ is produced from datapoint \n146 $_ { \\textbf { \\em x } }$ over whole training set $\\boldsymbol { X }$ by freezing current policy network and value network as $\\theta _ { o } , \\tau _ { o }$ : ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
140,
|
| 538 |
+
454,
|
| 539 |
+
560,
|
| 540 |
+
523
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 3
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "",
|
| 547 |
+
"bbox": [
|
| 548 |
+
140,
|
| 549 |
+
525,
|
| 550 |
+
826,
|
| 551 |
+
580
|
| 552 |
+
],
|
| 553 |
+
"page_idx": 3
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"type": "equation",
|
| 557 |
+
"img_path": "images/f2a5f54dd318140f00307c9f0c496f35885d7fbc41ed0459f9ecf0955ef389ea.jpg",
|
| 558 |
+
"text": "$$\n\\begin{array} { r l } & { b _ { o } \\sim \\pi \\left( \\pmb { x } \\mid \\theta _ { o } \\right) , } \\\\ & { v _ { o } = \\mathrm { V } \\left( \\pmb { x } , b _ { o } , C \\mid \\tau _ { o } \\right) . } \\end{array}\n$$",
|
| 559 |
+
"text_format": "latex",
|
| 560 |
+
"bbox": [
|
| 561 |
+
418,
|
| 562 |
+
585,
|
| 563 |
+
578,
|
| 564 |
+
623
|
| 565 |
+
],
|
| 566 |
+
"page_idx": 3
|
| 567 |
+
},
|
| 568 |
+
{
|
| 569 |
+
"type": "text",
|
| 570 |
+
"text": "147 The probability of producing the sampled $b _ { o }$ is denoted as $p _ { o } = \\operatorname* { P r } \\left( \\pmb { b } _ { o } \\mid \\pmb { x } , \\pmb { \\theta } _ { o } \\right)$ , calculated by \n148 equation (4). Finally, our surrogate objectives of VC-PPO is defined as [8]: ",
|
| 571 |
+
"bbox": [
|
| 572 |
+
140,
|
| 573 |
+
636,
|
| 574 |
+
828,
|
| 575 |
+
665
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 3
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "149 ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
142,
|
| 584 |
+
742,
|
| 585 |
+
161,
|
| 586 |
+
752
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 3
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "equation",
|
| 592 |
+
"img_path": "images/22e348067959e332c2ca5f6f7710c8f767247a1bf7a3e7d76885211f108b77da.jpg",
|
| 593 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } _ { \\theta } = \\operatorname* { m i n } \\left( \\frac { \\operatorname* { P r } \\left( b _ { o } \\mid \\boldsymbol { x } , \\theta \\right) } { \\operatorname* { P r } \\left( b _ { o } \\mid \\boldsymbol { x } , \\theta _ { o } \\right) } \\hat { A } , \\right. } \\\\ & { \\qquad \\left. \\mathrm { c l i p } _ { 1 - \\epsilon } ^ { 1 + \\epsilon } \\left( \\frac { \\operatorname* { P r } \\left( b _ { o } \\mid \\boldsymbol { x } , \\theta \\right) } { \\operatorname* { P r } \\left( b _ { o } \\mid \\boldsymbol { x } , \\theta _ { o } \\right) } \\right) \\hat { A } \\right) , } \\\\ & { \\mathcal { L } _ { \\tau } = \\operatorname* { m a x } \\left( \\left( \\operatorname { Q } \\left( \\boldsymbol { x } , b _ { o } , C \\right) - \\mathrm { V } \\left( \\boldsymbol { x } , b _ { o } , C \\mid \\tau \\right) \\right) ^ { 2 } , \\right. } \\\\ & { \\qquad \\left. \\left( \\mathrm { Q } \\left( \\boldsymbol { x } , b _ { o } , C \\right) - \\boldsymbol { v } _ { o } - \\mathrm { c l i p } _ { - \\epsilon } ^ { + \\epsilon } \\left( \\mathrm { V } \\left( \\boldsymbol { x } , b _ { o } , C \\mid \\tau \\right) - \\boldsymbol { v } _ { o } \\right) \\right) ^ { 2 } \\right) . } \\end{array}\n$$",
|
| 594 |
+
"text_format": "latex",
|
| 595 |
+
"bbox": [
|
| 596 |
+
297,
|
| 597 |
+
670,
|
| 598 |
+
699,
|
| 599 |
+
805
|
| 600 |
+
],
|
| 601 |
+
"page_idx": 3
|
| 602 |
+
},
|
| 603 |
+
{
|
| 604 |
+
"type": "text",
|
| 605 |
+
"text": "150 Here, The $\\mathrm { c l i p } \\left( \\cdot \\right)$ forces the policy and value to be not too far from old ones and $\\epsilon$ is the clip-range. \n151 In both equations, it prevents a large update ratio leading to an unstable policy. The key difference \n152 between the original PPO and our VC-PPO is, we use $\\mathrm { V } \\left( \\boldsymbol { x } , \\boldsymbol { b _ { o } } , \\boldsymbol { C } \\mid \\tau \\right)$ other than the recorded old \n153 value $v _ { o }$ from sampling stage to estimate advantage. This modification is treated as a value-correction \n154 process. Correcting value leads to a precise estimation on advantage, which is based on two reasons: \n155 a) Biases are introduced into advantage estimation if we use $v _ { o }$ , since the policy is getting better and \n156 better during training but $\\tau _ { o }$ is froze, and 2) The calculation of $\\mathrm { V } \\left( \\boldsymbol { x } , \\boldsymbol { b _ { o } } , \\boldsymbol { C } \\mid \\tau \\right)$ can be done instantly \n157 without introducing significant computational overhead. To further encourage the network choose \n158 codewords uniformly, a regularization is applied to $\\theta$ to maximize the entropy of $\\pi$ : ",
|
| 606 |
+
"bbox": [
|
| 607 |
+
140,
|
| 608 |
+
814,
|
| 609 |
+
826,
|
| 610 |
+
912
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 3
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "",
|
| 617 |
+
"bbox": [
|
| 618 |
+
142,
|
| 619 |
+
90,
|
| 620 |
+
825,
|
| 621 |
+
121
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "equation",
|
| 627 |
+
"img_path": "images/2600f134d6a39bc36fd27d1596b221f5435bebb40f7c67130a041fb5da375978.jpg",
|
| 628 |
+
"text": "$$\ne _ { \\theta } = - \\sum _ { m = 1 } ^ { M } \\sum _ { j = 1 } ^ { K } p _ { m j } \\log { p _ { m j } }\n$$",
|
| 629 |
+
"text_format": "latex",
|
| 630 |
+
"bbox": [
|
| 631 |
+
400,
|
| 632 |
+
127,
|
| 633 |
+
596,
|
| 634 |
+
172
|
| 635 |
+
],
|
| 636 |
+
"page_idx": 4
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"type": "text",
|
| 640 |
+
"text": "159 which forces network to try more codeword combinations. ",
|
| 641 |
+
"bbox": [
|
| 642 |
+
142,
|
| 643 |
+
179,
|
| 644 |
+
557,
|
| 645 |
+
195
|
| 646 |
+
],
|
| 647 |
+
"page_idx": 4
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"type": "text",
|
| 651 |
+
"text": "60 4.2 Maximization: Solve $C$ by least-squares ",
|
| 652 |
+
"text_level": 1,
|
| 653 |
+
"bbox": [
|
| 654 |
+
158,
|
| 655 |
+
210,
|
| 656 |
+
491,
|
| 657 |
+
227
|
| 658 |
+
],
|
| 659 |
+
"page_idx": 4
|
| 660 |
+
},
|
| 661 |
+
{
|
| 662 |
+
"type": "text",
|
| 663 |
+
"text": "161 To give the closed-form derivation of solving $C$ by given $\\boldsymbol { X }$ and $\\textbf { { B } }$ , We will firstly rewrite Equation \n162 (1) to a matrix formulation. Since $\\pmb { b } = ( \\pmb { b } _ { 1 } , \\pmb { b } _ { 2 } , \\pmb { \\cdot \\cdot \\cdot } , \\pmb { b } _ { M } )$ and ${ \\pmb b } _ { m } \\in \\{ 1 , 2 , \\cdots \\dot { K } \\}$ is the index of \n163 selected codeword in the $i$ -th sub-codebook, a one-hot encoding and a concatenation on each $b _ { m }$ : \n164 $\\pmb { b } _ { m } ^ { \\prime } = \\mathrm { o n e - h o t } ( \\pmb { b } _ { m } )$ , $\\pmb { b } ^ { \\prime } = ( \\pmb { b } _ { 1 } ^ { \\prime } , \\cdots , \\pmb { b } _ { m } ^ { \\prime } )$ will convert the quantization code to a $M$ -hot vector i.e. a \n165 vector that contains $M$ segments, and each segment contains exactly one 1 and remaining 0, where \n1 is the entry of picked codeword. Correspondingly, a reshape is applied to 166 $C \\colon C ^ { \\prime } = \\left( \\begin{array} { c } { { C _ { 1 } } } \\\\ { { C _ { 2 } } } \\\\ { { \\vdots } } \\\\ { { C _ { M } } } \\end{array} \\right) \\in$ ",
|
| 664 |
+
"bbox": [
|
| 665 |
+
138,
|
| 666 |
+
236,
|
| 667 |
+
828,
|
| 668 |
+
371
|
| 669 |
+
],
|
| 670 |
+
"page_idx": 4
|
| 671 |
+
},
|
| 672 |
+
{
|
| 673 |
+
"type": "text",
|
| 674 |
+
"text": "$\\mathbb { R } ^ { ( M \\times K ) \\times D }$ . (1) will become: ",
|
| 675 |
+
"bbox": [
|
| 676 |
+
163,
|
| 677 |
+
372,
|
| 678 |
+
372,
|
| 679 |
+
388
|
| 680 |
+
],
|
| 681 |
+
"page_idx": 4
|
| 682 |
+
},
|
| 683 |
+
{
|
| 684 |
+
"type": "equation",
|
| 685 |
+
"img_path": "images/92203fb75cdfb88648c18e1251b72658fffc964587d6172a3b34588b94445a89.jpg",
|
| 686 |
+
"text": "$$\n\\operatorname* { m i n } _ { \\boldsymbol { C ^ { \\prime } } } \\left\\| \\boldsymbol { X } - \\boldsymbol { B ^ { \\prime } } \\boldsymbol { C ^ { \\prime } } \\right\\| _ { 2 } ^ { 2 } .\n$$",
|
| 687 |
+
"text_format": "latex",
|
| 688 |
+
"bbox": [
|
| 689 |
+
428,
|
| 690 |
+
387,
|
| 691 |
+
568,
|
| 692 |
+
414
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 4
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "text",
|
| 698 |
+
"text": "168 This equation is formally a linear least-squares regression, where $\\pmb { { B } } ^ { \\prime } \\in \\{ 0 , 1 \\} ^ { N \\times ( M \\times K ) }$ is known \n169 and $\\boldsymbol { X }$ is target. Although there is a bunch of algorithms to solve it, we finally choose gelsy [1], \n170 which in our experiments shows the best results. The solution is to first apply a QR factorization with \n171 column permutation on $B ^ { \\prime }$ : ",
|
| 699 |
+
"bbox": [
|
| 700 |
+
140,
|
| 701 |
+
426,
|
| 702 |
+
826,
|
| 703 |
+
483
|
| 704 |
+
],
|
| 705 |
+
"page_idx": 4
|
| 706 |
+
},
|
| 707 |
+
{
|
| 708 |
+
"type": "equation",
|
| 709 |
+
"img_path": "images/02e6374ce5a25b6bc52b26e948de6f86f82fb6e3dcefa1d1e8aff09ea3cf2ea8.jpg",
|
| 710 |
+
"text": "$$\nB ^ { \\prime } = Q \\left( \\begin{array} { c c } { { R _ { 1 1 } } } & { { R _ { 1 2 } } } \\\\ { { 0 } } & { { R _ { 2 2 } } } \\end{array} \\right) P ^ { \\intercal }\n$$",
|
| 711 |
+
"text_format": "latex",
|
| 712 |
+
"bbox": [
|
| 713 |
+
406,
|
| 714 |
+
483,
|
| 715 |
+
591,
|
| 716 |
+
518
|
| 717 |
+
],
|
| 718 |
+
"page_idx": 4
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"type": "text",
|
| 722 |
+
"text": "where 172 $Q$ and $\\pmb { R } = \\left( \\begin{array} { c c } { R _ { 1 1 } } & { R _ { 1 2 } } \\\\ { 0 } & { R _ { 2 2 } } \\end{array} \\right)$ is the factorization matrix and $_ { r }$ is an orthogonal matrix that 173 permutes columns of $B ^ { \\prime }$ until $\\pmb { R } _ { 1 1 }$ is well-conditioned (its estimated condition number approaches 174 0). With the permutation, $ { R _ { 2 2 } }$ becomes negligible. Moreover, $\\mathbf { R } _ { 1 2 }$ is erased by another orthogonal 175 transformation: ",
|
| 723 |
+
"bbox": [
|
| 724 |
+
140,
|
| 725 |
+
523,
|
| 726 |
+
825,
|
| 727 |
+
595
|
| 728 |
+
],
|
| 729 |
+
"page_idx": 4
|
| 730 |
+
},
|
| 731 |
+
{
|
| 732 |
+
"type": "equation",
|
| 733 |
+
"img_path": "images/2b134d9efca723d4c9dfe1b620958e639fc0e93d5c53af02c3e03d1195ce292f.jpg",
|
| 734 |
+
"text": "$$\n\\begin{array} { r l } { \\bigg ( R _ { 1 1 } } & { { } R _ { 1 2 } \\bigg ) \\bigg ( R _ { 1 1 } \\quad R _ { 1 2 } \\bigg ) = \\bigg ( T _ { 1 1 } \\quad 0 \\bigg ) Z } \\\\ { 0 } & { { } R _ { 2 2 } \\bigg ) \\bigg ( T _ { 0 } \\qquad 0 \\bigg ) = \\bigg ( T _ { 0 } \\quad 0 \\bigg ) Z } \\end{array}\n$$",
|
| 735 |
+
"text_format": "latex",
|
| 736 |
+
"bbox": [
|
| 737 |
+
330,
|
| 738 |
+
594,
|
| 739 |
+
668,
|
| 740 |
+
630
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 4
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "text",
|
| 746 |
+
"text": "where 176 $\\mathbf { T }$ and $z$ are from the orthogonal transformation of $\\pmb { R }$ . Then, $C ^ { \\prime }$ is derived by: ",
|
| 747 |
+
"bbox": [
|
| 748 |
+
142,
|
| 749 |
+
635,
|
| 750 |
+
735,
|
| 751 |
+
650
|
| 752 |
+
],
|
| 753 |
+
"page_idx": 4
|
| 754 |
+
},
|
| 755 |
+
{
|
| 756 |
+
"type": "equation",
|
| 757 |
+
"img_path": "images/8c6ec043e2ff760713295bca760de5b8497f6229e375967916e38dd50aa97254.jpg",
|
| 758 |
+
"text": "$$\n\\begin{array} { r } { B ^ { \\prime } = Q \\left( \\begin{array} { c c } { T _ { 1 1 } } & { 0 } \\\\ { 0 } & { 0 } \\end{array} \\right) Z P ^ { \\intercal } , } \\\\ { C \\gets C ^ { \\prime } \\gets P Z ^ { \\intercal } \\left( \\begin{array} { c c } { T _ { 1 1 } ^ { - 1 } Q _ { 1 } ^ { \\intercal } X } \\\\ { 0 } \\end{array} \\right) } \\end{array}\n$$",
|
| 759 |
+
"text_format": "latex",
|
| 760 |
+
"bbox": [
|
| 761 |
+
388,
|
| 762 |
+
656,
|
| 763 |
+
609,
|
| 764 |
+
728
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 4
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "text",
|
| 770 |
+
"text": "where 177 $Q _ { 1 }$ is the top $\\mathrm { r a n k } ( B ^ { \\prime } )$ columns of $Q$ . ",
|
| 771 |
+
"bbox": [
|
| 772 |
+
142,
|
| 773 |
+
734,
|
| 774 |
+
473,
|
| 775 |
+
752
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 4
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "178 In brief, our overall training approach is summarized into algorithm 1. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
145,
|
| 784 |
+
756,
|
| 785 |
+
633,
|
| 786 |
+
772
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 4
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "4.3 Fast retrieval ",
|
| 793 |
+
"text_level": 1,
|
| 794 |
+
"bbox": [
|
| 795 |
+
173,
|
| 796 |
+
789,
|
| 797 |
+
307,
|
| 798 |
+
804
|
| 799 |
+
],
|
| 800 |
+
"page_idx": 4
|
| 801 |
+
},
|
| 802 |
+
{
|
| 803 |
+
"type": "text",
|
| 804 |
+
"text": "80 After training, we are able to encode the base set for retrieval. Other than sampling from $\\pi$ , codewords \n81 are simply rolled out by greedy assignments: ",
|
| 805 |
+
"bbox": [
|
| 806 |
+
156,
|
| 807 |
+
814,
|
| 808 |
+
825,
|
| 809 |
+
843
|
| 810 |
+
],
|
| 811 |
+
"page_idx": 4
|
| 812 |
+
},
|
| 813 |
+
{
|
| 814 |
+
"type": "equation",
|
| 815 |
+
"img_path": "images/b517b3fe7194dc1d9aa4a6c19d7455a08f48cfc9aa8b943117ffc6e4790e6776.jpg",
|
| 816 |
+
"text": "$$\n\\pmb { b } _ { m } ^ { g } = \\arg \\operatorname* { m a x } \\theta _ { m } ( \\pmb { x } ) .\n$$",
|
| 817 |
+
"text_format": "latex",
|
| 818 |
+
"bbox": [
|
| 819 |
+
423,
|
| 820 |
+
851,
|
| 821 |
+
576,
|
| 822 |
+
868
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 4
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "182 We firstly use the greedy roll-out strategy to obtain $\\textbf { { B } }$ in the training set in order to solve the final \n183 codebook. Then, we employ the same strategy to encode the base set. \n184 To further refine assignments, we add an extra step that randomly selects and alters $b _ { i }$ while fixing \n185 others: ",
|
| 829 |
+
"bbox": [
|
| 830 |
+
138,
|
| 831 |
+
882,
|
| 832 |
+
826,
|
| 833 |
+
912
|
| 834 |
+
],
|
| 835 |
+
"page_idx": 4
|
| 836 |
+
},
|
| 837 |
+
{
|
| 838 |
+
"type": "text",
|
| 839 |
+
"text": "",
|
| 840 |
+
"bbox": [
|
| 841 |
+
143,
|
| 842 |
+
90,
|
| 843 |
+
825,
|
| 844 |
+
119
|
| 845 |
+
],
|
| 846 |
+
"page_idx": 5
|
| 847 |
+
},
|
| 848 |
+
{
|
| 849 |
+
"type": "equation",
|
| 850 |
+
"img_path": "images/93256c486a65bba72c2946046f8aa289280081e2f60e83fb05a7887976df91c5.jpg",
|
| 851 |
+
"text": "$$\n\\begin{array} { l } { { b _ { i } ^ { g } \\underset { b _ { i } ^ { g } } { \\operatorname { a r g m i n } } \\mathrm { Q } ( x , b ^ { g } , C ) , } } \\\\ { { \\quad i \\sim \\mathcal { U } [ 1 , M ] . } } \\end{array}\n$$",
|
| 852 |
+
"text_format": "latex",
|
| 853 |
+
"bbox": [
|
| 854 |
+
401,
|
| 855 |
+
123,
|
| 856 |
+
594,
|
| 857 |
+
174
|
| 858 |
+
],
|
| 859 |
+
"page_idx": 5
|
| 860 |
+
},
|
| 861 |
+
{
|
| 862 |
+
"type": "text",
|
| 863 |
+
"text": "186 Since this refinement only causes negligible overhead referred to the implementation by [14], in \n187 practice, we benefit from it not only to get lower quantization error but also to obtain acceptable \n188 performance from a fast training, i.e., training within a very few steps before the network is converged. \n189 The encoded and refined base set, combined with the codebook, is finally employed for retrieval. The \n90 LSQ-style lookup table [14] is utilized to speed up similarity search. ",
|
| 864 |
+
"bbox": [
|
| 865 |
+
142,
|
| 866 |
+
186,
|
| 867 |
+
825,
|
| 868 |
+
228
|
| 869 |
+
],
|
| 870 |
+
"page_idx": 5
|
| 871 |
+
},
|
| 872 |
+
{
|
| 873 |
+
"type": "text",
|
| 874 |
+
"text": "",
|
| 875 |
+
"bbox": [
|
| 876 |
+
150,
|
| 877 |
+
234,
|
| 878 |
+
828,
|
| 879 |
+
263
|
| 880 |
+
],
|
| 881 |
+
"page_idx": 5
|
| 882 |
+
},
|
| 883 |
+
{
|
| 884 |
+
"type": "text",
|
| 885 |
+
"text": "191 4.4 Discussion ",
|
| 886 |
+
"text_level": 1,
|
| 887 |
+
"bbox": [
|
| 888 |
+
151,
|
| 889 |
+
280,
|
| 890 |
+
285,
|
| 891 |
+
295
|
| 892 |
+
],
|
| 893 |
+
"page_idx": 5
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"type": "text",
|
| 897 |
+
"text": "Our work aims at solving Multi-Codebook Quantization via neural networks. Similar works include Unsupervised Neural Quantization (UNQ) [18] and Spreading Vectors [22]. But ours has several key advantages compared to previous works: 1) Unlike UNQ, which reconstructs features by an encoderdecoder structure, we follow the paradigm of MCQ to directly give binary codes and codebooks for the benefit of speed and storage, for UNQ needs an extra decoding stage during retrieval. 2) UNQ and Spreading Vectors both project original features into a learned space. Although similarities between features are preserved, they still have biases in quantized results. This causes several issues, especially when we want to perform a reconstruction to approximate original features, e.g. data compression. ",
|
| 898 |
+
"bbox": [
|
| 899 |
+
161,
|
| 900 |
+
308,
|
| 901 |
+
503,
|
| 902 |
+
526
|
| 903 |
+
],
|
| 904 |
+
"page_idx": 5
|
| 905 |
+
},
|
| 906 |
+
{
|
| 907 |
+
"type": "text",
|
| 908 |
+
"text": "208 Compared to LSQ [14], the state-of-the-art heuris \n209 tic algorithm, our work is the first to tackle MCQ in \n210 a deep learning fashion. The policy network is de \n211 signed to be very simple to get fast encoding speed \n212 and comparable retrieval performance. ",
|
| 909 |
+
"bbox": [
|
| 910 |
+
145,
|
| 911 |
+
534,
|
| 912 |
+
504,
|
| 913 |
+
603
|
| 914 |
+
],
|
| 915 |
+
"page_idx": 5
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"type": "text",
|
| 919 |
+
"text": "Algorithm 1: VC-PPO for Training ",
|
| 920 |
+
"text_level": 1,
|
| 921 |
+
"bbox": [
|
| 922 |
+
517,
|
| 923 |
+
286,
|
| 924 |
+
753,
|
| 925 |
+
301
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 5
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Inputs: Training set $\\boldsymbol { X }$ , max step $T$ , hyper \nparameters $\\alpha$ , \u000f, learning rates $\\eta _ { 1 } , \\eta _ { 2 }$ . \nOutputs: Policy $\\pi$ . \nInitialize codebook $C$ , parameters $\\theta$ and $\\tau$ ; \n$i \\gets 0$ ; \nwhile $i < T$ do $^ { \\prime * }$ Training loop $^ { * / }$ for $_ { \\textbf { \\em x } }$ in $\\boldsymbol { X }$ do $^ { \\prime * }$ Sampling stage $^ { * / }$ Sample $\\ b { b _ { o } } \\sim \\pi \\left( \\pmb { x } \\mid \\theta _ { o } \\right)$ into $\\textbf { { B } }$ ; Compute $v _ { o } , p _ { o }$ into $V$ , $_ { r }$ ; end for $x , b _ { o } , v _ { o } , p _ { o }$ in $X , B , V , P r$ do $^ { \\prime * }$ Updating stage $^ { * / }$ $\\tau \\tau - \\eta _ { 1 } \\nabla _ { \\tau } { \\mathcal { L } } _ { \\tau }$ ; Compute $\\hat { A }$ by (8); $\\theta \\theta + \\eta _ { 2 } \\nabla _ { \\theta } ( \\mathcal { L } _ { \\theta } + \\alpha \\cdot e _ { \\theta } ) ;$ end C ← Solved by (15) ∼ (18); $i \\gets i + 1$ ; \nend \nreturn π (· | θ) ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
514,
|
| 934 |
+
304,
|
| 935 |
+
812,
|
| 936 |
+
625
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 5
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "5 Experiments ",
|
| 943 |
+
"text_level": 1,
|
| 944 |
+
"bbox": [
|
| 945 |
+
163,
|
| 946 |
+
623,
|
| 947 |
+
312,
|
| 948 |
+
640
|
| 949 |
+
],
|
| 950 |
+
"page_idx": 5
|
| 951 |
+
},
|
| 952 |
+
{
|
| 953 |
+
"type": "text",
|
| 954 |
+
"text": "214 Our proposed Deep Multi-Codebook Quantization (DeepQ) is compared against the state-of-the-arts \n215 on a visual-feature dataset (LabelMe22K) to evaluate retrieval performance and encoding speed. \n216 Then, we scale up to make comparisons on commonly used large-scale datasets (SIFT1M and \n217 DEEP1M), whose base sets include 1 million vectors for retrieval. Furthermore, ablation study on \n218 SIFT1M investigates the effectiveness of each component in our proposed pipeline. ",
|
| 955 |
+
"bbox": [
|
| 956 |
+
147,
|
| 957 |
+
655,
|
| 958 |
+
825,
|
| 959 |
+
726
|
| 960 |
+
],
|
| 961 |
+
"page_idx": 5
|
| 962 |
+
},
|
| 963 |
+
{
|
| 964 |
+
"type": "text",
|
| 965 |
+
"text": "5.1 Datasets and evaluation metrics ",
|
| 966 |
+
"text_level": 1,
|
| 967 |
+
"bbox": [
|
| 968 |
+
166,
|
| 969 |
+
742,
|
| 970 |
+
434,
|
| 971 |
+
757
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 5
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "LabelMe22K [29]: This dataset collects images by the LabelMe annotation tool1 and uses Convolutional Neural Network (CNN) to extract them into 512-d features. It has 22, 019 vectors for training and 2, 000 vectors for test. ",
|
| 978 |
+
"bbox": [
|
| 979 |
+
171,
|
| 980 |
+
767,
|
| 981 |
+
825,
|
| 982 |
+
810
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 5
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "SIFT1M2 and DEEP1M3: Both datasets contain $1 0 ^ { 4 }$ , $1 0 ^ { 5 }$ , $1 0 ^ { 6 }$ vectors in query, training and base set, respectively. Vectors from SIFT1M is extracted by Scale-Invariant Feature Transform (128-d) while DEEP1M contains 96-d vectors from outputs of a CNN. ",
|
| 989 |
+
"bbox": [
|
| 990 |
+
166,
|
| 991 |
+
815,
|
| 992 |
+
823,
|
| 993 |
+
858
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 5
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "226 Recall $ @ \\{ 1 , 1 0 , 1 0 0 \\}$ and quantization error are adopted as evaluation metrics. These two metrics \n227 indicate not only the retrieval performance but also the reconstruction accuracy. Because LabelMe22K \n228 does not have a base set, its training set is adopted as a base set. We train on the training set, and then \n229 encode the base set for evaluations with queries. When calculating recall, groundtruth is defined as \n230 the nearest neighbor of each query in the base set (sorted by l2 distance). As for quantization error, \n231 the average value of $\\wr ( { \\pmb x } , { \\pmb b } , { \\pmb C } )$ is reported over all $_ { \\textbf { \\em x } }$ in the base set. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
140,
|
| 1002 |
+
92,
|
| 1003 |
+
825,
|
| 1004 |
+
174
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 6
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "We compare our proposal with both shallow and deep methods, including three classic quantization: OPQ [6], SQ [15] and $\\mathbf { L S Q + + }$ [14, 16] (denoted as LSQ for simplicity. Also, these two in our experiments have similar performance), as well as three graident-based methods: DPQ [11], $\\mathbf { D P g Q }$ [5] and DRQ [28]. DPQ and PQNet [33] have basically the same architecture that extend PQ with gradient-descent, so we only report the performance of DPQ. Additionally, UNQ [18] is also included, although they introduce an extra decoder and re-ranking trick for retrieval. ",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
169,
|
| 1013 |
+
181,
|
| 1014 |
+
825,
|
| 1015 |
+
263
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 6
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "text",
|
| 1021 |
+
"text": "5.2 Implementation details ",
|
| 1022 |
+
"text_level": 1,
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
281,
|
| 1026 |
+
372,
|
| 1027 |
+
295
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 6
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Our method is implemented with PyTorch,4 the popular deep learning package in Python. Codebook $C$ is solved by Intel MKL that has been fully optimized for speed. As for network training, we adopt Adam optimizer with AMSGrad [21] and hyperparameters are tuned by grid search. Specifically, learning rates $\\eta _ { 1 } = \\eta _ { 2 } =$ $2 \\times 1 0 ^ { - 4 }$ , with an exponetial learning rate decay $\\gamma = 0 . 9 9 9 9$ . Batch-size in updating stage is 2000, while other hyper-parameters $\\epsilon = 0 . 2$ , $\\alpha = 0 . 0 5$ . Additionally, during training, we insert dropout layers after every layernormalization in all layer-groups to tackle overfitting. More detailed settings as well as specifications of $I n$ - depNet $\\theta$ and QENet $\\tau$ on each dataset ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
173,
|
| 1036 |
+
306,
|
| 1037 |
+
421,
|
| 1038 |
+
566
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 6
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "table",
|
| 1044 |
+
"img_path": "images/9b43679453b4e6c934cd6a1249740aafecd7ad6bc1df7092e58cd2fc42ad93be.jpg",
|
| 1045 |
+
"table_caption": [],
|
| 1046 |
+
"table_footnote": [],
|
| 1047 |
+
"table_body": "<table><tr><td rowspan=\"3\">Method</td><td colspan=\"6\">LabelMe22K</td></tr><tr><td rowspan=\"2\">R@1</td><td>32 bits</td><td rowspan=\"2\">R@100</td><td rowspan=\"2\">R@1</td><td rowspan=\"2\">64 bits R@10</td><td rowspan=\"2\">R@100</td></tr><tr><td>R@10</td></tr><tr><td>OPQ</td><td>18.70</td><td>57.25</td><td>90.10</td><td>32.30</td><td>80.40</td><td>98.00</td></tr><tr><td>SQ</td><td>18.45</td><td>57.60</td><td>90.85</td><td>32.65</td><td>82.05</td><td>99.05</td></tr><tr><td>LSQ</td><td>21.20</td><td>60.85</td><td>94.35</td><td>36.45</td><td>86.25</td><td>99.15</td></tr><tr><td>DPQ</td><td>8.60</td><td>32.80</td><td>77.50</td><td>15.35</td><td>48.75</td><td>90.75</td></tr><tr><td>DPgQ</td><td>19.85</td><td>57.80</td><td>90.70</td><td>35.05</td><td>84.10</td><td>98.90</td></tr><tr><td>DRQ</td><td>9.65</td><td>34.15</td><td>80.15</td><td>30.75</td><td>77.35</td><td>97.10</td></tr><tr><td>UNQ</td><td>22.25</td><td>61.20</td><td>89.30</td><td>37.10</td><td>85.55</td><td>98.80</td></tr><tr><td>Ours</td><td>24.45</td><td>69.05</td><td>97.65</td><td>39.60</td><td>87.60</td><td>99.80</td></tr></table>",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
434,
|
| 1050 |
+
323,
|
| 1051 |
+
821,
|
| 1052 |
+
489
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 6
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "Table 1: Recall(R $) @ \\{ 1 , 1 0 , 1 0 0 \\}$ on LabelMe22K dataset $( \\% )$ . Ours outperforms state-of-the-arts by at least $2 . 2 0 \\%$ $7 . 8 5 \\%$ , $3 . 3 0 \\%$ (32 bits), and $2 . 7 0 \\%$ , $1 . 4 5 \\%$ , $0 . 6 5 \\%$ (64 bits), respectively. ",
|
| 1059 |
+
"bbox": [
|
| 1060 |
+
431,
|
| 1061 |
+
497,
|
| 1062 |
+
823,
|
| 1063 |
+
554
|
| 1064 |
+
],
|
| 1065 |
+
"page_idx": 6
|
| 1066 |
+
},
|
| 1067 |
+
{
|
| 1068 |
+
"type": "text",
|
| 1069 |
+
"text": "(LabelMe22K, SIFT1M, DEEP1M) can be found in supplementary material. ",
|
| 1070 |
+
"bbox": [
|
| 1071 |
+
163,
|
| 1072 |
+
568,
|
| 1073 |
+
674,
|
| 1074 |
+
582
|
| 1075 |
+
],
|
| 1076 |
+
"page_idx": 6
|
| 1077 |
+
},
|
| 1078 |
+
{
|
| 1079 |
+
"type": "text",
|
| 1080 |
+
"text": "As for quantization code-lengths, $K = 2 5 6$ codewords for each sub-codebook and $M = \\{ 4 , 8 \\}$ sub-codebooks are employed in total. We follow [2] to report “effective” code-lengths (additional code-length for storing $\\lVert \\boldsymbol { x } \\rVert$ for lookup table is ignored). Therefore code-lengths become $\\{ 3 2 , 6 4 \\}$ bits, respectively. ",
|
| 1081 |
+
"bbox": [
|
| 1082 |
+
174,
|
| 1083 |
+
588,
|
| 1084 |
+
825,
|
| 1085 |
+
645
|
| 1086 |
+
],
|
| 1087 |
+
"page_idx": 6
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"type": "text",
|
| 1091 |
+
"text": "For a fair comparison, experiments are conducted on a single machine, equipped with Intel Xeon E5-2678v3 CPU, 256 GiB RAM, and NVIDIA RTX 3090 GPU. For other methods, we re-run on all datasets under unified settings with implementations provided by the authors. ",
|
| 1092 |
+
"bbox": [
|
| 1093 |
+
176,
|
| 1094 |
+
651,
|
| 1095 |
+
823,
|
| 1096 |
+
693
|
| 1097 |
+
],
|
| 1098 |
+
"page_idx": 6
|
| 1099 |
+
},
|
| 1100 |
+
{
|
| 1101 |
+
"type": "text",
|
| 1102 |
+
"text": "5.3 Comparisons with state-of-the-arts ",
|
| 1103 |
+
"text_level": 1,
|
| 1104 |
+
"bbox": [
|
| 1105 |
+
166,
|
| 1106 |
+
709,
|
| 1107 |
+
455,
|
| 1108 |
+
723
|
| 1109 |
+
],
|
| 1110 |
+
"page_idx": 6
|
| 1111 |
+
},
|
| 1112 |
+
{
|
| 1113 |
+
"type": "text",
|
| 1114 |
+
"text": "Under the small training set and base set settings on LabelMe22K, we get the results placed in Table 1. Our method takes the highest recall on this dataset, outperforming the state-of-the-art by $2 . 2 0 \\%$ , $7 . 8 5 \\%$ , $3 . 3 0 \\%$ on 32 bits for $\\mathbf { R } \\ @ 1$ , $\\mathrm { R @ 1 0 }$ and $\\mathbf { R } @ \\mathbf { 1 } 0 0$ . It also outperforms the best competitor by $2 . 7 0 \\%$ , $1 . 4 5 \\%$ , $0 . 6 5 \\%$ on 64 bits. In brief, All methods except for UNQ are generally split into three styles: 1) PQ-like: OPQ and DPQ. 2) SQ-like: SQ, $\\mathrm { D P g Q }$ and DRQ. 3) MCQ: LSQ and ours. Generally, DPQ, $\\mathrm { D P g Q }$ , and DRQ achieve similar results compared to their shallow versions. However, since they are still constrained MCQs, they show worse performances than 3). The performance of LSQ is worse than ours, shows the effectiveness of neural networks for modeling the MCQ encoding problem. As for UNQ, it takes several extra tricks i.e., another network for decoding and re-ranking in retrieval. Although it beats LSQ, our network still shows the power of MCQ to win the competition. ",
|
| 1115 |
+
"bbox": [
|
| 1116 |
+
173,
|
| 1117 |
+
734,
|
| 1118 |
+
825,
|
| 1119 |
+
887
|
| 1120 |
+
],
|
| 1121 |
+
"page_idx": 6
|
| 1122 |
+
},
|
| 1123 |
+
{
|
| 1124 |
+
"type": "table",
|
| 1125 |
+
"img_path": "images/2d29c59c2ed53fba3e7ebc3047c4a5874b881d5af5c32f8351b1bb1d3165bd47.jpg",
|
| 1126 |
+
"table_caption": [],
|
| 1127 |
+
"table_footnote": [
|
| 1128 |
+
"Table 2: Quantitative comparisons with state-of-the-arts on SIFT1M and DEEP1M datasets. $\\operatorname { R e c a l l } ( \\mathbf { R } ) @ \\left\\{ 1 , 1 0 , 1 0 0 \\right\\}$ are reported $( \\% )$ . Ours shows comparable performance with staet-of-the-arts on SIFT1M, while achieving the highest recall in most cases on DEEP1M. "
|
| 1129 |
+
],
|
| 1130 |
+
"table_body": "<table><tr><td rowspan=\"3\">Method</td><td colspan=\"6\">SIFT1M</td><td colspan=\"6\">DEEP1M</td></tr><tr><td></td><td>32 bits</td><td></td><td></td><td>64 bits</td><td></td><td></td><td>32 bits</td><td></td><td></td><td>64 bits</td><td></td></tr><tr><td>R@1</td><td>R@10</td><td>R@100</td><td>R@1</td><td>R@10</td><td>R@100</td><td>R@1</td><td>R@10</td><td>R@100</td><td>R@1</td><td>R@10</td><td>R@100</td></tr><tr><td>OPQ</td><td>5.34</td><td>22.03</td><td>56.72</td><td>22.84</td><td>60.27</td><td>92.19</td><td>3.07</td><td>15.39</td><td>48.40</td><td>15.34</td><td>50.06</td><td>87.96</td></tr><tr><td>sQ</td><td>9.45</td><td>34.88</td><td>70.07</td><td>24.41</td><td>65.48</td><td>93.17</td><td>6.41</td><td>26.79</td><td>70.25</td><td>19.95</td><td>56.31</td><td>91.27</td></tr><tr><td>LSQ</td><td>11.43</td><td>40.48</td><td>80.52</td><td>33.23</td><td>78.37</td><td>98.72</td><td>7.29</td><td>28.96</td><td>72.93</td><td>21.12</td><td>61.47</td><td>93.98</td></tr><tr><td>DPQ</td><td>5.41</td><td>22.97</td><td>58.57</td><td>21.87</td><td>59.39</td><td>91.66</td><td>1.59</td><td>8.96</td><td>33.09</td><td>9.53</td><td>33.45</td><td>72.80</td></tr><tr><td>DPgQ</td><td>9.71</td><td>35.03</td><td>74.19</td><td>27.96</td><td>69.98</td><td>96.04</td><td>6.36</td><td>26.16</td><td>70.02</td><td>18.98</td><td>55.80</td><td>90.95</td></tr><tr><td>DRQ</td><td>1.40</td><td>8.87</td><td>35.27</td><td>18.56</td><td>53.06</td><td>88.45</td><td>4.48</td><td>22.46</td><td>62.57</td><td>16.10</td><td>52.76</td><td>89.31</td></tr><tr><td>UNQ</td><td>10.01</td><td>33.92</td><td>73.39</td><td>28.37</td><td>69.15</td><td>95.99</td><td>5.19</td><td>23.55</td><td>65.09</td><td>16.12</td><td>52.06</td><td>90.10</td></tr><tr><td>Ours</td><td>11.02</td><td>37.73</td><td>76.79</td><td>28.02</td><td>70.22</td><td>96.43</td><td>7.43</td><td>30.03</td><td>72.48</td><td>20.87</td><td>62.06</td><td>94.07</td></tr></table>",
|
| 1131 |
+
"bbox": [
|
| 1132 |
+
173,
|
| 1133 |
+
88,
|
| 1134 |
+
823,
|
| 1135 |
+
239
|
| 1136 |
+
],
|
| 1137 |
+
"page_idx": 7
|
| 1138 |
+
},
|
| 1139 |
+
{
|
| 1140 |
+
"type": "text",
|
| 1141 |
+
"text": "78 5.3.1 Large-scale retrieval performance ",
|
| 1142 |
+
"text_level": 1,
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
155,
|
| 1145 |
+
315,
|
| 1146 |
+
460,
|
| 1147 |
+
330
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 7
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Our evaluations on SIFT1M and DEEP1M datasets is presented in Table 2. The training set and base set are scaled up, and retrievals on these datasets become more difficult. We observe expected results on two datasets. Compared to our main competitor, LSQ, our method achieves comparable performance on SIFT1M, and outperforms LSQ on DEEP1M in most cases. Our method achieves higher recall on DEEP1M than SIFT1M. A potential reason is that DEEP1M is under a nearly normal distribution that, in practice, is easier to converge than SIFT1M, which has a larger variance between datapoints. The performance of UNQ in our experiments is lower than expected, possibly due to different dataset settings. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
173,
|
| 1156 |
+
339,
|
| 1157 |
+
825,
|
| 1158 |
+
450
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 7
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Another key advantage of our method is that, different from shallow methods, which are hand-crafted algorithms that find possible solutions manually or with constraints, our DeepQ encodes vectors by only a feed-forward. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
176,
|
| 1167 |
+
457,
|
| 1168 |
+
825,
|
| 1169 |
+
498
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 7
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "5.3.2 Encoding efficiency ",
|
| 1176 |
+
"text_level": 1,
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
176,
|
| 1179 |
+
515,
|
| 1180 |
+
359,
|
| 1181 |
+
530
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 7
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "In order to verify the encoding efficiency of our method, evaluations of encoding time on SIFT1M with the $1 0 ^ { 6 }$ base set are conducted by checking the total time spent. All of them are run under GPU-acceleration. Additionally, we evaluate the time with and without the extra codewords refinement that introduced in section 4.3 (128 bits results are simulated). As Figure 3 shows, our network is significantly faster than LSQ since it needs to perform local search iteratively for 25 or even 100 rounds. Specifically, to encode SIFT1M base set, LSQ takes 52.84s, 96.99s, 256.86s and 639.18s for 16, 32, 64 and 128 bits respectively. By contrast, our method takes 4.46s, 5.46s, 8.26s and 16.64s, which is $1 1 . 8 \\times$ , $1 7 . 8 \\times$ , $3 1 . 1 \\times$ and $3 8 . 4 \\times$ faster than LSQ. Moreover, our method is even faster than most of the constrained MCQs. We also notice that the refinement takes negligible overhead. Although UNQ takes the fastest encoding speed, it still needs to decode and re-rank during retrieval, which slows down its retrieval speed. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
173,
|
| 1190 |
+
539,
|
| 1191 |
+
485,
|
| 1192 |
+
842
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 7
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "5.3.3 Reconstruction accuracy ",
|
| 1199 |
+
"text_level": 1,
|
| 1200 |
+
"bbox": [
|
| 1201 |
+
176,
|
| 1202 |
+
859,
|
| 1203 |
+
397,
|
| 1204 |
+
873
|
| 1205 |
+
],
|
| 1206 |
+
"page_idx": 7
|
| 1207 |
+
},
|
| 1208 |
+
{
|
| 1209 |
+
"type": "image",
|
| 1210 |
+
"img_path": "images/706b3a3a6fdaf44b799211fd57ada61964058b8ee1e1aa34549a4cb8bcfc5924.jpg",
|
| 1211 |
+
"image_caption": [
|
| 1212 |
+
"Figure 3: Total encoding time w.r.t. code-length on SIFT1M dataset. For 128 bits, we illustrate the simulated results. The variant Ours\\* removes extra refinement step to show its overhead. Our two variants are significantly faster than LSQ while achieving similar performance. Furthermore, our method is slightly faster than most of the constrained MCQs. Our method achieves high performance as well as superior encoding efficiency. UNQ has the shortest time to encode the whole set, however during retrieval, they still need to decode and re-rank that slow down the speed. "
|
| 1213 |
+
],
|
| 1214 |
+
"image_footnote": [],
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
496,
|
| 1217 |
+
508,
|
| 1218 |
+
823,
|
| 1219 |
+
699
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 7
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "315 datasets are stated in Table 3. Basically, when the quantization error gets lower, recall will be higher. ",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
148,
|
| 1228 |
+
897,
|
| 1229 |
+
826,
|
| 1230 |
+
911
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 7
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "table",
|
| 1236 |
+
"img_path": "images/6e9e91a5492899ec798bba4382e3d03b8a74c0c1625ee5d63fc74bc05438c206.jpg",
|
| 1237 |
+
"table_caption": [
|
| 1238 |
+
"Table 3: Comparisons of quantization error with state-of-the-arts on three datasets (lower is better). Ours achieves the lowest quantization error in most cases. This gives us benefits of feature reconstruction. Observe that UNQ performs poorly, we believe it focuses more on ranking and similarity preservation, other than reconstruction. "
|
| 1239 |
+
],
|
| 1240 |
+
"table_footnote": [],
|
| 1241 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"2\">SIFT1M</td><td colspan=\"2\">DEEP1M</td><td colspan=\"2\">LabelMe22K</td></tr><tr><td>32 bits</td><td>64 bits</td><td>32 bits</td><td>64 bits</td><td>32 bits</td><td>64 bits</td></tr><tr><td>OPQ</td><td>4.03×104</td><td>2.51×104</td><td>4.25×10-1</td><td>2.70×10-1</td><td>1.25×10-1</td><td>9.25×10-2</td></tr><tr><td>sQ</td><td>3.42 ×104</td><td>2.13×104</td><td>3.24×10-1</td><td>2.10×10-1</td><td>1.25 × 10-1</td><td>9.10 ×10-2</td></tr><tr><td>LSQ</td><td>2.90 ×104</td><td>1.12 × 104</td><td>3.04× 10-1</td><td>1.99 ×10-1</td><td>1.21 ×10-1</td><td>8.57×10-2</td></tr><tr><td>DPQ</td><td>4.01×104</td><td>2.48×104</td><td>4.58×10-1</td><td>3.54×10-1</td><td>1.77 × 10-1</td><td>1.60×10-1</td></tr><tr><td>DPgQ</td><td>3.30×104</td><td>2.10×104</td><td>3.29 ×10-1</td><td>2.12 ×10-1</td><td>1.31 × 10-1</td><td>8.74×10-2</td></tr><tr><td>DRQ</td><td>4.75×104</td><td>2.88×104</td><td>3.52 ×10-1</td><td>2.54×10-1</td><td>1.61 × 10-1</td><td>1.01 × 10-1</td></tr><tr><td>UNQ</td><td>4.14×104</td><td>2.33×104</td><td>3.52 ×10-1</td><td>2.39 ×10-1</td><td>1.48 ×10-1</td><td>1.08×10-1</td></tr><tr><td>Ours</td><td>2.92×104</td><td>1.91 × 104</td><td>2.92×10-1</td><td>1.93×10-1</td><td>1.02×10-1</td><td>6.72×10-2</td></tr></table>",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
173,
|
| 1244 |
+
88,
|
| 1245 |
+
825,
|
| 1246 |
+
232
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 8
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "316 Ours get the 2nd place on SIFT1M, and the lowest on remaining datasets in most cases. Quantization \n317 error indicates reconstruction accuracy and further shows the quality of codebook generation and \n318 quantization codes selection. Notably, ours significantly outperforms UNQ, which has a strong bias \n319 on the reconstruction task. This is because they focus more on ranking, not the quantization error. \n320 The result shows that our method can be applied to other areas, e.g. vector compression. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
140,
|
| 1255 |
+
319,
|
| 1256 |
+
825,
|
| 1257 |
+
388
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 8
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "5.4 Ablation study ",
|
| 1264 |
+
"text_level": 1,
|
| 1265 |
+
"bbox": [
|
| 1266 |
+
161,
|
| 1267 |
+
405,
|
| 1268 |
+
313,
|
| 1269 |
+
419
|
| 1270 |
+
],
|
| 1271 |
+
"page_idx": 8
|
| 1272 |
+
},
|
| 1273 |
+
{
|
| 1274 |
+
"type": "text",
|
| 1275 |
+
"text": "Our ablation study is conducted on the SIFT1M dataset, with the code-length of 32 bits, which in our experiments is sufficient to show how does each component affects our model. We choose the following variants to perform ablation: ",
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
173,
|
| 1278 |
+
430,
|
| 1279 |
+
452,
|
| 1280 |
+
512
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 8
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "w/o regularization: which removes $e _ { \\theta }$ in the losses, and the output distributions will not be forced to be uniform. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
174,
|
| 1289 |
+
520,
|
| 1290 |
+
450,
|
| 1291 |
+
560
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 8
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "w/o return-norm: which does not normalize $R$ , and therefor advantage is computed by $R$ other than $\\bar { R }$ . ",
|
| 1298 |
+
"bbox": [
|
| 1299 |
+
173,
|
| 1300 |
+
568,
|
| 1301 |
+
450,
|
| 1302 |
+
609
|
| 1303 |
+
],
|
| 1304 |
+
"page_idx": 8
|
| 1305 |
+
},
|
| 1306 |
+
{
|
| 1307 |
+
"type": "table",
|
| 1308 |
+
"img_path": "images/d9e8fc7d2d4f1e89b83389fee6027acdf1012132fa06e52b848439b318d7b586.jpg",
|
| 1309 |
+
"table_caption": [],
|
| 1310 |
+
"table_footnote": [],
|
| 1311 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"4\">SIFT1M@32 bits</td></tr><tr><td>QE</td><td>R@1</td><td>R@10</td><td>R@100</td></tr><tr><td>w/o regularization</td><td>3.38×104</td><td>7.60</td><td>29.96</td><td>68.73</td></tr><tr><td>w/o return-norm</td><td>3.06×104</td><td>10.57</td><td>36.44</td><td>76.04</td></tr><tr><td>w/o correction</td><td>3.10×104</td><td>10.09</td><td>35.30</td><td>75.16</td></tr><tr><td>w/o refinement</td><td>3.17 ×104</td><td>9.91</td><td>30.39</td><td>68.28</td></tr><tr><td>DeepQ</td><td>2.92×104</td><td>11.02</td><td>37.73</td><td>76.79</td></tr></table>",
|
| 1312 |
+
"bbox": [
|
| 1313 |
+
464,
|
| 1314 |
+
404,
|
| 1315 |
+
825,
|
| 1316 |
+
516
|
| 1317 |
+
],
|
| 1318 |
+
"page_idx": 8
|
| 1319 |
+
},
|
| 1320 |
+
{
|
| 1321 |
+
"type": "text",
|
| 1322 |
+
"text": "w/o correction: which removes value correction. So our VC-PPO falls back to the original PPO. ",
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
169,
|
| 1325 |
+
617,
|
| 1326 |
+
534,
|
| 1327 |
+
645
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 8
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "text",
|
| 1333 |
+
"text": "Table 4: Ablation study conducted on SIFT1M with 32 bits code-length. Entropy regularization forces network to try more codeword combinations, which help to jump out of local-optima. Return normalization and value correction help for fast convergence. The extra refinement leads to low quantization error and high recall with negligible costs. ",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
465,
|
| 1336 |
+
522,
|
| 1337 |
+
825,
|
| 1338 |
+
619
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 8
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "w/o refinement: which directly encode the base set without extra refinement. ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
171,
|
| 1347 |
+
650,
|
| 1348 |
+
678,
|
| 1349 |
+
665
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 8
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "text",
|
| 1355 |
+
"text": "Quantization error and recall are evaluated and placed in Table 4. We report the best value they ever met during the training procedure. Specifically, when regularization is removed, it seems that the network is trapped in local-optima and the performance drops. Meanwhile, although return normalization and value correction give us only subtle improvements, we find they help the network to converge quickly. The extra refinement gives us lower quantization error and higher recall, specially when we want to perform fast training before the network is converged. ",
|
| 1356 |
+
"bbox": [
|
| 1357 |
+
173,
|
| 1358 |
+
671,
|
| 1359 |
+
825,
|
| 1360 |
+
755
|
| 1361 |
+
],
|
| 1362 |
+
"page_idx": 8
|
| 1363 |
+
},
|
| 1364 |
+
{
|
| 1365 |
+
"type": "text",
|
| 1366 |
+
"text": "43 6 Conclusion and Future Work ",
|
| 1367 |
+
"text_level": 1,
|
| 1368 |
+
"bbox": [
|
| 1369 |
+
153,
|
| 1370 |
+
773,
|
| 1371 |
+
449,
|
| 1372 |
+
790
|
| 1373 |
+
],
|
| 1374 |
+
"page_idx": 8
|
| 1375 |
+
},
|
| 1376 |
+
{
|
| 1377 |
+
"type": "text",
|
| 1378 |
+
"text": "In this paper, we first review previous works of constrained MCQs, and investigate solutions to unconstrained ones. Since finding the global-optima of MCQ is NP-hard, researchers apply constraints to find near-optimal solutions or employ heuristic algorithms that are still time-consuming. This paper takes the first attempt to find a deep solution to MCQ. The proposed IndepNet is designed to be simple enough to encode vectors extremely fast. Furthermore, our network shows state-of-the-art performance in retrieval and reconstruction tasks. Our method is slow to converge in a large dataset, which hinders our performance. So, our future work will focus on training speedup. ",
|
| 1379 |
+
"bbox": [
|
| 1380 |
+
173,
|
| 1381 |
+
804,
|
| 1382 |
+
825,
|
| 1383 |
+
902
|
| 1384 |
+
],
|
| 1385 |
+
"page_idx": 8
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"type": "text",
|
| 1389 |
+
"text": "351 References ",
|
| 1390 |
+
"text_level": 1,
|
| 1391 |
+
"bbox": [
|
| 1392 |
+
143,
|
| 1393 |
+
89,
|
| 1394 |
+
267,
|
| 1395 |
+
106
|
| 1396 |
+
],
|
| 1397 |
+
"page_idx": 9
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"type": "text",
|
| 1401 |
+
"text": "353 Demmel, J., Bischof, C. H., and Sorensen, D. C. (1990). LAPACK: a portable linear algebra library for \n354 high-performance computers. In SC, pages 2–11. \n355 [2] Babenko, A. and Lempitsky, V. (2014). Additive quantization for extreme vector compression. In CVPR, \n356 pages 931–938. \n357 [3] Babenko, A. and Lempitsky, V. (2015). Tree quantization for large-scale similarity search and classification. \n358 In CVPR, pages 4240–4248. \n359 [4] Chen, Y., Guan, T., and Wang, C. (2010). Approximate nearest neighbor search by residual vector \n360 quantization. Sensors, 10(12):11259–11273. \n361 [5] Gao, L., Zhu, X., Song, J., Zhao, Z., and Shen, H. T. (2019). Beyond product quantization: Deep progressive \n362 quantization for image retrieval. In IJCAI, pages 723–729. \n363 [6] Ge, T., He, K., Ke, Q., and Sun, J. (2013). Optimized product quantization for approximate nearest neighbor \n364 search. In CVPR, pages 2946–2953. \n365 [7] Gray, R. (1984). Vector quantization. IEEE Assp Magazine, 1(2):4–29. \n366 [8] Ilyas, A., Engstrom, L., Santurkar, S., Tsipras, D., Janoos, F., Rudolph, L., and Madry, A. (2020). A closer \n367 look at deep policy gradients. In ICLR. \n368 [9] Jégou, H., Douze, M., and Schmid, C. (2010). Product quantization for nearest neighbor search. IEEE Trans. \n369 Pattern Anal. Mach. Intell., 33(1):117–128. \n370 [10] Kalantidis, Y. and Avrithis, Y. (2014). Locally optimized product quantization for approximate nearest \n371 neighbor search. In CVPR, pages 2329–2336. \n372 [11] Klein, B. and Wolf, L. (2019). End-to-end supervised product quantization for image search and retrieval. \n373 In CVPR, pages 5041–5050. \n374 [12] Konda, V. R. and Tsitsiklis, J. N. (2000). Actor-critic algorithms. In NeurIPS, pages 1008–1014. \n375 [13] Lloyd, S. (1982). Least squares quantization in pcm. IEEE transactions on information theory, 28(2):129– \n376 137. \n377 [14] Martinez, J., Clement, J., Hoos, H. H., and Little, J. J. (2016). Revisiting additive quantization. In ECCV, \n378 pages 137–153. Springer. \n379 [15] Martinez, J., Hoos, H. H., and Little, J. J. (2014). Stacked quantizers for compositional vector compression. \n380 arXiv preprint arXiv:1411.2173. \n381 [16] Martinez, J., Zakhmi, S., Hoos, H. H., and Little, J. J. (2018). Lsq $^ { + + }$ : Lower running time and higher \n382 recall in multi-codebook quantization. In ECCV, pages 491–506. \n383 [17] Mohamed, S., Rosca, M., Figurnov, M., and Mnih, A. (2020). Monte carlo gradient estimation in machine \n384 learning. J. Mach. Learn. Res., 21:132:1–132:62. \n385 [18] Morozov, S. and Babenko, A. (2019). Unsupervised neural quantization for compressed-domain similarity \n386 search. In ICCV, pages 3036–3045. \n387 [19] Norouzi, M. and Fleet, D. J. (2013). Cartesian k-means. In CVPR, pages 3017–3024. \n388 [20] Radenovic, F., Iscen, A., Tolias, G., Avrithis, Y., and Chum, O. (2018). Revisiting oxford and paris: \n389 Large-scale image retrieval benchmarking. In CVPR, pages 5706–5715. \n390 [21] Reddi, S. J., Kale, S., and Kumar, S. (2018). On the convergence of adam and beyond. In ICLR. \n391 [22] Sablayrolles, A., Douze, M., Schmid, C., and Jégou, H. (2019). Spreading vectors for similarity search. In \n392 ICLR. \n393 [23] Schulman, J., Heess, N., Weber, T., and Abbeel, P. (2015a). Gradient estimation using stochastic computa \n394 tion graphs. In NeurIPS, pages 3528–3536. \n395 [24] Schulman, J., Levine, S., Abbeel, P., Jordan, M. I., and Moritz, P. (2015b). Trust region policy optimization. \n396 In ICML, pages 1889–1897. \n397 [25] Schulman, J., Moritz, P., Levine, S., Jordan, M. I., and Abbeel, P. (2016). High-dimensional continuous \n398 control using generalized advantage estimation. In ICLR. \n399 [26] Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. (2017). Proximal policy optimization \n400 algorithms. arXiv preprint arXiv:1707.06347. \n401 [27] Song, J., Lang, R., Zhu, X., Xu, X., Gao, L., and Shen, H. T. (2020). 3d self-attention for unsupervised \n402 video quantization. In ACM SIGIR, pages 1061–1070. \n403 [28] Song, J., Zhu, X., Gao, L., Xu, X.-S., Liu, W., and Shen, H. T. (2019). Deep recurrent quantization for \n404 generating sequential binary codes. In IJCAI, pages 912–918. \n405 [29] Torralba, A., Fergus, R., and Weiss, Y. (2008). Small codes and large image databases for recognition. In \n406 CVPR, pages 1–8. IEEE. \n407 [30] Wang, J., Wang, J., Song, J., Xu, X., Shen, H. T., and Li, S. (2015). Optimized cartesian k-means. IEEE \n408 Transactions on Knowledge and Data Engineering, 27(1):180–192. \n409 [31] Weyand, T., Araujo, A., Cao, B., and Sim, J. (2020). Google landmarks dataset v2 - A large-scale \n410 benchmark for instance-level recognition and retrieval. In CVPR, pages 2572–2581. \n411 [32] Williams, R. J. (1992). Simple statistical gradient-following algorithms for connectionist reinforcement \n412 learning. Machine learning, 8(3-4):229–256. \n413 [33] Yu, T., Yuan, J., Fang, C., and Jin, H. (2018). Product quantization network for fast image retrieval. In \n414 ECCV, pages 186–201. \n415 [34] Zhang, T., Du, C., and Wang, J. (2014). Composite quantization for approximate nearest neighbor search. \n416 In ICML, volume 2, page 3. ",
|
| 1402 |
+
"bbox": [
|
| 1403 |
+
137,
|
| 1404 |
+
122,
|
| 1405 |
+
828,
|
| 1406 |
+
912
|
| 1407 |
+
],
|
| 1408 |
+
"page_idx": 9
|
| 1409 |
+
},
|
| 1410 |
+
{
|
| 1411 |
+
"type": "text",
|
| 1412 |
+
"text": "",
|
| 1413 |
+
"bbox": [
|
| 1414 |
+
138,
|
| 1415 |
+
92,
|
| 1416 |
+
826,
|
| 1417 |
+
268
|
| 1418 |
+
],
|
| 1419 |
+
"page_idx": 10
|
| 1420 |
+
},
|
| 1421 |
+
{
|
| 1422 |
+
"type": "text",
|
| 1423 |
+
"text": "417 Checklist ",
|
| 1424 |
+
"text_level": 1,
|
| 1425 |
+
"bbox": [
|
| 1426 |
+
142,
|
| 1427 |
+
292,
|
| 1428 |
+
254,
|
| 1429 |
+
309
|
| 1430 |
+
],
|
| 1431 |
+
"page_idx": 10
|
| 1432 |
+
},
|
| 1433 |
+
{
|
| 1434 |
+
"type": "text",
|
| 1435 |
+
"text": "418 The checklist follows the references. Please read the checklist guidelines carefully for information on \n419 how to answer these questions. For each question, change the default [TODO] to [Yes] , [No] , or \n420 [N/A] . You are strongly encouraged to include a justification to your answer, either by referencing \n421 the appropriate section of your paper or providing a brief inline description. For example: ",
|
| 1436 |
+
"bbox": [
|
| 1437 |
+
142,
|
| 1438 |
+
324,
|
| 1439 |
+
825,
|
| 1440 |
+
380
|
| 1441 |
+
],
|
| 1442 |
+
"page_idx": 10
|
| 1443 |
+
},
|
| 1444 |
+
{
|
| 1445 |
+
"type": "text",
|
| 1446 |
+
"text": "• Did you include the license to the code and datasets? [Yes] See Section ??. • Did you include the license to the code and datasets? [No] The code and the data are proprietary. • Did you include the license to the code and datasets? [N/A] ",
|
| 1447 |
+
"bbox": [
|
| 1448 |
+
169,
|
| 1449 |
+
385,
|
| 1450 |
+
823,
|
| 1451 |
+
438
|
| 1452 |
+
],
|
| 1453 |
+
"page_idx": 10
|
| 1454 |
+
},
|
| 1455 |
+
{
|
| 1456 |
+
"type": "text",
|
| 1457 |
+
"text": "425 Please do not modify the questions and only use the provided macros for your answers. Note that the \n426 Checklist section does not count towards the page limit. In your paper, please delete this instructions \n427 block and only keep the Checklist section heading above along with the questions/answers below. ",
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
143,
|
| 1460 |
+
443,
|
| 1461 |
+
825,
|
| 1462 |
+
486
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 10
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "1. For all authors... ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
173,
|
| 1471 |
+
493,
|
| 1472 |
+
302,
|
| 1473 |
+
507
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 10
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "text",
|
| 1479 |
+
"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 Section 6. \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? [Yes] ",
|
| 1480 |
+
"bbox": [
|
| 1481 |
+
197,
|
| 1482 |
+
508,
|
| 1483 |
+
826,
|
| 1484 |
+
599
|
| 1485 |
+
],
|
| 1486 |
+
"page_idx": 10
|
| 1487 |
+
},
|
| 1488 |
+
{
|
| 1489 |
+
"type": "text",
|
| 1490 |
+
"text": "2. If you are including theoretical results... ",
|
| 1491 |
+
"bbox": [
|
| 1492 |
+
166,
|
| 1493 |
+
603,
|
| 1494 |
+
455,
|
| 1495 |
+
617
|
| 1496 |
+
],
|
| 1497 |
+
"page_idx": 10
|
| 1498 |
+
},
|
| 1499 |
+
{
|
| 1500 |
+
"type": "text",
|
| 1501 |
+
"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] ",
|
| 1502 |
+
"bbox": [
|
| 1503 |
+
197,
|
| 1504 |
+
619,
|
| 1505 |
+
699,
|
| 1506 |
+
650
|
| 1507 |
+
],
|
| 1508 |
+
"page_idx": 10
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"type": "text",
|
| 1512 |
+
"text": "3. If you ran experiments... ",
|
| 1513 |
+
"bbox": [
|
| 1514 |
+
176,
|
| 1515 |
+
655,
|
| 1516 |
+
354,
|
| 1517 |
+
669
|
| 1518 |
+
],
|
| 1519 |
+
"page_idx": 10
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"type": "text",
|
| 1523 |
+
"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] See https://github.com/ DeepMCQ/DeepQ. \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] See Section 5 and supplementary materials. \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [No] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] See Section 5. ",
|
| 1524 |
+
"bbox": [
|
| 1525 |
+
197,
|
| 1526 |
+
670,
|
| 1527 |
+
826,
|
| 1528 |
+
801
|
| 1529 |
+
],
|
| 1530 |
+
"page_idx": 10
|
| 1531 |
+
},
|
| 1532 |
+
{
|
| 1533 |
+
"type": "text",
|
| 1534 |
+
"text": "48 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
|
| 1535 |
+
"bbox": [
|
| 1536 |
+
155,
|
| 1537 |
+
805,
|
| 1538 |
+
784,
|
| 1539 |
+
820
|
| 1540 |
+
],
|
| 1541 |
+
"page_idx": 10
|
| 1542 |
+
},
|
| 1543 |
+
{
|
| 1544 |
+
"type": "text",
|
| 1545 |
+
"text": "(a) If your work uses existing assets, did you cite the creators? [Yes] See Section 5. \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? [Yes] See https://github.com/DeepMCQ/DeepQ. \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] ",
|
| 1546 |
+
"bbox": [
|
| 1547 |
+
197,
|
| 1548 |
+
821,
|
| 1549 |
+
825,
|
| 1550 |
+
912
|
| 1551 |
+
],
|
| 1552 |
+
"page_idx": 10
|
| 1553 |
+
},
|
| 1554 |
+
{
|
| 1555 |
+
"type": "text",
|
| 1556 |
+
"text": "(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
|
| 1557 |
+
"bbox": [
|
| 1558 |
+
187,
|
| 1559 |
+
90,
|
| 1560 |
+
825,
|
| 1561 |
+
121
|
| 1562 |
+
],
|
| 1563 |
+
"page_idx": 11
|
| 1564 |
+
},
|
| 1565 |
+
{
|
| 1566 |
+
"type": "text",
|
| 1567 |
+
"text": "5. If you used crowdsourcing or conducted research with human subjects... ",
|
| 1568 |
+
"bbox": [
|
| 1569 |
+
169,
|
| 1570 |
+
123,
|
| 1571 |
+
669,
|
| 1572 |
+
138
|
| 1573 |
+
],
|
| 1574 |
+
"page_idx": 11
|
| 1575 |
+
},
|
| 1576 |
+
{
|
| 1577 |
+
"type": "text",
|
| 1578 |
+
"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] ",
|
| 1579 |
+
"bbox": [
|
| 1580 |
+
197,
|
| 1581 |
+
140,
|
| 1582 |
+
826,
|
| 1583 |
+
229
|
| 1584 |
+
],
|
| 1585 |
+
"page_idx": 11
|
| 1586 |
+
}
|
| 1587 |
+
]
|
parse/train/8jFiomKUnaT/8jFiomKUnaT_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/8jFiomKUnaT/8jFiomKUnaT_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1gdkxHFDH/B1gdkxHFDH.md
ADDED
|
@@ -0,0 +1,628 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# TRAINING INDIVIDUALLY FAIR ML MODELS WITH SENSITIVE SUBSPACE ROBUSTNESS
|
| 2 |
+
|
| 3 |
+
Mikhail Yurochkin
|
| 4 |
+
IBM Research
|
| 5 |
+
MIT-IBM Watson AI Lab
|
| 6 |
+
mikhail.yurochkin@ibm.com
|
| 7 |
+
Amanda Bower†, Yuekai Sun‡
|
| 8 |
+
Department of Mathematics†
|
| 9 |
+
Department of Statistics‡
|
| 10 |
+
University of Michigan
|
| 11 |
+
{amandarg,yuekai}@umich.edu
|
| 12 |
+
|
| 13 |
+
# ABSTRACT
|
| 14 |
+
|
| 15 |
+
We consider training machine learning models that are fair in the sense that their performance is invariant under certain sensitive perturbations to the inputs. For example, the performance of a resume screening system should be invariant under changes to the gender and/or ethnicity of the applicant. We formalize this notion of algorithmic fairness as a variant of individual fairness and develop a distributionally robust optimization approach to enforce it during training. We also demonstrate the effectiveness of the approach on two ML tasks that are susceptible to gender and racial biases.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
Machine learning (ML) models are gradually replacing humans in high-stakes decision making roles. For example, in Philadelphia, an ML model classifies probationers as high or low-risk (Metz & Satariano, 2020). In North Carolina, “analytics” is used to report suspicious activity and fraud by Medicaid patients and providers (Metz & Satariano, 2020). Although ML models appear to eliminate the biases of a human decision maker, they may perpetuate or even exacerbate biases in the training data (Barocas & Selbst, 2016). Such biases are especially objectionable when it adversely affects underprivileged groups of users (Barocas & Selbst, 2016).
|
| 20 |
+
|
| 21 |
+
In response, the scientific community has proposed many mathematical definitions of algorithmic fairness and approaches to ensure ML models satisfy the definitions. Unfortunately, this abundance of definitions, many of which are incompatible (Kleinberg et al., 2016; Chouldechova, 2017), has hindered the adoption of this work by practitioners. There are two types of formal definitions of algorithmic fairness: group fairness and individual fairness. Most recent work on algorithmic fairness considers group fairness because it is more amenable to statistical analysis (Ritov et al., 2017). Despite their prevalence, group notions of algorithmic fairness suffer from certain shortcomings. One of the most troubling is there are many scenarios in which an algorithm satisfies group fairness, but its output is blatantly unfair from the point of view of individual users (Dwork et al., 2011).
|
| 22 |
+
|
| 23 |
+
In this paper, we consider individual fairness instead of group fairness. Intuitively, an individually fair ML model treats similar users similarly. Formally, an ML model is a map $h : \mathcal { X } \to \mathcal { Y }$ , where $\mathcal { X }$ and $\mathcal { V }$ are the input and output spaces. The leading notion of individual fairness is metric fairness (Dwork et al., 2011); it requires
|
| 24 |
+
|
| 25 |
+
$$
|
| 26 |
+
d _ { y } ( h ( x _ { 1 } ) , h ( x _ { 2 } ) ) \leq L d _ { x } ( x _ { 1 } , x _ { 2 } ) { \mathrm { ~ f o r ~ a l l ~ } } x _ { 1 } , x _ { 2 } \in \mathcal { X } ,
|
| 27 |
+
$$
|
| 28 |
+
|
| 29 |
+
where $d _ { x }$ and $d _ { y }$ are metrics on the input and output spaces and $L \ge 0$ is a Lipschitz constant. The fair metric $d _ { x }$ encodes our intuition of which samples should be treated similarly by the ML model. We emphasize that $d _ { x } ( x _ { 1 } , x _ { 2 } )$ being small does not imply $x _ { 1 }$ and $x _ { 2 }$ are similar in all respects. Even if $d _ { x } ( x _ { 1 } , x _ { 2 } )$ is small, $x _ { 1 }$ and $x _ { 2 }$ may differ in certain problematic ways, e.g. in their protected/sensitive attributes. This is why we refer to pairs of samples $x _ { 1 }$ and $x _ { 2 }$ such that $d _ { x } ( x _ { 1 } , x _ { 2 } )$ is small as comparable instead of similar.
|
| 30 |
+
|
| 31 |
+
Despite its benefits, individual fairness was dismissed as impractical because there is no widely accepted fair metric for many ML tasks. Fortunately, there is a line of recent work on learning the fair metric from data (Ilvento, 2019; Wang et al., 2019). In this paper, we consider two data-driven choices of the fair metric: one for problems in which the sensitive attribute is reliably observed, and another for problems in which the sensitive attribute is unobserved (see Appendix B).
|
| 32 |
+
|
| 33 |
+
The rest of this paper is organized as follows. In Section 2, we cast individual fairness as a form of robustness: robustness to certain sensitive perturbations to the inputs of an ML model. This allows us to leverage recent advances in adversarial ML to train individually fair ML models. More concretely, we develop an approach to audit ML models for violations of individual fairness that is similar to adversarial attacks (Goodfellow et al., 2014) and an approach to train ML models that passes such audits (akin to adversarial training (Madry et al., 2017)). We justify the approach theoretically (see Section 3) and empirically (see Section 4).
|
| 34 |
+
|
| 35 |
+
# 2 FAIRNESS THROUGH (DISTRIBUTIONAL) ROBUSTNESS
|
| 36 |
+
|
| 37 |
+
To motivate our approach, imagine an auditor investigating an ML model for unfairness. The auditor collects a set of audit data and compares the output of the ML model on comparable samples in the audit data. For example, to investigate whether a resume screening system is fair, the auditor may collect a stack of resumes and change the names on the resumes of Caucasian applicants to names more common among the African-American population. If the system performs worse on the edited resumes, then the auditor may conclude the model treats African-American applicants unfairly. Such investigations are known as correspondence studies, and a prominent example is Bertrand & Mullainathan’s celebrated investigation of racial discrimination in the labor market. In a correspondence study, the investigator looks for inputs that are comparable to the training examples (the edited resumes in the resume screening example) on which the ML model performs poorly. In the rest of this section, we formulate an optimization problem to find such inputs.
|
| 38 |
+
|
| 39 |
+
# 2.1 FAIR WASSERSTEIN DISTANCES
|
| 40 |
+
|
| 41 |
+
Recall $\mathcal { X }$ and $\mathcal { V }$ are the spaces of inputs and outputs. To keep things simple, we assume that the ML task at hand is a classification task, so $\mathcal { V }$ is discrete. We also assume that we have a fair metric $d _ { x }$ of the form
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
d _ { x } ( x _ { 1 } , x _ { 2 } ) ^ { 2 } \triangleq \langle x _ { 1 } - x _ { 2 } , \Sigma ( x _ { 1 } - x _ { 2 } ) \rangle ^ { \frac { 1 } { 2 } } ,
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
where $\boldsymbol { \Sigma } \in \mathbf { S } _ { \neq } ^ { d \times d }$ . For example, suppose we are given a set of $K$ “sensitive” directions that we wish the metric to ignore; i.e. $d ( x _ { 1 } , x _ { 2 } ) \ll 1$ for any $x _ { 1 }$ and $x _ { 2 }$ such that $x _ { 1 } - x _ { 2 }$ falls in the span of the sensitive directions. These directions may be provided by a domain expert or learned from data (see Section 4 and Appendix B). In this case, we may choose $\Sigma$ as the orthogonal complement projector of the span of the sensitive directions. We equip $\mathcal { X }$ with the fair metric and ${ \mathcal { Z } } \triangleq \chi \times \qquad $ with
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
d _ { z } ( ( x _ { 1 } , y _ { 1 } ) , ( x _ { 2 } , y _ { 2 } ) ) \triangleq d _ { x } ( x _ { 1 } , x _ { 2 } ) + \infty \cdot { \bf 1 } \{ y _ { 1 } \neq y _ { 2 } \} .
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
We consider $d _ { z } ^ { 2 }$ as a transport cost function on $\mathcal { Z }$ . This cost function encodes our intuition of which samples are comparable for the ML task at hand. We equip the space of probability distributions on $\mathcal { Z }$ with the fair Wasserstein distance
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\begin{array} { r } { W ( P , Q ) = \operatorname* { i n f } _ { \Pi \in \mathcal { C } ( P , Q ) } \int _ { \mathcal { Z } \times \mathcal { Z } } c ( z _ { 1 } , z _ { 2 } ) d \Pi ( z _ { 1 } , z _ { 2 } ) , } \end{array}
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
where ${ \mathcal { C } } ( P , Q )$ is the set of couplings between $P$ and $Q$ . The fair Wasserstein distance inherits our intuition of which samples are comparable through the cost function; i.e. the fair Wasserstein distance between two probability distributions is small if they are supported on comparable areas of the sample space.
|
| 60 |
+
|
| 61 |
+
# 2.2 AUDITING ML MODELS FOR ALGORITHMIC BIAS
|
| 62 |
+
|
| 63 |
+
To investigate whether an ML model performs disparately on comparable samples, the auditor collects a set of audit data $\{ ( x _ { i } , y _ { i } ) \} _ { i = 1 } ^ { n }$ and solves the optimization problem
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\begin{array} { r } { \operatorname* { m a x } _ { P : W ( P , P _ { n } ) \leq \epsilon } \int _ { \mathcal { Z } } \ell ( z , h ) d P ( z ) , } \end{array}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
where $\ell : \mathcal { Z } \times \mathcal { H } \mathbf { R } _ { + }$ is a loss function, $h$ is the ML model, $P _ { n }$ is the empirical distribution of the audit data, and $\epsilon > 0$ is a small tolerance parameter. We interpret $\epsilon$ as a moving budget that the auditor may expend to discover discrepancies in the performance of the ML model. This budget forces the auditor to avoid moving samples to incomparable areas of the sample space. We emphasize that equation 2.1 detects aggregate violations of individual fairness. In other words, although the violations that the auditor’s problem detects are individual in nature, the auditor’s problem is only able to detect aggregate violations. We summarize the implicit notion of fairness in equation 2.1 in a definition.
|
| 70 |
+
|
| 71 |
+
Definition 2.1 (distributionally robustly fair (DRF)). An ML model $h \ : \ \mathcal { X } \ \to \ \mathcal { Y }$ is $( \epsilon , \delta )$ - distributionally robustly fair (DRF) WRT the fair metric $d _ { x }$ iff
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\begin{array} { r } { \operatorname* { m a x } _ { P : W ( P , P _ { n } ) \leq \epsilon } \int _ { \mathcal { Z } } \ell ( z , h ) d P ( z ) \leq \delta . } \end{array}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
Although equation 2.1 is an infinite-dimensional optimization problem, it is possible to solve it exactly by appealing to duality. Blanchet & Murthy showed that the dual of equation 2.1 is
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\begin{array} { r l r } & { } & { \operatorname* { s u p } _ { P : W ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , h ) \big ] = \operatorname* { i n f } _ { \lambda \geq 0 } \{ \lambda \epsilon + \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda } ^ { c } ( Z , h ) \big ] \} , } \\ & { } & { \ell _ { \lambda } ^ { c } ( ( x _ { i } , y _ { i } ) , h ) \triangleq \operatorname* { s u p } _ { x \in \mathcal { X } } \ell ( ( x , y _ { i } ) , \theta ) - \lambda d _ { x } ( x , x _ { i } ) . } \end{array}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
This is a univariate optimization problem, and it is amenable to stochastic optimization. We describe a stochastic approximation algorithm for equation 2.3 in Algorithm 1. Inspecting the algorithm, we see that it is similar to the PGD algorithm for adversarial attack.
|
| 84 |
+
|
| 85 |
+
# Algorithm 1 stochastic gradient method for equation 2.3
|
| 86 |
+
|
| 87 |
+
Require: starting point $\hat { \lambda } _ { 1 }$ , step sizes $\alpha _ { t } > 0$
|
| 88 |
+
|
| 89 |
+
1: repeat
|
| 90 |
+
2: draw mini-batch $( x _ { t _ { 1 } } , y _ { t _ { 1 } } ) , \dots , ( x _ { t _ { B } } , y _ { t _ { B } } ) \sim P _ { n }$
|
| 91 |
+
3: $\begin{array} { r } { x _ { t _ { b } } ^ { * } \gets \arg \operatorname* { m a x } _ { x \in \mathcal { X } } \ell ( ( x , y _ { t _ { b } } ) , h ) - \lambda d _ { x } ( x _ { t _ { b } } , x ) , } \end{array}$ b ∈ [B]
|
| 92 |
+
4: $\begin{array} { r } { \hat { \lambda } _ { t + 1 } \gets \operatorname* { m a x } \{ 0 , \hat { \lambda } _ { t } - \alpha _ { t } ( \epsilon - \frac { 1 } { B } \sum _ { b = 1 } ^ { B } d _ { x } ( x _ { t _ { b } } , x _ { t _ { b } } ^ { * } ) ) \} } \end{array}$
|
| 93 |
+
5: until converged
|
| 94 |
+
|
| 95 |
+
It is known that the optimal point of equation 2.1 is the discrete measure $\textstyle { \frac { 1 } { n } } \sum _ { i = 1 } ^ { n } \delta _ { ( T _ { \lambda } ( x _ { i } ) , y _ { i } ) }$ , where $T _ { \lambda } : \mathcal { X } \to \mathcal { X }$ is the unfair map
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
\begin{array} { r } { T _ { \lambda } ( x _ { i } ) \gets \arg \operatorname* { m a x } _ { x \in \mathcal { X } } \ell ( ( x , y _ { i } ) , h ) - \lambda d _ { x } ^ { 2 } ( x , x _ { i } ) . } \end{array}
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
We call $T _ { \lambda }$ an unfair map because it reveals unfairness in the ML model by mapping samples in the audit data to comparable areas of the sample space that the system performs poorly on. We note that $T _ { \lambda }$ may map samples in the audit data to areas of the sample space that are not represented in the audit data, thereby revealing disparate treatment in the ML model not visible in the audit data alone. We emphasize that $T _ { \lambda }$ more than reveals disparate treatment in the ML model; it localizes the unfairness to certain areas of the sample space.
|
| 102 |
+
|
| 103 |
+
We present a simple example to illustrating fairness through robustness (a similar example appeared in Hashimoto et al. (2018)). Consider the binary classification dataset shown in Figure 1. There are two subgroups of observations in this dataset, and (sub)group membership is the protected attribute (e.g. the smaller group contains observations from a minority subgroup). In Figure 1a we see the decision heatmap of a vanilla logistic regression, which performs poorly on the blue minority subgroup. The two subgroups are separated in the horizontal direction, so the horizontal direction is the sensitive direction. Figure 1b shows that such classifier is unfair with respect to the corresponding fair metric, i.e. the unfair map equation 2.4 leads to significant loss increase by transporting mass along the horizontal direction with very minor change of the vertical coordinate.
|
| 104 |
+
|
| 105 |
+
Comparison with metric fairness Before moving on to training individually fair ML models, we compare DRF with metric fairness equation 1.1. Although we concentrate on the differences between the two definitions here, they are more similar than different: both formalize the intuition that the outputs of a fair ML model should perform similarly on comparable inputs. That said, there are two main differences between the two definitions. First, instead of requiring the output of the ML model to be similar on all inputs comparable to a training example, we require the output to be similar to the training label. Thus DRF not only enforces similarity of the output on comparable inputs, but also accuracy of the ML model on the training data. Second, DRF considers differences between datasets instead of samples by replacing the fair metric on inputs with the fair Wasserstein distance induced by the fair metric. The main benefits of this modifications are (i) it is possible to optimize equation 2.1 efficiently, (ii) we can show this modified notion of individual fairness generalizes.
|
| 106 |
+
|
| 107 |
+

|
| 108 |
+
Figure 1: Figure (a) depicts a binary classification dataset in which the minority group shown on the right of the plot is underrepresented. This tilts the logistic regression decision boundary in favor of the majority group on the left. Figure (b) shows the unfair map of the logistic regression decision boundary. It maps samples in the minority group towards the majority group. Figure (c) shows an algorithmically fair classifier that treats the majority and minority groups identically.
|
| 109 |
+
|
| 110 |
+
# 2.3 FAIR TRAINING WITH SENSITIVE SUBSPACE ROBUSTNESS
|
| 111 |
+
|
| 112 |
+
We cast the fair training problem as training supervised learning systems that are robust to sensitive perturbations. We propose solving the minimax problem
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\operatorname* { i n f } _ { h \in \mathcal { H } } \operatorname* { s u p } _ { P : W ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , h ) \big ] = \operatorname* { i n f } _ { h \in \mathcal { H } } \operatorname* { i n f } _ { \lambda \geq 0 } \lambda \epsilon + \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda } ^ { c } ( Z , h ) \big ] ,
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
where $\ell _ { \lambda } ^ { c }$ is defined in equation 2.3. This is an instance of a distributionally robust optimization (DRO) problem, and it inherits some of the statistical properties of DRO. To see why equation 2.5 encourages individual fairness, recall the loss function is a measure of the performance of the ML model. By assessing the performance of an ML model by its worse-case performance on hypothetical populations of users with perturbed sensitive attributes, minimizing equation 2.5 ensures the system performs well on all such populations. In our toy example, minimizing equation 2.5 implies learning a classifier that is insensitive to perturbations along the horizontal (i.e. sensitive) direction. In Figure 1c this is achieved by the algorithm we describe next.
|
| 119 |
+
|
| 120 |
+
To keep things simple, we assume the hypothesis class is parametrized by $\theta \in \Theta \subset \mathbf { R } ^ { d }$ and replace the minimization with respect to $\mathcal { H }$ by minimization with respect to $\theta$ . In light of the similarities between the DRO objective function and adversarial training, we borrow algorithms for adversarial training (Madry et al., 2017) to solve equation 2.5 (see Algorithm 2).
|
| 121 |
+
|
| 122 |
+
# Algorithm 2 Sensitive Subspace Robustness (SenSR)
|
| 123 |
+
|
| 124 |
+
Require: starting point $\widehat { \theta } _ { 1 }$ , step sizes $\alpha _ { t } , \beta _ { t } > 0$
|
| 125 |
+
|
| 126 |
+
1: repeat
|
| 127 |
+
2: sample mini-batch $( x _ { 1 } , y _ { 1 } ) , \dotsc , ( x _ { B } , y _ { B } ) \sim P _ { n }$
|
| 128 |
+
3: $\begin{array} { r } { x _ { t _ { b } } ^ { * } \gets \arg \operatorname* { m a x } _ { x \in \mathcal { X } } \ell ( ( x , y _ { t _ { b } } ) , \theta ) - \hat { \lambda } _ { t } d _ { x } ( x _ { t _ { b } } , x ) , b } \end{array}$ ∈ [B]
|
| 129 |
+
4: $\begin{array} { r } { \hat { \lambda } _ { t + 1 } \gets \operatorname* { m a x } \{ 0 , \hat { \lambda } _ { t } - \alpha _ { t } ( \epsilon - \frac { 1 } { B } \sum _ { b = 1 } ^ { B } d _ { x } ( x _ { t _ { b } } , x _ { t _ { b } } ^ { * } ) ) \} } \end{array}$
|
| 130 |
+
5: $\begin{array} { r } { \hat { \theta } _ { t + 1 } \gets \hat { \theta } _ { t } - \frac { \beta _ { t } } { B } \sum _ { b = 1 } ^ { B } \partial _ { \theta } \ell ( ( x _ { t _ { b } } ^ { * } , y _ { t _ { b } } ) , \hat { \theta } _ { t } ) } \end{array}$
|
| 131 |
+
6: until converged
|
| 132 |
+
|
| 133 |
+
Related work Our approach to fair training is an instance of distributionally robust optimization (DRO). In DRO, the usual sample-average approximation of the expected cost function is replaced by $\widehat { L } _ { \mathrm { D R O } } ( \theta ) \triangleq \operatorname* { s u p } _ { P \in { \mathcal U } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ]$ , where $\mathcal { U }$ is a (data dependent) uncertainty set of probability distributions. The uncertainty set may be defined by moment or support constraints (Chen et al., 2007; Delage & Ye, 2010; Goh & Sim, 2010), $f$ -divergences (Ben-Tal et al., 2012; Lam & Zhou,
|
| 134 |
+
|
| 135 |
+
2015; Miyato et al., 2015; Namkoong & Duchi, 2016), and Wasserstein distances (ShafieezadehAbadeh et al., 2015; Blanchet et al., 2016; Esfahani & Kuhn, 2015; Lee & Raginsky, 2017; Sinha et al., 2017). Most similar to our work is Hashimoto et al. (2018): they show that DRO with a $\chi ^ { 2 }$ -neighborhood of the training data prevents representation disparity, i.e. minority groups tend to suffer higher losses because the training algorithm ignores them. One advantage of picking a Wasserstein uncertainty set is the set depends on the geometry of the sample space. This allows us to encode the correct notion of individual fairness for the ML task at hand in the Wasserstein distance.
|
| 136 |
+
|
| 137 |
+
Our approach to fair training is also similar to adversarial training (Madry et al., 2017), which hardens ML models against adversarial attacks by minimizing adversarial losses of the form ${ \mathrm { s u p } } _ { u \in \mathcal { U } } \ell ( z + u , \theta )$ , where $\mathcal { U }$ is a set of allowable perturbations (Szegedy et al., 2013; Goodfellow et al., 2014; Papernot et al., 2015; Carlini & Wagner, 2016; Kurakin et al., 2016). Typically, $\mathcal { U }$ is a scaled $\ell _ { p }$ -norm ball: $\mathcal { U } = \{ u : \| u \| _ { p } \leq \epsilon \}$ . Most similar to our work is Sinha et al. (2017): they consider an uncertainty set that is a Wasserstein neighborhood of the training data.
|
| 138 |
+
|
| 139 |
+
There are a few papers that consider adversarial approaches to algorithmic fairness. Zhang et al. (2018) propose an adversarial learning method that enforces equalized odds in which the adversary learns to predict the protected attribute from the output of the classifier. Edwards & Storkey (2015) propose an adversarial method for learning classifiers that satisfy demographic parity. Madras et al. (2018) generalize their method to learn classifiers that satisfy other (group) notions of algorithmic fairness. Garg et al. (2019) propose to use adversarial logit pairing (Kannan et al., 2018) to achieve fairness in text classification using a pre-specified list of counterfactual tokens.
|
| 140 |
+
|
| 141 |
+
# 3 SENSR TRAINS INDIVIDUALLY FAIR ML MODELS
|
| 142 |
+
|
| 143 |
+
One of the main benefits of our approach is it provably trains individually fair ML models. Further, it is possible for the learner to certify that an ML model is individually fair a posteriori. As we shall see, both are consequences of uniform convergence results for the DR loss class. More concretely, we study how quickly the uniform convergence error
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\begin{array} { r } { \delta _ { n } \triangleq \operatorname* { s u p } _ { \theta \in \Theta } \left\{ \left| \operatorname* { s u p } _ { P : W _ { * } ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \left[ \ell ( Z , \theta ) \right] - \operatorname* { s u p } _ { P : W ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \left[ \ell ( Z , \theta ) \right] \right| \right\} , } \end{array}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
where $W _ { * }$ is the Wasserstein distance on $\Delta ( \mathcal { Z } )$ with a transportation cost function $c _ { * }$ that is possibly different from $c$ , vanishes. We permit some discrepancy in the (transportation) cost function to study the effect of a data-driven choice of $c$ . In the rest of this section, we regard $c _ { * }$ as the exact cost function and $c$ as a cost function learned from human supervision. We start by stating our assumptions on the ML task:
|
| 150 |
+
|
| 151 |
+
(A1) the feature space $\mathcal { X }$ is bounded: $D \triangleq \operatorname* { m a x } \{ \mathsf { d i a m } ( \boldsymbol { \mathcal { X } } ) , \mathsf { d i a m } _ { * } ( \boldsymbol { \mathcal { X } } ) \} < \infty ;$
|
| 152 |
+
(A2) the functions in the loss class $\mathcal { L } = \{ \ell ( \cdot , \theta ) : \theta \in \Theta \}$ are non-negative and bounded: $0 \leq \ell ( z , \theta ) \leq M$ for all $z \in { \mathcal { Z } }$ and $\theta \in \Theta$ , and $L$ -Lipschitz with respect to $d _ { x }$ : $\begin{array} { r } { \operatorname* { s u p } _ { \theta \in \Theta } \{ \operatorname* { s u p } _ { ( x _ { 1 } , y ) , ( x _ { 2 } , y ) \in \mathbb { Z } } \vert \ell ( ( x _ { 1 } , y ) , \theta ) - \ell ( ( x _ { 2 } , y ) , \theta ) \vert \} \leq L d _ { x } ( x _ { 1 } , x _ { 2 } ) ; } \end{array}$
|
| 153 |
+
|
| 154 |
+
(A3) the discrepancy in the (transportation) cost function is uniformly bounded:
|
| 155 |
+
|
| 156 |
+
$$
|
| 157 |
+
\begin{array} { r } { \operatorname* { s u p } _ { ( x _ { 1 } , y ) , ( x _ { 2 } , y ) \in \mathcal { Z } } \left| c ( ( x _ { 1 } , y ) , ( x _ { 2 } , y ) ) - c _ { * } ( ( x _ { 1 } , y ) , ( x _ { 2 } , y ) ) \right| \le \delta _ { c } D ^ { 2 } . } \end{array}
|
| 158 |
+
$$
|
| 159 |
+
|
| 160 |
+
Assumptions A1 and A2 are standard (see (Lee & Raginsky, 2017, Assumption 1, 2, 3)) in the DRO literature. We emphasize that the constant $L$ in Assumption A2 is not the constant $L$ in the definition of metric fairness; it may be much larger. Thus most models that satisfy the conditions of the loss class are not individually fair in a meaningful sense.
|
| 161 |
+
|
| 162 |
+
Assumption A3 deserves further comment. Under A1, A3 is mild. For example, if the exact fair metric is
|
| 163 |
+
|
| 164 |
+
$$
|
| 165 |
+
d _ { x } ( x _ { 1 } , x _ { 2 } ) = ( x _ { 1 } - x _ { 2 } ) ^ { T } \Sigma _ { * } ( x _ { 1 } - x _ { 2 } ) ^ { \frac { 1 } { 2 } } ,
|
| 166 |
+
$$
|
| 167 |
+
|
| 168 |
+
then the error in the transportation cost function is at most
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
\begin{array} { r l } & { | c ( ( x _ { 1 } , y ) , ( x _ { 2 } , y ) ) - c _ { * } ( ( x _ { 1 } , y ) , ( x _ { 2 } , y ) ) | } \\ & { \quad = | ( x _ { 1 } - x _ { 2 } ) ^ { T } \Sigma ( x _ { 1 } - x _ { 2 } ) - ( x _ { 1 } - x _ { 2 } ) ^ { T } \Sigma _ { * } ( x _ { 1 } - x _ { 2 } ) | } \\ & { \quad \leq D ^ { 2 } \frac { \| \Sigma - \Sigma _ { * } \| _ { 2 } } { \lambda _ { \operatorname* { m i n } } ( \Sigma _ { * } ) } , } \end{array}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
We see that the error in the transportation cost function vanishes in the large-sample limit as long as $\Sigma$ is a consistent estimator of $\Sigma _ { * }$ .
|
| 175 |
+
|
| 176 |
+
We state the uniform convergence result in terms of the entropy integral of the loss class: ${ \mathfrak { C } } ( { \mathcal { L } } ) =$ $\begin{array} { r } { \int _ { 0 } ^ { \infty } \sqrt { \log N _ { \infty } ( \mathcal { F } , r ) } d r } \end{array}$ , where egral is $N _ { \infty } ( \mathcal { L } , r )$ as the of the $r$ -covering number of the loss class in the uniformmplexity of the loss class.
|
| 177 |
+
|
| 178 |
+
Proposition 3.1 (uniform convergence). Under Assumptions A1–A3, equation 3.1 satisfies
|
| 179 |
+
|
| 180 |
+
$$
|
| 181 |
+
\delta _ { n } \leq \frac { 4 8 \mathfrak { C } ( \mathcal { L } ) } { \sqrt { n } } + \frac { 4 8 L D ^ { 2 } } { \sqrt { n \epsilon } } + \frac { L \delta _ { c } D ^ { 2 } } { \sqrt { \epsilon } } + M ( \frac { \log \frac { 2 } { t } } { 2 n } ) ^ { \frac { 1 } { 2 } }
|
| 182 |
+
$$
|
| 183 |
+
|
| 184 |
+
with probability at least $1 - t$
|
| 185 |
+
|
| 186 |
+
We note that Proposition 3.1 is similar to the generalization error bounds by Lee & Raginsky (2017). The main novelty in Proposition 3.1 is allowing error in the transportation cost function. We see that the discrepancy in the transportation cost function may affect the rate at which the uniform convergence error vanishes: it affects the rate if $\delta _ { c }$ is $\omega _ { P } ( \frac { 1 } { \sqrt { n } } )$ .
|
| 187 |
+
|
| 188 |
+
A consequence of uniform convergence is SenSR trains individually fair classifiers (if there are such classifiers in the hypothesis class). By individually fair ML model, we mean an ML model that has a small gap
|
| 189 |
+
|
| 190 |
+
$$
|
| 191 |
+
\begin{array} { r } { \operatorname* { s u p } _ { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { * } } \big [ \ell ( Z , \theta ) \big ] , } \end{array}
|
| 192 |
+
$$
|
| 193 |
+
|
| 194 |
+
The gap is the difference between the optimal value of the auditor’s optimization problem equation 2.1 and the (non-robust) risk. A small gap implies the auditor cannot significantly increase the loss by moving samples from $P _ { * }$ to comparable samples.
|
| 195 |
+
|
| 196 |
+
Proposition 3.2. Under the assumptions $A I { - } A 3$ , as long as there is $\bar { \theta } \in \Theta$ such that
|
| 197 |
+
|
| 198 |
+
$$
|
| 199 |
+
\begin{array} { r } { \operatorname* { s u p } _ { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , \bar { \theta } ) \big ] \leq \delta ^ { * } } \end{array}
|
| 200 |
+
$$
|
| 201 |
+
|
| 202 |
+
for some $\delta ^ { * } > 0$ , $\begin{array} { r } { \widehat { \theta } \in \arg \operatorname* { m i n } _ { \theta \in \Theta } \operatorname* { s u p } _ { P : W ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \left[ \ell ( Z , h ) \right] } \end{array}$ satisfies
|
| 203 |
+
|
| 204 |
+
$$
|
| 205 |
+
\begin{array} { r } { \operatorname* { s u p } _ { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \left[ \ell ( Z , \hat { \theta } ) \right] - \mathbb { E } _ { P _ { * } } \left[ \ell ( Z , \hat { \theta } ) \right] \leq \delta ^ { * } + 2 \delta _ { n } , } \end{array}
|
| 206 |
+
$$
|
| 207 |
+
|
| 208 |
+
where $\delta _ { n }$ is the uniform convergence error equation 3.1.
|
| 209 |
+
|
| 210 |
+
Proposition 3.2 guarantees Algorithm 2 trains an individually fair ML model. More precisely, if there are models in $\mathcal { H }$ that are (i) individually fair and (ii) achieve small test error, then Algorithm 2 trains such a model. It is possible to replace equation 3.4 with other conditions, but a condition to its effect cannot be dispensed with entirely. If there are no individually fair models in $\mathcal { H }$ , then it is not possible for equation 2.5 to learn an individually fair model. If there are individually fair models in $\mathcal { H }$ , but they all perform poorly, then the goal of learning an individually fair model is futile.
|
| 211 |
+
|
| 212 |
+
Another consequence of uniform convergence is equation 3.3 is close to its empirical counterpart
|
| 213 |
+
|
| 214 |
+
$$
|
| 215 |
+
\begin{array} { r } { \operatorname* { s u p } _ { P : W ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell ( Z , \theta ) \big ] . } \end{array}
|
| 216 |
+
$$
|
| 217 |
+
|
| 218 |
+
In other words, the gap generalizes. This implies equation 3.5 is a certificate of individual fairness; i.e. it is possible for practitioners to check whether an ML model is individually fair by evaluating equation 3.5.
|
| 219 |
+
|
| 220 |
+
Proposition 3.3. Under the assumptions A1–A3, for any $\epsilon > 0$ ,
|
| 221 |
+
|
| 222 |
+
$$
|
| 223 |
+
\begin{array} { r } { \operatorname* { s u p } _ { \theta \in \Theta } \Big \{ \operatorname* { s u p } _ { P : W ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell ( Z , \theta ) \big ] - ( \operatorname* { s u p } _ { P : W ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { * } } \big [ \ell ( Z , \theta ) \big ] \Big \} = \mathbb { E } _ { P _ { * } } \big [ \ell ( Z , \theta ) \big ] . } \end{array}
|
| 224 |
+
$$
|
| 225 |
+
|
| 226 |
+
# 4 COMPUTATIONAL RESULTS
|
| 227 |
+
|
| 228 |
+
In this section, we present results from using SenSR to train individually fair ML models for two tasks: sentiment analysis and income prediction. We pick these two tasks to demonstrate the efficacy of SenSR on problems with structured (income prediction) and unstructured (sentiment analysis) inputs and in which the sensitive attribute (income prediction) is observed and unobserved (sentiment analysis). We refer to Appendix C and D for the implementation details.
|
| 229 |
+
|
| 230 |
+
Table 1: Sentiment prediction experiments over 10 restarts
|
| 231 |
+
|
| 232 |
+
<table><tr><td></td><td>Acc.,%</td><td>Race gap</td><td>Gend. gap</td><td>Cuis. gap</td></tr><tr><td>SenSR</td><td>94±1</td><td>0.30±.05</td><td>0.19±.03</td><td>0.23±.05</td></tr><tr><td>SenSR-E</td><td>93±1</td><td>0.11±.04</td><td>0.04±.03</td><td>1.11±.15</td></tr><tr><td>Baseline</td><td>95±1</td><td>7.01±.44</td><td>5.59±.37</td><td>4.10±.44</td></tr><tr><td>Project</td><td>94±1</td><td>1.00±.56</td><td>1.99±.58</td><td>1.70±.41</td></tr><tr><td>Sinha+ Bolukb.+</td><td>94±1 94±1</td><td>3.88±.26 6.85±.53</td><td>1.42±.29 4.33±.46</td><td>1.33±.18 3.44±.29</td></tr></table>
|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 2: Box-plots of sentiment scores
|
| 236 |
+
|
| 237 |
+
# 4.1 FAIR SENTIMENT PREDICTION WITH WORD EMBEDDINGS
|
| 238 |
+
|
| 239 |
+
Problem formulation We study the problem of classifying the sentiment of words using positive (e.g. ‘smart’) and negative (e.g. ‘anxiety’) words compiled by Hu & Liu (2004). We embed words using 300-dimensional GloVe (Pennington et al., 2014) and train a one layer neural network with 1000 hidden units. Such classifier achieves $9 5 \%$ test accuracy, however it entails major individual fairness violation. Consider an application of this sentiment classifier to summarizing customer reviews, tweets or news articles. Human names are typical in such texts and should not affect the sentiment score, hence we consider fair metric between any pair of names to be 0. Then sentiment score for all names should be the same to satisfy the individual fairness. To make a connection to group fairness, following the study of Caliskan et al. (2017) that reveals the biases in word embeddings, we evaluate the fairness of our sentiment classifier using male and female names typical for Caucasian and African-American ethnic groups. We emphasize that to satisfy individual fairness, the sentiment of any name should be the same.
|
| 240 |
+
|
| 241 |
+
Comparison metrics To evaluate the gap between two groups of names, $\mathcal { N } _ { 0 }$ for Caucasian (or female) and $\mathcal { N } _ { 1 }$ for African-American (or male), we report $\begin{array} { r } { \frac { 1 } { | \mathcal { N } _ { 0 } | } \sum _ { n \in \mathcal { N } _ { 0 } } ( h ( n ) _ { 1 } - h ( n ) _ { 0 } ) \ - } \end{array}$ $\begin{array} { r } { \frac { 1 } { | \mathcal { N } _ { 1 } | } \sum _ { n \in \mathcal { N } _ { 1 } } ( h ( n ) _ { 1 } - h ( n ) _ { 0 } ) } \end{array}$ , where $h ( n ) _ { k }$ is logits for class $k$ of name $n$ $k = 1$ is the positive class). We use list of names provided in Caliskan et al. (2017), which consists of 49 Caucasian and 45 African-American names, among those 48 are female and 46 are male. The gap between African-American and Caucasian names is reported as Race gap, while the gap between male and female names is reported as Gend. gap in Table 1. As in Speer (2017), we also compare sentiment difference of two sentences: “Let’s go get Italian food” and “Let’s go get Mexican food”, i.e. cuisine gap (abbreviated Cuis. gap in Table 1), as a test of generalization beyond names. To embed these sentences we average their word embeddings.
|
| 242 |
+
|
| 243 |
+
Sensitive subspace We consider embeddings of 94 names that we use for evaluation as sensitive directions, which may be regarded as utilizing the expert knowledge, i.e. these names form a list of words that an expert believes should be treated equally. Fair metric is then defined using an orthogonal complement projector of the span of sensitive directions as we discussed in Section 2.1. When expert knowledge is not available, or we wish to achieve general fairness for names, we utilize a side dataset of popular baby names in New York City.1 The dataset has 11k names, however only 32 overlap with the list of names used for evaluation. Embeddings of these names define a group of comparable samples that we use to learn sensitive directions with SVD (see Appendix B.2 and Algorithm 3 for details). We take top 50 singular vectors to form the sensitive subspace. It is worth noting that, unlike many existing approaches in the fairness literature, we do not use any protected attribute information. Our algorithm only utilizes training words, their sentiments and a vanilla list of names.
|
| 244 |
+
|
| 245 |
+
Results From the box-plots in Figure 2, we see that both race and gender gaps are significant when using the baseline neural network classifier. It tends to predict Caucasian names as “positive”, while the median for African-American names is negative; the median sentiment for female names is higher than that for male names. We considered three other approaches to this problem: the algorithm of Bolukbasi et al. (2016) for pre-processing word embeddings; pre-processing via projecting out the sensitive subspace that we used for training SenSR (this is analogous to Prost et al. (2019)); training a distributionally robust classifier with Euclidean distance cost (Sinha et al., 2017). All approaches improved upon the baseline, however only SenSR can be considered individually fair. Our algorithm practically eliminates gender and racial gaps and achieves the notion of individual fairness as can be seen from almost equal predicted sentiment score for all names. We remark that using expert knowledge (i.e. evaluation names) allowed SenSR-E (E for expert) to further improve both group and individual fairness. However we warn practitioners that if the expert knowledge is too specific, generalization outside of the expert knowledge may not be very good. In Table 1 we report results averaged across 10 repetitions with $90 \% / 1 0 \%$ train/test splits, where we also verify that accuracy trade-off with the baseline is minor. In the right column we present the generalization check, i.e. comparing a pair of sentences unrelated to names. Utilizing expert knowledge led to a fairness over-fitting effect, however we still see improvement over other methods. When utilizing SVD of a larger dataset of names we observe better generalization. Our generalization check suggests that fairness over-fitting is possible, therefore datasets and procedure for verifying fairness generalization are needed.
|
| 246 |
+
|
| 247 |
+
Table 2: Summary of Adult classification experiments over 10 restarts
|
| 248 |
+
|
| 249 |
+
<table><tr><td></td><td>B-Acc,%</td><td>S-Con.</td><td>GR-Con.</td><td>GapG RMS</td><td>GapR RMS</td><td>GapG max</td><td>GapR max</td></tr><tr><td>SenSR</td><td>78.9</td><td>.934</td><td>.984</td><td>.068</td><td>.055</td><td>.087</td><td>.067</td></tr><tr><td>Baseline</td><td>82.9</td><td>.848</td><td>.865</td><td>.179</td><td>.089</td><td>.216</td><td>.105</td></tr><tr><td>Project</td><td>82.7</td><td>.868</td><td>1.00</td><td>.145</td><td>.064</td><td>.192</td><td>.086</td></tr><tr><td>Adv.Debias.</td><td>81.5</td><td>.807</td><td>.841</td><td>.082</td><td>.070</td><td>.110</td><td>.078</td></tr><tr><td>CoCL</td><td>79.0</td><td>1</td><td>1</td><td>.163</td><td>.080</td><td>.201</td><td>.109</td></tr></table>
|
| 250 |
+
|
| 251 |
+
# 4.2 ADULT
|
| 252 |
+
|
| 253 |
+
Problem formulation Demonstrating the broad applicability of SenSR outside of natural language processing tasks, we apply SenSR to a classification task on the Adult (Dua & Graff, 2017) data set to predict whether an individual makes at least $\$ 50\mathrm { k }$ based on features like gender and occupation for approximately 45,000 individuals. Models that predict income without fairness considerations can contribute to the problem of differences in pay between genders or races for the same work. Throughout this section, gender (male or female) and race (Caucasian or non-Caucasian) are binary.
|
| 254 |
+
|
| 255 |
+
Comparison metrics Arguably a classifier is individually unfair if the classifications for two data points that are the same on all features except demographic features are different. Therefore, to assess individual fairness, we report spouse consistency (S-Con.) and gender and race consistency (GR-Con.), which are measures of how often classifications change only because of differences in demographic features. For S-Con (resp. GR-con), we make 2 (resp. 4) copies of every data point where the only difference is that one is a husband and the other is a wife (resp. difference is in gender and race). S-Con (resp. GR-Con) is the fraction of corresponding pairs (resp. quadruples) that have the same classification. We also report various group fairness measures proposed by De-Arteaga et al. (2019) with respect to race or gender based on true positive rates, i.e. the ability of a classifier to correctly identify a given class. See Appendix D.5 for the definitions. We report $\mathrm { G a p } _ { R } ^ { \mathrm { R M S } }$ , ${ \mathrm { G a p } } _ { G } ^ { \mathrm { R M S } }$ ${ \mathrm { G a p } } _ { R } ^ { \operatorname* { m a x } }$ , and ${ \mathrm { G a p } } _ { G } ^ { \mathrm { m a x } }$ where $R$ refers to race, and $G$ refers to gender. We use balanced accuracy (Bacc) instead of accuracy2 to measure predictive ability since only $2 5 \%$ of individuals make at least $\$ 50\mathbf { k }$ .
|
| 256 |
+
|
| 257 |
+
Sensitive subspace Let $\{ ( x _ { i } , x _ { g _ { i } } ) \} _ { i = 1 } ^ { m }$ be the set of features $x _ { i } ~ \in ~ \mathbb { R } ^ { D }$ of the data except the coordinate for gender is zeroed and where $x _ { g _ { i } }$ indicates the gender of individual $i$ . For $\gamma > 0$ , let D 1m Pmi=1 −xgi (wT xi) + log(1 + ewT xi ) + γkwk2, i.e. wg is the learned hyperplane that classifies gender given by regularized logistic regression. Let $e _ { g } \in \mathbb { R } ^ { D }$ (resp. $e _ { r }$ ) be the vector that is 1 in the gender (resp. race) coordinate and 0 elsewhere. Then the sensitive subspace is the span of $[ w _ { g } , e _ { g } , e _ { r } ]$ . See Appendix B.1 for details.
|
| 258 |
+
|
| 259 |
+
Results See Table 2 for the average3 of each metric on the test sets over ten $80 \% / 2 0 \%$ train/test splits for Baseline, Project (projecting features onto the orthogonal complement of the sensitive subspace before training), CoCL (De-Arteaga et al., 2019), Adversarial Debiasing (Zhang et al., 2018), and SenSR. With the exception of CoCL (De-Arteaga et al., 2019), each classifier is a 100 unit single hidden layer neural network. The Baseline clearly exhibits individual and group fairness violations. While SenSR has the lowest B-acc, SenSR is the best by a large margin for S-Con. and has the best group fairness measures. We expect SenSR to do well on GR-consistency since the sensitive subspace includes the race and gender directions. However, SenSR’s individually fair performance generalizes: the sensitive directions do not directly use the husband and wife directions, yet SenSR performs well on S-Con. Furthermore, SenSR outperforms Project on S-Con and group fairness measures illustrating that SenSR does much more than just ignoring the sensitive subspace. CoCL only barely improves group fairness compared to the baseline with a significant drop in Bacc and while Adversarial Debiasing also improves group fairness, it is worse than the baseline on individual fairness measures illustrating that group fairness does not imply individual fairness.
|
| 260 |
+
|
| 261 |
+
# 5 SUMMARY
|
| 262 |
+
|
| 263 |
+
We consider the task of training ML systems that are fair in the sense that their performance is invariant under certain perturbations in a sensitive subspace. This notion of fairness is a variant of individual fairness (Dwork et al., 2011). One of the main barriers to the adoption of individual fairness is the lack of consensus on a fair metric for many ML tasks. To circumvent this issue, we consider two approaches to learning a fair metric from data: one for problems in which the sensitive attribute is observed, and another for problems in which the sensitive attribute is unobserved. Given a data-driven choice of fair metric, we provide an algorithm that provably trains individually fair ML models.
|
| 264 |
+
|
| 265 |
+
# ACKNOWLEDGMENTS
|
| 266 |
+
|
| 267 |
+
This work was supported by the National Science Foundation under grants DMS-1830247 and DMS-1916271.
|
| 268 |
+
|
| 269 |
+
# REFERENCES
|
| 270 |
+
|
| 271 |
+
Solon Barocas and Andrew D. Selbst. Big Data’s Disparate Impact. SSRN Electronic Journal, 2016. ISSN 1556-5068. doi: 10.2139/ssrn.2477899.
|
| 272 |
+
|
| 273 |
+
Rachel K. E. Bellamy, Kuntal Dey, Michael Hind, Samuel C. Hoffman, Stephanie Houde, Kalapriya Kannan, Pranay Lohia, Jacquelyn Martino, Sameep Mehta, Aleksandra Mojsilovic, Seema Nagar, Karthikeyan Natesan Ramamurthy, John Richards, Diptikalyan Saha, Prasanna Sattigeri, Moninder Singh, Kush R. Varshney, and Yunfeng Zhang. AI Fairness 360: An extensible toolkit for detecting, understanding, and mitigating unwanted algorithmic bias, October 2018. URL https://arxiv.org/abs/1810.01943.
|
| 274 |
+
|
| 275 |
+
Aharon Ben-Tal, Dick den Hertog, Anja De Waegenaere, Bertrand Melenberg, and Gijs Rennen. Robust Solutions of Optimization Problems Affected by Uncertain Probabilities. Management Science, 59(2):341–357, November 2012. ISSN 0025-1909. doi: 10.1287/mnsc.1120.1641.
|
| 276 |
+
|
| 277 |
+
Marianne Bertrand and Sendhil Mullainathan. Are Emily and Greg More Employable Than Lakisha and Jamal? A Field Experiment on Labor Market Discrimination. American Economic Review, 94(4):991–1013, September 2004. ISSN 0002-8282. doi: 10.1257/0002828042002561.
|
| 278 |
+
|
| 279 |
+
Jose Blanchet and Karthyek R. A. Murthy. Quantifying Distributional Model Risk via Optimal Transport. arXiv:1604.01446 [math, stat], April 2016.
|
| 280 |
+
|
| 281 |
+
Jose Blanchet, Yang Kang, and Karthyek Murthy. Robust Wasserstein Profile Inference and Applications to Machine Learning. arXiv:1610.05627 [math, stat], October 2016.
|
| 282 |
+
|
| 283 |
+
Tolga Bolukbasi, Kai-Wei Chang, James Y Zou, Venkatesh Saligrama, and Adam T Kalai. Man is to computer programmer as woman is to homemaker? debiasing word embeddings. In Advances in neural information processing systems, pp. 4349–4357, 2016.
|
| 284 |
+
|
| 285 |
+
Aylin Caliskan, Joanna J. Bryson, and Arvind Narayanan. Semantics derived automatically from language corpora contain human-like biases. Science, 356(6334):183–186, April 2017. ISSN 0036-8075, 1095-9203. doi: 10.1126/science.aal4230.
|
| 286 |
+
|
| 287 |
+
Nicholas Carlini and David Wagner. Towards Evaluating the Robustness of Neural Networks. arXiv:1608.04644 [cs], August 2016.
|
| 288 |
+
|
| 289 |
+
Xin Chen, Melvyn Sim, and Peng Sun. A Robust Optimization Perspective on Stochastic Programming. Operations Research, 55:1058–1071, 2007. doi: 10.1287/opre.1070.0441.
|
| 290 |
+
|
| 291 |
+
Alexandra Chouldechova. Fair prediction with disparate impact: A study of bias in recidivism prediction instruments. arXiv:1703.00056 [cs, stat], February 2017.
|
| 292 |
+
|
| 293 |
+
Maria De-Arteaga, Alexey Romanov, Hanna Wallach, Jennifer Chayes, Christian Borgs, Alexandra Chouldechova, Sahin Geyik, Krishnaram Kenthapadi, and Adam Tauman Kalai. Bias in bios: A case study of semantic representation bias in a high-stakes setting. arXiv preprint arXiv:1901.09451, 2019.
|
| 294 |
+
|
| 295 |
+
Erick Delage and Yinyu Ye. Distributionally Robust Optimization Under Moment Uncertainty with Application to Data-Driven Problems. Operations Research, 58:595–612, 2010. doi: 10.1287/ opre.1090.0741.
|
| 296 |
+
|
| 297 |
+
Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive. ics.uci.edu/ml.
|
| 298 |
+
|
| 299 |
+
Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Rich Zemel. Fairness Through Awareness. arXiv:1104.3913 [cs], April 2011.
|
| 300 |
+
|
| 301 |
+
Harrison Edwards and Amos Storkey. Censoring Representations with an Adversary. arXiv:1511.05897 [cs, stat], November 2015.
|
| 302 |
+
|
| 303 |
+
Peyman Mohajerin Esfahani and Daniel Kuhn. Data-driven Distributionally Robust Optimization Using the Wasserstein Metric: Performance Guarantees and Tractable Reformulations. May 2015.
|
| 304 |
+
|
| 305 |
+
Sahaj Garg, Vincent Perot, Nicole Limtiaco, Ankur Taly, Ed H Chi, and Alex Beutel. Counterfactual fairness in text classification through robustness. In Proceedings of the 2019 AAAI/ACM Conference on AI, Ethics, and Society, pp. 219–226. ACM, 2019.
|
| 306 |
+
|
| 307 |
+
Joel Goh and Melvyn Sim. Distributionally Robust Optimization and Its Tractable Approximations. Operations Research, 58(4-part-1):902–917, August 2010. ISSN 0030-364X, 1526-5463. doi: 10.1287/opre.1090.0795.
|
| 308 |
+
|
| 309 |
+
Ian J. Goodfellow, Jonathon Shlens, and Christian Szegedy. Explaining and Harnessing Adversarial Examples. December 2014.
|
| 310 |
+
|
| 311 |
+
Tatsunori B. Hashimoto, Megha Srivastava, Hongseok Namkoong, and Percy Liang. Fairness Without Demographics in Repeated Loss Minimization. arXiv:1806.08010 [cs, stat], June 2018.
|
| 312 |
+
|
| 313 |
+
Minqing Hu and Bing Liu. Mining and summarizing customer reviews. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 168–177. ACM, 2004.
|
| 314 |
+
|
| 315 |
+
Christina Ilvento. Metric Learning for Individual Fairness. arXiv:1906.00250 [cs, stat], June 2019.
|
| 316 |
+
|
| 317 |
+
Harini Kannan, Alexey Kurakin, and Ian Goodfellow. Adversarial logit pairing. arXiv preprint arXiv:1803.06373, 2018.
|
| 318 |
+
|
| 319 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 320 |
+
|
| 321 |
+
Jon Kleinberg, Sendhil Mullainathan, and Manish Raghavan. Inherent Trade-Offs in the Fair Determination of Risk Scores. arXiv:1609.05807 [cs, stat], September 2016.
|
| 322 |
+
|
| 323 |
+
Alexey Kurakin, Ian Goodfellow, and Samy Bengio. Adversarial Machine Learning at Scale. November 2016.
|
| 324 |
+
|
| 325 |
+
H. Lam and Enlu Zhou. Quantifying uncertainty in sample average approximation. In 2015 Winter Simulation Conference (WSC), pp. 3846–3857, December 2015. doi: 10.1109/WSC.2015. 7408541.
|
| 326 |
+
|
| 327 |
+
Jaeho Lee and Maxim Raginsky. Minimax Statistical Learning with Wasserstein Distances. arXiv:1705.07815 [cs], May 2017.
|
| 328 |
+
|
| 329 |
+
David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning Adversarially Fair and Transferable Representations. arXiv:1802.06309 [cs, stat], February 2018.
|
| 330 |
+
|
| 331 |
+
Aleksander Madry, Aleksandar Makelov, Ludwig Schmidt, Dimitris Tsipras, and Adrian Vladu. Towards Deep Learning Models Resistant to Adversarial Attacks. arXiv:1706.06083 [cs, stat], June 2017.
|
| 332 |
+
|
| 333 |
+
Cade Metz and Adam Satariano. An Algorithm That Grants Freedom, or Takes It Away. The New York Times, February 2020. ISSN 0362-4331.
|
| 334 |
+
|
| 335 |
+
Takeru Miyato, Shin-ichi Maeda, Masanori Koyama, Ken Nakae, and Shin Ishii. Distributional Smoothing with Virtual Adversarial Training. arXiv:1507.00677 [cs, stat], July 2015.
|
| 336 |
+
|
| 337 |
+
Hongseok Namkoong and John C. Duchi. Stochastic Gradient Methods for Distributionally Robust Optimization with F-divergences. In Proceedings of the 30th International Conference on Neural Information Processing Systems, NIPS’16, pp. 2216–2224, Barcelona, Spain, 2016. Curran Associates Inc. ISBN 978-1-5108-3881-9.
|
| 338 |
+
|
| 339 |
+
Nicolas Papernot, Patrick McDaniel, Somesh Jha, Matt Fredrikson, Z. Berkay Celik, and Ananthram Swami. The Limitations of Deep Learning in Adversarial Settings. November 2015.
|
| 340 |
+
|
| 341 |
+
Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In Proceedings of the 2014 conference on empirical methods in natural language processing (EMNLP), pp. 1532–1543, 2014.
|
| 342 |
+
|
| 343 |
+
Flavien Prost, Nithum Thain, and Tolga Bolukbasi. Debiasing embeddings for reduced gender bias in text classification. arXiv preprint arXiv:1908.02810, 2019.
|
| 344 |
+
|
| 345 |
+
Ya’acov Ritov, Yuekai Sun, and Ruofei Zhao. On conditional parity as a notion of nondiscrimination in machine learning. arXiv:1706.08519 [cs, stat], June 2017.
|
| 346 |
+
|
| 347 |
+
Soroosh Shafieezadeh-Abadeh, Peyman Mohajerin Esfahani, and Daniel Kuhn. Distributionally Robust Logistic Regression. September 2015.
|
| 348 |
+
|
| 349 |
+
Aman Sinha, Hongseok Namkoong, and John Duchi. Certifying Some Distributional Robustness with Principled Adversarial Training. arXiv:1710.10571 [cs, stat], October 2017.
|
| 350 |
+
|
| 351 |
+
Robyn Speer. How to make a racist ai without really trying, 2017.
|
| 352 |
+
|
| 353 |
+
Christian Szegedy, Wojciech Zaremba, Ilya Sutskever, Joan Bruna, Dumitru Erhan, Ian Goodfellow, and Rob Fergus. Intriguing properties of neural networks. December 2013.
|
| 354 |
+
|
| 355 |
+
Hanchen Wang, Nina Grgic-Hlaca, Preethi Lahoti, Krishna P. Gummadi, and Adrian Weller. An Empirical Study on Learning Fairness Metrics for COMPAS Data with Human Supervision. arXiv:1910.10255 [cs], October 2019.
|
| 356 |
+
|
| 357 |
+
Brian Hu Zhang, Blake Lemoine, and Margaret Mitchell. Mitigating Unwanted Biases with Adversarial Learning. arXiv:1801.07593 [cs], January 2018.
|
| 358 |
+
|
| 359 |
+
# A PROOFS
|
| 360 |
+
|
| 361 |
+
# A.1 PROOF OF PROPOSITION 3.1
|
| 362 |
+
|
| 363 |
+
By the duality result of Blanchet & Murthy (2016), for any $\epsilon > 0$ ,
|
| 364 |
+
|
| 365 |
+
$$
|
| 366 |
+
\begin{array} { r l } & { \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] } \\ & { \quad = \underset { \lambda \geq 0 } { \operatorname* { i n f } } \big \{ \lambda \epsilon + \mathbb { E } _ { P _ { * } } \big [ \ell _ { \lambda } ^ { c _ { * } } ( Z , \theta ) \big ] \big \} - \lambda _ { n } \epsilon + \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda _ { n } } ^ { c } ( Z , \theta ) \big ] } \\ & { \quad \leq \mathbb { E } _ { P _ { * } } \big [ \ell _ { \lambda _ { n } } ^ { c _ { * } } ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda _ { n } } ^ { c } ( Z , \theta ) \big ] , } \end{array}
|
| 367 |
+
$$
|
| 368 |
+
|
| 369 |
+
where $\begin{array} { r } { \lambda _ { n } \in \arg \operatorname* { m i n } _ { \lambda \geq 0 } \lambda \epsilon + \mathbb { E } _ { P _ { n } } \left[ \ell _ { \lambda } ^ { c } ( Z , \theta ) \right] } \end{array}$ . By assumption A3,
|
| 370 |
+
|
| 371 |
+
$$
|
| 372 |
+
\begin{array} { r l } & { | \ell _ { \lambda _ { n } } ^ { c _ { * } } ( z , \theta ) - \ell _ { \lambda _ { n } } ^ { c } ( z , \theta ) | } \\ & { \quad = \bigg | \underset { x _ { 2 } \in \mathcal { X } } { \operatorname* { s u p } } \ \ell ( ( x _ { 2 } , y ) , \theta ) - \lambda _ { n } c _ { * } ( ( x , y ) , ( x _ { 2 } , y ) ) - \underset { x _ { 2 } \in \mathcal { X } } { \operatorname* { s u p } } \ \ell ( ( x _ { 2 } , y ) , \theta ) - \lambda _ { n } c ( ( x , y ) , ( x _ { 2 } , y ) ) \bigg | } \\ & { \quad \le \underset { x _ { 2 } \in \mathcal { X } } { \operatorname* { s u p } } \ \lambda _ { n } | c _ { * } ( ( x , y ) , ( x _ { 2 } , y ) ) - c ( ( x , y ) , ( x _ { 2 } , y ) ) | } \\ & { \quad \le \lambda _ { n } \delta _ { c } \cdot D ^ { 2 } . } \end{array}
|
| 373 |
+
$$
|
| 374 |
+
|
| 375 |
+
This implies
|
| 376 |
+
|
| 377 |
+
$$
|
| 378 |
+
\begin{array} { r l } & { \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \left[ \ell ( Z , \theta ) \right] - \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \left[ \ell ( Z , \theta ) \right] } \\ & { \quad \leq \mathbb { E } _ { P _ { * } } \left[ \ell _ { \lambda _ { n } } ^ { c _ { * } } ( Z , \theta ) \right] - \mathbb { E } _ { P _ { n } } \left[ \ell _ { \lambda _ { n } } ^ { c _ { * } } ( Z , \theta ) \right] + \lambda _ { n } \delta _ { c } D ^ { 2 } . } \end{array}
|
| 379 |
+
$$
|
| 380 |
+
|
| 381 |
+
This bound is crude; it is possible to obtain sharper bounds under additional assumptions on the loss and transportation cost functions. We avoid this here to keep the result as general as possible.
|
| 382 |
+
|
| 383 |
+
Similarly,
|
| 384 |
+
|
| 385 |
+
$$
|
| 386 |
+
\begin{array} { r l } & { \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] } \\ & { \quad \leq \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda _ { * } } ^ { c } ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { * } } \big [ \ell _ { \lambda _ { * } } ^ { c _ { * } } ( Z , \theta ) \big ] } \\ & { \quad \leq \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda _ { * } } ^ { c _ { * } } ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { * } } \big [ \ell _ { \lambda _ { * } } ^ { c _ { * } } ( Z , \theta ) \big ] + \lambda _ { * } \delta _ { c } D ^ { 2 } , } \end{array}
|
| 387 |
+
$$
|
| 388 |
+
|
| 389 |
+
where $\begin{array} { r } { \lambda _ { * } \in \arg \operatorname* { m i n } _ { \lambda \geq 0 } \{ \lambda \epsilon + \mathbb { E } _ { P _ { * } } \left[ \ell _ { \lambda } ^ { c _ { * } } ( Z , \theta ) \right] \} _ { } , } \end{array}$ .
|
| 390 |
+
|
| 391 |
+
Lemma A.1 (Lee & Raginsky (2017)). Let $\tilde { \lambda } \in \arg \operatorname* { m i n } _ { \lambda \geq 0 } \lambda \epsilon + \mathbb { E } _ { P } \big [ \ell _ { \lambda } ^ { c } ( Z , \theta ) \big ]$ . As long as the function in the loss class are $L$ -Lipschitz with respect to $d _ { x }$ (see Assumption $A 2$ ), $\begin{array} { r } { \tilde { \lambda } \le \frac { L } { \sqrt { \epsilon } } } \end{array}$ .
|
| 392 |
+
|
| 393 |
+
Proof. By the optimality of $\tilde { \lambda }$ ,
|
| 394 |
+
|
| 395 |
+
$$
|
| 396 |
+
\begin{array} { r l } & { \tilde { \lambda } \epsilon \le \tilde { \lambda } \epsilon + \mathbb { E } _ { P } \big [ \underset { x _ { 2 } \in \mathcal { X } } { \operatorname* { s u p } } \ell ( ( x _ { 2 } , Y ) , \theta ) - \tilde { \lambda } d _ { x } ( X , x _ { 2 } ) ^ { 2 } - \ell ( ( X , Y ) , \theta ) \big ] } \\ & { \quad = \tilde { \lambda } \epsilon + \mathbb { E } _ { P } \big [ \ell _ { \tilde { \lambda } } ^ { c } ( Z , \theta ) - \ell ( Z , \theta ) \big ] } \\ & { \quad \le \lambda \epsilon + \mathbb { E } _ { P } \big [ \ell _ { \lambda } ^ { c } ( Z , \theta ) - \ell ( Z , \theta ) \big ] } \\ & { \quad = \lambda \epsilon + \mathbb { E } _ { P } \big [ \underset { x _ { 2 } \in \mathcal { X } } { \operatorname* { s u p } } \ell ( ( x _ { 2 } , Y ) , \theta ) - \ell ( ( X , Y ) , \theta ) - \lambda d _ { x } ( X , x _ { 2 } ) ^ { 2 } \big ] } \end{array}
|
| 397 |
+
$$
|
| 398 |
+
|
| 399 |
+
for any $\lambda \geq 0$ . By Assumption A2, the right side is at most
|
| 400 |
+
|
| 401 |
+
$$
|
| 402 |
+
\begin{array} { r l } & { \tilde { \lambda } \epsilon \leq \lambda \epsilon + \mathbb { E } _ { P } \big [ \underset { x _ { 2 } \in \mathcal { X } } { \operatorname* { s u p } } L d _ { x } ( X , x _ { 2 } ) - \lambda d _ { x } ( X , x _ { 2 } ) ^ { 2 } \big ] } \\ & { \quad \leq \lambda \epsilon + \underset { t \geq 0 } { \operatorname* { s u p } } L t - \lambda t ^ { 2 } } \end{array}
|
| 403 |
+
$$
|
| 404 |
+
|
| 405 |
+
We minimize the right side WRT $t$ (set $\begin{array} { r } { t = \frac { L } { 2 \lambda } . } \end{array}$ ) and $\lambda$ (set $\begin{array} { r } { \lambda = \frac { L } { 2 \sqrt { \epsilon } } \rangle } \end{array}$ ) to obtain $\tilde { \lambda } \epsilon \leq L \sqrt { \epsilon }$
|
| 406 |
+
|
| 407 |
+
By Lemma A.1, we have
|
| 408 |
+
|
| 409 |
+
$$
|
| 410 |
+
\begin{array} { r l } & { \displaystyle \operatorname* { s u p } _ { { \boldsymbol { \Sigma } } : W _ { * } ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , { \boldsymbol { \theta } } ) \big ] - \operatorname* { s u p } _ { P : W ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , { \boldsymbol { \theta } } ) \big ] \leq \mathbb { E } _ { P _ { * } } \big [ \ell _ { \lambda _ { n } } ^ { c _ { * } } ( Z , { \boldsymbol { \theta } } ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda _ { n } } ^ { c _ { * } } ( Z , { \boldsymbol { \theta } } ) \big ] + \frac { L \delta _ { c } L } { \sqrt { \epsilon } } } \\ & { \displaystyle \operatorname* { s u p } _ { { \boldsymbol { \Sigma } } : W ( P , P _ { n } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , { \boldsymbol { \theta } } ) \big ] - \operatorname* { s u p } _ { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , { \boldsymbol { \theta } } ) \big ] \leq \mathbb { E } _ { P _ { n } } \big [ \ell _ { \lambda _ { * } } ^ { c _ { * } } ( Z , { \boldsymbol { \theta } } ) \big ] - \mathbb { E } _ { P _ { * } } \big [ \ell _ { \lambda _ { * } } ^ { c _ { * } } ( Z , { \boldsymbol { \theta } } ) \big ] + \frac { L \delta _ { c } D } { \sqrt { \epsilon } } } \end{array}
|
| 411 |
+
$$
|
| 412 |
+
|
| 413 |
+
We combine the preceding bounds to obtain
|
| 414 |
+
|
| 415 |
+
$$
|
| 416 |
+
\begin{array} { r l } & { \bigg | \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] \bigg | } \\ & { \quad \leq \underset { f \in \mathcal { L } ^ { c _ { * } } } { \operatorname* { s u p } } \big | \int _ { \mathcal { Z } } f ( z ) d ( P _ { n } - P _ { * } ) ( z ) \big | + \frac { L \delta _ { c } D ^ { 2 } } { \sqrt { \epsilon } } , } \end{array}
|
| 417 |
+
$$
|
| 418 |
+
|
| 419 |
+
where $\begin{array} { r } { \mathcal { L } ^ { c _ { * } } = \{ \ell _ { \lambda } ^ { c _ { * } } ( \cdot , \theta ) : \lambda \in [ 0 , \frac { L } { \sqrt { \epsilon } } ] , \theta \in \Theta \} } \end{array}$ is the DR loss class. In the rest of the proof, we bound $\begin{array} { r } { \operatorname* { s u p } _ { f \in \mathcal { L } ^ { c _ { * } } } \big | \int _ { \mathcal { Z } } f ( z ) d ( P _ { * } - \dot { P _ { n } } ) ( z ) \big | } \end{array}$ with standard techniques from statistical learning theory. Assumption A2 implies the functions in $\scriptstyle { \dot { \mathcal { F } } }$ are bounded:
|
| 420 |
+
|
| 421 |
+
$$
|
| 422 |
+
0 \leq \ell ( ( x _ { 1 } , y _ { 1 } ) , \theta ) - \underline { { \lambda d _ { \sigma } ( \alpha _ { \hat { \operatorname { T } } } , \mathcal { X } _ { 1 } ) } } \leq \ell _ { \lambda } ^ { c } ( z _ { 1 } , \theta ) \leq \operatorname* { s u p } _ { x _ { 2 } \in \mathcal { X } } \ell ( ( x _ { 2 } , y _ { 1 } ) , \theta ) \leq M .
|
| 423 |
+
$$
|
| 424 |
+
|
| 425 |
+
This implies has bounded differences, so $\delta _ { n }$ concentrates sharply around its expectation. By the bounded-differences inequality and a symmetrization argument,
|
| 426 |
+
|
| 427 |
+
$$
|
| 428 |
+
\operatorname* { s u p } _ { f \in { \mathcal { L } } ^ { c _ { * } } } \big | \int _ { { \mathcal { Z } } } f ( z ) d \bigl ( P _ { n } - P _ { * } \bigr ) ( z ) \big | \leq 2 \Re _ { n } ( { \mathcal { L } } ^ { c _ { * } } ) + M ( \frac { \log \frac { 2 } { t } } { 2 n } ) ^ { \frac { 1 } { 2 } }
|
| 429 |
+
$$
|
| 430 |
+
|
| 431 |
+
WP at least $1 - t$ , where $\Re _ { n } ( \mathcal { F } )$ is the Rademacher complexity of $\mathcal { F }$ :
|
| 432 |
+
|
| 433 |
+
$$
|
| 434 |
+
\Re _ { n } ( { \mathcal { F } } ) = \mathbb { E } { \left[ \operatorname* { s u p } _ { f \in { \mathcal { F } } } { \frac { 1 } { n } } \sum _ { i = 1 } ^ { n } \sigma _ { i } f ( Z _ { i } ) \right] } .
|
| 435 |
+
$$
|
| 436 |
+
|
| 437 |
+
Lemma A.2. The Rademacher complexity of the DR loss class is at most
|
| 438 |
+
|
| 439 |
+
$$
|
| 440 |
+
\Re _ { n } ( \mathcal { L } ^ { c } ) \leq \frac { 2 4 \mathfrak { C } ( \mathcal { L } ) } { \sqrt { n } } + \frac { 2 4 L D ^ { 2 } } { \sqrt { n \epsilon } } .
|
| 441 |
+
$$
|
| 442 |
+
|
| 443 |
+
Proof. process r complexity of is sub-Gaussia $\mathcal { L } ^ { c }$ , we first show that the RT to a pseudometric. $\mathcal { L } ^ { c }$ -iet cherand $\begin{array} { r } { X _ { f } \triangleq \frac { 1 } { n } \sum _ { i = 1 } ^ { n } \sigma _ { i } f ( Z _ { i } ) } \end{array}$ $f _ { 1 } = \ell _ { \lambda _ { 1 } } ^ { c } ( \cdot , \theta _ { 1 } )$ $f _ { 2 } = \ell _ { \lambda _ { 2 } } ^ { c } ( \cdot , \theta _ { 2 } )$ . Define
|
| 444 |
+
|
| 445 |
+
$$
|
| 446 |
+
d _ { \mathscr { L } ^ { c } } ( f _ { 1 } , f _ { 2 } ) \triangleq \| \ell ( \cdot , \theta _ { 1 } ) - \ell ( \cdot , \theta _ { 2 } ) \| _ { \infty } + D ^ { 2 } | \lambda _ { 1 } - \lambda _ { 2 } | .
|
| 447 |
+
$$
|
| 448 |
+
|
| 449 |
+
We check that $X _ { f }$ is sub-Gaussian WRT $d _ { \mathcal { L } ^ { c } }$ :
|
| 450 |
+
|
| 451 |
+
$$
|
| 452 |
+
\begin{array} { r l } & { \mathbb { E } \Big [ \exp ( t ( X _ { f _ { 1 } } - X _ { f _ { 2 } } ) ) \Big ] } \\ & { \quad = \mathbb { E } \Big [ \exp \Big ( \displaystyle \frac { l } { n } \sum _ { i = 1 } ^ { n } \sigma _ { i } \big ( \mathcal { E } _ { \lambda _ { 1 } } ^ { \kappa } ( Z _ { i } , \theta _ { 1 } ) - \mathcal { E } _ { \lambda _ { 2 } } ^ { \kappa } ( Z _ { \lambda } , \theta _ { 2 } ) \big ) \big ) \Big ] } \\ & { \quad = \mathbb { E } \Big [ \exp \Big ( \displaystyle \frac { l } { n } \sigma \big ( \mathcal { E } _ { \lambda _ { 1 } } ^ { \kappa } ( Z , \theta _ { 1 } ) - \mathcal { E } _ { \lambda _ { 2 } } ^ { \kappa } ( Z , \theta _ { 2 } ) \big ) \Big ) \Big ] ^ { n } } \\ & { \quad = \mathbb { E } \Big [ \exp \Big ( \displaystyle \frac { l } { n } \sigma \big ( \operatorname* { s u p } _ { \lambda = \lambda } \mathrm { ~ f ~ } \mathcal { E } ( ( x _ { 1 } , Y ) , \theta _ { 1 } ) - \lambda _ { 1 } d _ { x } ( x _ { 1 } , X ) ^ { 2 } - \ell ( ( x _ { 2 } , Y ) , \theta _ { 2 } ) + \lambda _ { 2 } d _ { x } ( X , x _ { 2 } ) ^ { 2 } ) ) \big ) \Big ] } \\ & { \quad = \mathbb { E } \Big [ \exp \Big ( \displaystyle \frac { l } { n } \sigma \big ( \operatorname* { s u p } _ { \lambda = \lambda } \mathcal { E } ( ( x _ { 1 } , Y ) , \theta _ { 1 } ) - \ell ( ( x _ { 1 } , Y ) , \theta _ { 2 } ) + ( \lambda _ { 2 } - \lambda _ { 1 } ) d _ { x } ( x _ { 1 } , X ) ^ { 2 } ) ) \big ) \Big ] ^ { n } } \\ & { \quad \le \exp \Big ( \displaystyle \frac { 1 } { n } \sigma \big ( \mathcal { E } _ { \lambda _ { 1 } } ^ { \kappa } ( x _ { 2 } ( \theta _ { 1 } , Y _ { 2 } ) ) . } \end{array}
|
| 453 |
+
$$
|
| 454 |
+
|
| 455 |
+
Let $N ( \mathcal { L } ^ { c } , d _ { \mathcal { L } ^ { c } } , \epsilon )$ be the $\epsilon$ -covering number of $( \mathcal { L } ^ { c } , d _ { \mathcal { L } ^ { c } } )$ . We observe
|
| 456 |
+
|
| 457 |
+
$$
|
| 458 |
+
\begin{array} { r } { N ( \mathcal { L } ^ { c } , d _ { \mathcal { L } ^ { c } } , \epsilon ) \leq N ( \mathcal { L } , \| \cdot \| _ { \infty } , \frac { \epsilon } { 2 } ) \cdot N ( [ 0 , \frac { L } { \sqrt { \epsilon } } ] , | \cdot | , \frac { \epsilon } { 2 D ^ { 2 } } ) } \end{array}
|
| 459 |
+
$$
|
| 460 |
+
|
| 461 |
+
By Dudley’s entropy integral,
|
| 462 |
+
|
| 463 |
+
$$
|
| 464 |
+
\begin{array} { l } { \displaystyle \mathfrak { R } _ { n } ( \mathcal { L } ^ { c } ) \leq \frac { 1 2 } { \sqrt { n } } \int _ { 0 } ^ { \infty } \log N ( \mathcal { L } ^ { c } , d _ { \mathcal { L } ^ { c } } , \epsilon ) ^ { \frac { 1 } { 2 } } d \epsilon } \\ { \displaystyle \quad \quad \leq \frac { 1 2 } { \sqrt { n } } \int _ { 0 } ^ { \infty } \big ( \log N ( \mathcal { L } , \| \cdot \| _ { \infty } , \frac { \epsilon } { 2 } ) + N \big ( [ 0 , \frac { L } { \sqrt { \epsilon } } ] , | \cdot | , \frac { \epsilon } { 2 D ^ { 2 } } \big ) \big ) ^ { \frac { 1 } { 2 } } d \epsilon } \\ { \displaystyle \quad \leq \frac { 1 2 } { \sqrt { n } } \bigg ( \int _ { 0 } ^ { \infty } \log N ( \mathcal { L } , \| \cdot \| _ { \infty } , \frac { \epsilon } { 2 } ) ^ { \frac { 1 } { 2 } } d \epsilon + \int _ { 0 } ^ { \infty } N \big ( [ 0 , \frac { L } { \sqrt { \epsilon } } ] , | \cdot | , \frac { \epsilon } { 2 D ^ { 2 } } \big ) ^ { \frac { 1 } { 2 } } d \epsilon \bigg ) } \\ { \displaystyle \quad \leq \frac { 2 4 \mathfrak { C } ( \mathcal { L } ) } { \sqrt { n } } + \frac { 2 4 L D ^ { 2 } } { \sqrt { n \epsilon } } \int _ { 0 } ^ { \frac { 1 } { 2 } } \log ( \frac { 1 } { \epsilon } ) d \epsilon } \end{array}
|
| 465 |
+
$$
|
| 466 |
+
|
| 467 |
+
where we recalled equation A.1 in the second step. We evalaute the integral on the right side to arrive at the stated bound: $\begin{array} { r } { \int _ { 0 } ^ { \frac { 1 } { 2 } } \log ( \frac { 1 } { \epsilon } ) d \epsilon < 1 } \end{array}$ . □
|
| 468 |
+
|
| 469 |
+
By Lemma A.2,
|
| 470 |
+
|
| 471 |
+
$$
|
| 472 |
+
\operatorname* { s u p } _ { f \in \mathcal { L } ^ { c _ { * } } } \left. \int _ { \mathcal { Z } } f ( z ) d ( P _ { n } - P _ { * } ) ( z ) \right. \leq \frac { 4 8 \mathfrak { C } ( \mathcal { L } ) } { \sqrt { n } } + \frac { 4 8 L D ^ { 2 } } { \sqrt { n \epsilon } } + M ( \frac { \log \frac { 2 } { t } } { 2 n } ) ^ { \frac { 1 } { 2 } } ,
|
| 473 |
+
$$
|
| 474 |
+
|
| 475 |
+
which implies
|
| 476 |
+
|
| 477 |
+
$$
|
| 478 |
+
\begin{array} { r l } & { \boxed { \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] } \Biggr | _ { \begin{array} { l } { \epsilon } \\ { \epsilon } \end{array} } } \\ & { \leq \frac { 4 8 \mathfrak { E } ( \mathcal { L } ) } { \sqrt { n } } + \frac { 4 8 L D ^ { 2 } } { \sqrt { n \epsilon } } + \frac { L \delta _ { c } D ^ { 2 } } { \sqrt { \epsilon } } + M ( \frac { \log \frac { 2 } { t } } { 2 n } ) ^ { \frac { 1 } { 2 } } . } \end{array}
|
| 479 |
+
$$
|
| 480 |
+
|
| 481 |
+
WP at least $1 - t$ .
|
| 482 |
+
|
| 483 |
+
# A.2 PROOFS OF PROPOSITIONS 3.2 AND 3.3
|
| 484 |
+
|
| 485 |
+
Proof of Proposition 3.2. It is enough to show
|
| 486 |
+
|
| 487 |
+
$$
|
| 488 |
+
\begin{array} { r } { \operatorname* { s u p } _ { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } \mathbb { E } _ { P } \big [ \ell ( Z , \hat { \theta } ) \big ] \leq \delta ^ { * } + 2 \delta _ { n } } \end{array}
|
| 489 |
+
$$
|
| 490 |
+
|
| 491 |
+
because the loss function is non-negative. We have
|
| 492 |
+
|
| 493 |
+
$$
|
| 494 |
+
\begin{array} { r l } { \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \hat { \theta } ) \big ] \leq \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \hat { \theta } ) \big ] + \delta _ { n } } & { } \\ { \leq \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \bar { \theta } ) \big ] + \delta _ { n } } & { } \\ { \leq \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \bar { \theta } ) \big ] + 2 \delta _ { n } } & { } \\ { \leq \delta ^ { * } + 2 \delta _ { n } . } & { } \end{array}
|
| 495 |
+
$$
|
| 496 |
+
|
| 497 |
+
# Proof of Proposition 3.3.
|
| 498 |
+
|
| 499 |
+
$$
|
| 500 |
+
\begin{array} { r l } & { \underset { P : W _ { * } ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \left( \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell ( Z , \theta ) \big ] \right) - \underset { P : W ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \left( \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { * } } \big [ \ell ( Z , \theta ) \big ] \right) } \\ & { = \underset { P : W _ { * } ( P , P _ { * } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] - \underset { P : W ( P , P _ { n } ) \leq \epsilon } { \operatorname* { s u p } } \mathbb { E } _ { P } \big [ \ell ( Z , \theta ) \big ] + \mathbb { E } _ { P _ { * } } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell ( Z , \theta ) \big ] } \\ & { \leq \delta _ { n } + \mathbb { E } _ { P _ { * } } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell ( Z , \theta ) \big ] } \end{array}
|
| 501 |
+
$$
|
| 502 |
+
|
| 503 |
+
The loss function is bounded, so it is possible to bound $\mathbb { E } _ { P _ { * } } \big [ \ell ( Z , \theta ) \big ] - \mathbb { E } _ { P _ { n } } \big [ \ell ( Z , \theta ) \big ]$ by standard uniform convergence results on bounded loss classes.
|
| 504 |
+
|
| 505 |
+
# B DATA-DRIVEN FAIR METRICS
|
| 506 |
+
|
| 507 |
+
# B.1 LEARNING THE FAIR METRIC FROM OBSERVATIONS OF THE SENSITIVE ATTRIBUTE
|
| 508 |
+
|
| 509 |
+
Here we assume the sensitive attribute is discrete and is observed for a small subset of the training data. Formally, we assume this subset of the training data has the form $\{ ( X _ { i } , K _ { i } , Y _ { i } ) \}$ , where $K _ { i }$ is the sensitive attribute of the $i$ -th subject. To learn the sensitive subspace, we fit a softmax regression model to the data
|
| 510 |
+
|
| 511 |
+
$$
|
| 512 |
+
\mathbb { P } ( K _ { i } = l \mid \boldsymbol { X } _ { i } ) = \frac { \mathsf { e x p } ( a _ { l } ^ { T } \boldsymbol { X } _ { i } + b _ { l } ) } { \sum _ { l = 1 } ^ { k } \mathsf { e x p } ( a _ { l } ^ { T } \boldsymbol { X } _ { i } + b _ { l } ) } , l = 1 , \ldots , k ,
|
| 513 |
+
$$
|
| 514 |
+
|
| 515 |
+
and take the span of $A = \left[ a _ { 1 } \ldots a _ { k } \right]$ as the sensitive subspace to define the fair metric as
|
| 516 |
+
|
| 517 |
+
$$
|
| 518 |
+
d _ { x } ( x _ { 1 } , x _ { 2 } ) ^ { 2 } = ( x _ { 1 } - x _ { 2 } ) ^ { T } ( I - P _ { \mathsf { r a n } ( A ) } ) ( x _ { 1 } - x _ { 2 } ) .
|
| 519 |
+
$$
|
| 520 |
+
|
| 521 |
+
This approach readily generalizes to sensitive attributes that are not discrete-valued: replace the softmax model by an appropriate generalized linear model.
|
| 522 |
+
|
| 523 |
+
In many applications, the sensitive attribute is part of a user’s demographic information, so it may not be available due to privacy restrictions. This does not preclude the proposed approach because the sensitive attribute is only needed to learn the fair metric and is neither needed to train the classifier nor at test time.
|
| 524 |
+
|
| 525 |
+
# B.2 LEARNING THE FAIR METRIC FROM COMPARABLE SAMPLES
|
| 526 |
+
|
| 527 |
+
In this section, we consider the task of learning a fair metric from supervision in a form of comparable samples. This type of supervision has been considered in the literature on debiasing learned representations. For example, method of Bolukbasi et al. (2016) for removing gender bias in word embeddings relies on sets of words whose embeddings mainly vary in a gender subspace (e.g. (king, queen)).
|
| 528 |
+
|
| 529 |
+
To keep things simple, we focus on learning a generalized Mahalanobis distance
|
| 530 |
+
|
| 531 |
+
$$
|
| 532 |
+
d _ { x } ( x _ { 1 } , x _ { 2 } ) = ( \varphi ( x _ { 1 } ) - \varphi ( x _ { 2 } ) ) ^ { T } { \widehat \Sigma } ( \varphi ( x _ { 1 } ) - \varphi ( x _ { 2 } ) ) ^ { \frac { 1 } { 2 } } ,
|
| 533 |
+
$$
|
| 534 |
+
|
| 535 |
+
where $\varphi ( \boldsymbol { x } ) : \boldsymbol { \mathcal { X } } \mathbf { R } ^ { d }$ is a known feature map and $\widehat { \Sigma } \in \mathbf { S } _ { + } ^ { d \times d }$ is a covariance matrix. Our approach is based on a factor model
|
| 536 |
+
|
| 537 |
+
$$
|
| 538 |
+
\varphi _ { i } = A _ { * } u _ { i } + B _ { * } v _ { i } + \epsilon _ { i } ,
|
| 539 |
+
$$
|
| 540 |
+
|
| 541 |
+
where $\varphi _ { i } ~ \in \textbf { R } ^ { d }$ is the learned representation of $x _ { i }$ , $u _ { i } \in \mathbf { R } ^ { K }$ (resp. $v _ { i } \in \mathbf { R } ^ { L }$ ) is the sensitive/irrelevant (resp. relevant) attributes of $x _ { i }$ to the task at hand, and $\epsilon _ { i }$ is an error term. For example, in Bolukbasi et al. (2016), the learned representations are the embeddings of words in the vocabulary, and the sensitive attribute is the gender bias of the words. The sensitive and relevant attributes are generally unobserved.
|
| 542 |
+
|
| 543 |
+
Recall our goal is to obtain $\widehat { \Sigma }$ so that equation B.2 is small whenever $v _ { 1 } \approx v _ { 2 }$ . One possible choice of $\widehat { \Sigma }$ is the projection matrix onto the orthogonal complement of $\mathsf { r a n } ( A )$ , which we denote by $P _ { \mathsf { r a n } ( A ) }$ . bIndeed,
|
| 544 |
+
|
| 545 |
+
$$
|
| 546 |
+
\begin{array} { r } { d _ { x } ( x _ { 1 } , x _ { 2 } ) ^ { 2 } = ( \varphi _ { 1 } - \varphi _ { 2 } ) ^ { T } ( I - P _ { \mathrm { r a n } ( A ) } ) ( \varphi _ { 1 } - \varphi _ { 2 } ) \qquad } \\ { \approx ( v _ { 1 } - v _ { 2 } ) ^ { T } B _ { * } ^ { T } ( I - P _ { \mathrm { r a n } ( A ) } ) B _ { * } ( v _ { 1 } - v _ { 2 } ) , } \end{array}
|
| 547 |
+
$$
|
| 548 |
+
|
| 549 |
+
which is small whenever $v _ { 1 } \approx v _ { 2 }$ . Although $\mathsf { r a n } ( A )$ is unknown, it is possible to estimate it from the learned representations and groups of comparable samples by factor analysis.
|
| 550 |
+
|
| 551 |
+
The factor model attributes variation in the learned representations to variation in the sensitive and relevant attributes. We consider two samples comparable if their relevant attributes are similar. In other words, if $\mathcal { T } \subset [ n ]$ is (the indices of) a group of comparable samples, then
|
| 552 |
+
|
| 553 |
+
$$
|
| 554 |
+
H \Phi _ { \mathcal { T } } = H U _ { \mathcal { T } } A _ { * } ^ { T } + H V _ { \mathcal { T } } B _ { * } ^ { \mathcal { F } ^ { \mathcal { F } } } \widetilde { \stackrel { \approx } { + } } H E _ { \mathcal { T } } \approx H U _ { \mathcal { T } } A _ { * } ^ { T } + H E _ { \mathcal { T } } ,
|
| 555 |
+
$$
|
| 556 |
+
|
| 557 |
+
where $\begin{array} { r } { H = I _ { | \mathcal { T } | } - \frac { 1 } { | \mathcal { T } | } 1 _ { | \mathcal { T } | } 1 _ { | \mathcal { T } | } ^ { T } } \end{array}$ is the centering or de-meaning matrix and the rows of $\Phi _ { \mathcal { T } }$ (resp. $U _ { \mathcal { I } }$ , $V _ { \mathcal { T } } ,$ ) are $\varphi _ { i }$ (resp. $u _ { i } , v _ { i } ,$ ). If this group of samples have identical relevant attributes, i.e. $V _ { \mathcal { I } } = 1 _ { | \mathcal { I } | } v ^ { T }$ for some $v$ , then $H V _ { \mathcal { I } }$ vanishes exactly. As long as $u _ { i }$ and $\epsilon _ { i }$ are uncorrelated (e.g. $\mathbb { E } \big [ u _ { i } \epsilon _ { i } ^ { T } \big ] = 0 ,$ ), equation B.5 implies
|
| 558 |
+
|
| 559 |
+
$$
|
| 560 |
+
\mathbb { E } \big [ \Phi _ { \mathcal { T } } ^ { T } H \Phi _ { \mathcal { T } } \big ] \approx A \mathbb { E } \big [ U _ { \mathcal { T } } ^ { T } H U _ { \mathcal { T } } \big ] A ^ { T } + \mathbb { E } \big [ E _ { \mathcal { T } } ^ { T } H E _ { \mathcal { T } } \big ] ,
|
| 561 |
+
$$
|
| 562 |
+
|
| 563 |
+
This suggests estimating $\mathsf { r a n } ( A )$ from the learned representations and groups of comparable samples by factor analysis. We summarize our approach in Algorithm 3.
|
| 564 |
+
|
| 565 |
+
# Algorithm 3 estimating $\widehat { \Sigma }$ for the fair metric
|
| 566 |
+
|
| 567 |
+
1: Input: $\{ \varphi _ { i } \} _ { i = 1 } ^ { n }$ , comparable groups $\mathcal { T } _ { 1 } , \ldots , \mathcal { T } _ { G }$
|
| 568 |
+
2: $\begin{array} { r } { \widehat { A } ^ { T } \in \arg \operatorname* { m i n } _ { W _ { g } , A } \{ \frac { 1 } { 2 } \sum _ { g = 1 } ^ { G } \| H _ { g } \Phi _ { \mathcal { T } _ { g } } - W _ { g } A ^ { T } \| _ { F } ^ { 2 } \} } \end{array}$
|
| 569 |
+
3: $Q \operatorname { q r } ( { \widehat { A } } )$
|
| 570 |
+
4: $\widehat { \Sigma } I _ { d } - Q Q ^ { T }$
|
| 571 |
+
|
| 572 |
+
. factor analysis . get orthonormal basis of ran $( \widehat { A } )$
|
| 573 |
+
|
| 574 |
+
# C SENSR IMPLEMENTATION DETAILS
|
| 575 |
+
|
| 576 |
+
This section is to accompany the implementation of the SenSR algorithm and is best understood by reading it along with the code implemented using TensorFlow.4 We discuss choices of learning rates and few specifics of the code. Words in italics correspond to variables in the code and following notation in parentheses defines corresponding name in Table 3, where we summarize all hyperparameter choices.
|
| 577 |
+
|
| 578 |
+
Handling class imbalance Datasets we study have imbalanced classes. To handle it, on every epoch $( E )$ (i.e. number of epochs) we subsample a batch size $( B )$ training samples enforcing equal number of observations per class. This procedure can be understood as data augmentation.
|
| 579 |
+
|
| 580 |
+
Perturbations specifics Our implementation of SenSR algorithm has two inner optimization problems — subspace perturbation and full perturbation (when $\epsilon > 0$ ). Subspace perturbation can be viewed as an initialization procedure for the attack. We implement both using Adam optimizer (Kingma & Ba, 2014) inside the computation graph for better efficiency, i.e. defining corresponding perturbation parameters as Variables and re-setting them to zeros after every epoch. This is in contrast with a more common strategy in the adversarial robustness implementations, where perturbations (i.e. attacks) are implemented using tf.gradients with respect to the input data defined as a Placeholder.
|
| 581 |
+
|
| 582 |
+
Learning rates As mentioned above, in addition to regular Adam optimizer for learning the parameters we invoke two more for the inner optimization problems of SenSR. We use same learning rate of 0.001 for the parameters optimizer, however different learning rates across datasets for subspace step(s) and full step $( f )$ . Two other related parameters are number of steps of the inner optimizations: subspace epoch(se) and full epoch $( f e )$ . We observed that setting subspace perturbation learning rate too small may prevent our algorithm from reducing unfairness, however setting it big does not seem to hurt. On the other hand, learning rate for full perturbation should not be set too big as it may prevent algorithm from solving the original task. Note that full perturbation learning rate should be smaller than perturbation budget $e p s ( \epsilon )$ — we always use $\epsilon / 1 0$ . In general, malfunctioning behaviors are immediately noticeable during training and can be easily corrected, therefore we did not need to use any hyperparameter optimization tools.
|
| 583 |
+
|
| 584 |
+
Table 3: SenSR hyperparameter choices in the experiments
|
| 585 |
+
|
| 586 |
+
<table><tr><td></td><td>E</td><td>B</td><td>S</td><td>se</td><td>E</td><td>f</td><td>fe</td></tr><tr><td>Sentiment</td><td>4K</td><td>1K</td><td>0.1</td><td>10</td><td>0.1</td><td>0.01</td><td>10</td></tr><tr><td>Adult</td><td>12K</td><td>1K</td><td>10</td><td>50</td><td>10-3</td><td>10-4</td><td>40</td></tr></table>
|
| 587 |
+
|
| 588 |
+
Table 4: Summary of Adult classification experiments over 10 restarts
|
| 589 |
+
|
| 590 |
+
<table><tr><td></td><td>Accuracy</td><td>B-TPR</td><td>GapG RMS</td><td>GaPR RMS</td><td>GapG max</td><td>GapR max</td></tr><tr><td>SenSR</td><td>.787±.003</td><td>.789±.003</td><td>.068±.004</td><td>.055±.003</td><td>.087±.005</td><td>.067±.004</td></tr><tr><td>Baseline</td><td>.813±.001</td><td>.829±.001</td><td>.179±.004</td><td>.089±.003</td><td>.216±.003</td><td>.105±.003</td></tr><tr><td>Project</td><td>.813±.001</td><td>.827±.001</td><td>.145±.004</td><td>.064±.003</td><td>.192±.004</td><td>.086±.004</td></tr><tr><td>Adv. Debias.</td><td>.812±.001</td><td>.815±.002</td><td>.082±.005</td><td>.070±.006</td><td>.110±.006</td><td>.078±.005</td></tr><tr><td>CoCL</td><td>1</td><td>.790</td><td>.163</td><td>.080</td><td>.201</td><td>.109</td></tr></table>
|
| 591 |
+
|
| 592 |
+
# D ADDITIONAL ADULT EXPERIMENT DETAILS
|
| 593 |
+
|
| 594 |
+
# D.1 PREPROCESSING
|
| 595 |
+
|
| 596 |
+
The continuous features in Adult are the following: age, fnlwgt, capital-gain, capital-loss, hours-per-week, and education-num. The categorical features are the following: workclass, education, marital-stataus, occupation, relationship, race, sex, native-country. See Dua & Graff (2017) for a description of each feature. We remove fnlwgt and education but keep education-num, which is a integer representation of education. We do not use native-country, but use race and sex as predictive features. We treat race as binary: individuals are either White or non-White. For every categorical feature, we use one hot encoding. For every continuous feature, we standardize, i.e., subtract the mean and divide by the standard deviation. We remove anyone with missing data leaving 45,222 individuals.
|
| 597 |
+
|
| 598 |
+
This data is imbalanced: $2 5 \%$ make at least $\$ 50\mathbf { k }$ per year. Furthermore, there is demographic imbalance with respect to race and gender as well as class imbalance on the outcome when conditioning on race or gender: $86 \%$ of individuals are white of which $26 \%$ make at least $\$ 50\mathbf { k }$ a year; $67 \%$ of individuals are male of which $31 \%$ make at least $\$ 50\mathbf { k }$ a year; $11 \%$ of females make at least $\$ 50\mathbf { k }$ a year; and $15 \%$ of non-whites make at least $\$ 50\mathbf { k }$ a year.
|
| 599 |
+
|
| 600 |
+
# D.2 FULL EXPERIMENTAL RESULTS
|
| 601 |
+
|
| 602 |
+
See Tables 4 and 5 for the full experiment results. The tables report the average and the standard error for each metric on the test set for 10 train and test splits.
|
| 603 |
+
|
| 604 |
+
# D.3 SENSITIVE SUBSPACE
|
| 605 |
+
|
| 606 |
+
To learn the hyperplane that classifies females and males, we use our implementation of regularized logistic regression with a batch size of 5k, 5k epochs, and . $1 \ell _ { 2 }$ regularization.
|
| 607 |
+
|
| 608 |
+
Table 5: Summary of individual fairness metrics in Adult classification experiments over 10 restarts
|
| 609 |
+
|
| 610 |
+
<table><tr><td></td><td>Spouse Consistency</td><td>Gender and Race Consistency</td></tr><tr><td>SenSR</td><td>.934±.012</td><td>.984±.000</td></tr><tr><td>Baseline</td><td>.848±.008</td><td>.865±.004</td></tr><tr><td>Project</td><td>.868±.005</td><td>1±0</td></tr><tr><td>Adv.Debias.</td><td>.807±.002</td><td>.841±.012</td></tr></table>
|
| 611 |
+
|
| 612 |
+
# D.4 HYPERPARAMETERS AND TRAINING
|
| 613 |
+
|
| 614 |
+
For each model, we use the same 10 train/test splits where use $80 \%$ of the data for training. Because of the class imbalance, each minibatch is sampled so that there are an equal number of training points from both the “income at least $\$ 50\mathrm { k }$ class” and the “income below $\$ 50\mathbf { k }$ class.”
|
| 615 |
+
|
| 616 |
+
# D.4.1 BASELINE, PROJECT, AND SENSR
|
| 617 |
+
|
| 618 |
+
See Table 3 for the hyperparameters we used when training Baseline, Project, and SenSR (Baseline and Project use a subset). Hyperparameters are defined in Appendix C.
|
| 619 |
+
|
| 620 |
+
# D.4.2 ADVESARIAL DEBIASING
|
| 621 |
+
|
| 622 |
+
We used Zhang et al. (2018)’s adversarial debiasing implementation in IBM’s AIF360 package (Bellamy et al., 2018) where the source code was modified so that each mini-batch is balanced with respect to the binary labels just as we did with our experiments and dropout was not used. Hyperparameters are the following: adversary loss weight $\qquad = \ . 0 0 1$ , num epochs $= 5 0 0$ , batch size $= 1 0 0 0$ , and privileged groups are defined by binary gender and binary race.
|
| 623 |
+
|
| 624 |
+
# D.5 GROUP FAIR METRICS
|
| 625 |
+
|
| 626 |
+
Let $\mathcal { C }$ be a set of classes, $A$ be a binary protected attribute and $Y , { \hat { Y } } \in { \mathcal { C } }$ be the true class label and the predicted class label. Then for $a \in \{ 0 , 1 \}$ and $c \in { \mathcal { C } }$ define $\mathrm { T P R } _ { a , c } = \mathbb { P } ( \hat { Y } = c | A = a , Y = c )$ ; $\begin{array} { r l } & { \mathrm { G a p } _ { A , c } = \mathrm { T P R } _ { 0 , c } - \mathrm { T P R } _ { 1 , c } ; \mathrm { G a p } _ { A } ^ { \mathrm { R M S } } = \sqrt { \frac { 1 } { | C | } \sum _ { c \in C } \mathrm { G a p } _ { A , c } ^ { 2 } } ; \mathrm { G a p } _ { A } ^ { \mathrm { m a x } } = \mathrm { a r g m a x } _ { c \in C } | \mathrm { G a p } _ { A , c } | } \\ & { \mathrm { B a l a n c e d ~ A c c } = \frac { 1 } { | C | } \sum _ { c \in C } \mathbb { P } ( \hat { Y } = c | Y = c ) . } \end{array}$
|
| 627 |
+
|
| 628 |
+
For Adult, we report GapRMR , ${ \mathrm { G a p } } _ { G } ^ { \mathrm { R M S } }$ , ${ \mathrm { G a p } } _ { R } ^ { \operatorname* { m a x } }$ , and ${ \mathrm { G a p } } _ { G } ^ { \mathrm { m a x } }$ where $\mathcal { C }$ is composed of the two classes that correspond to whether someone made at least $\$ 50\mathbf { k }$ , $R$ refers to race, and $G$ refers to gender.
|
parse/train/B1gdkxHFDH/B1gdkxHFDH_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1gdkxHFDH/B1gdkxHFDH_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/B1gdkxHFDH/B1gdkxHFDH_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H139Q_gAW/H139Q_gAW.md
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# LEARNING GRAPH CONVOLUTION FILTERS FROM DATA MANIFOLD
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Convolution Neural Network (CNN) has gained tremendous success in computer vision tasks with its outstanding ability to capture the local latent features. Recently, there has been an increasing interest in extending CNNs to the general spatial domain. Although various types of graph convolution and geometric convolution methods have been proposed, their connections to traditional 2D-convolution are not well-understood. In this paper, we show that depthwise separable convolution is a path to unify the two kinds of convolution methods in one mathematical view, based on which we derive a novel Depthwise Separable Graph Convolution that subsumes existing graph convolution methods as special cases of our formulation. Experiments show that the proposed approach consistently outperforms other graph convolution and geometric convolution baselines on benchmark datasets in multiple domains.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Convolution Neural Network (CNN) (LeCun et al., 1995) has been proven to be an efficient model family in extracting hierarchical local patterns from grid-structured data, which has significantly advanced the state-of-the-art performance of a wide range of machine learning tasks, including image classification, object detection and audio recognition (LeCun et al., 2015). Recently, growing attention has been paid to dealing with data with an underlying graph/non-Euclidean structure, such as prediction tasks in sensor networks (Xingjian et al., 2015), transportation systems (Li et al., 2017), and 3D shape correspondence application in the computation graphics (Bronstein et al., 2017). How to replicate the success of CNNs for manifold-structured data remains an open challenge.
|
| 12 |
+
|
| 13 |
+
Many graph convolution and geometric convolution methods have been proposed recently. The spectral convolution methods (Bruna et al., 2013; Defferrard et al., 2016; Kipf & Welling, 2016) are the mainstream algorithm developed as the graph convolution methods. Because their theory is based on the graph Fourier analysis (Shuman et al., 2013), one of their major limitations is that in this model the knowledge learned from different graphs is not transferrable (Monti et al., 2016). Other group of approaches is geometric convolution methods, which focuses on various ways to leverage spatial information about nodes(Masci et al., 2015; Boscaini et al., 2016; Monti et al., 2016). Existing models mentioned above are either not capable of capturing spatial-wise local information as in the standard convolution, or tend to have very large parameter space and hence, are prone to overfitting. As a result, both the spectral and the geometric convolution methods have not produced the results comparable to CNNs on related tasks. Such a misalignment makes it harder to leverage the rapidly developing 2D-convolution techniques in the generic spatial domain. We note graph convolution methods are also widely used in the pure graph structure data, like citation networks and social networks (Kipf & Welling, 2016). Our paper will only focus on the data with the spatial information.
|
| 14 |
+
|
| 15 |
+
In this paper, we provide a unified view of the graph convolution and traditional 2D-convolution methods with the label propagation process (Zhu et al., 2003). It helps us better understand and compare the difference between them. Based on it, we propose a novel Depthwise Separable Graph Convolution (DSGC), which inherits the strength of depthwise separable convolution that has been extensively used in different state-of-the-art image classification frameworks including Inception Network (Szegedy et al., 2016), Xception Network (Chollet, 2016) and MobileNet (Howard et al., 2017). Compared with previous graph and geometric methods, the DSGC is more expressive and aligns closer to the depthwise separable convolution network, and shares the desirable characteristic of small parameter size as in the depthwise separable convolution. In experiments section, we evaluate the DSGC and baselines in three different machine learning tasks. The experiment results show that the performance of the proposed method is close to the standard convolution network in the image classification task on CIFAR dataset. And it outperforms previous graph convolution and geometric convolution methods in all tasks. Furthermore, we demonstrate that the proposed method can easily leverage the advanced technique developed for the standard convolution network to enhance the model performance, such as the Inception module (Szegedy et al., 2016), the DenseNet architecture (Huang et al., 2016) and the Squeeze-and-Excitation block (Hu et al., 2017).
|
| 16 |
+
|
| 17 |
+
The main contribution of this paper is threefold:
|
| 18 |
+
|
| 19 |
+
• A unified view of traditional 2D-convolution and graph convolution methods by introducing depthwise separable convolution.
|
| 20 |
+
• A novel Depthwise Separable Graph Convolution (DSGC) for spatial domain data.
|
| 21 |
+
• We demonstrate the efficiency of the DSGC with extensive experiments and show that it can facilitate the advanced technique of the standard convolution network to improve the model performance.
|
| 22 |
+
|
| 23 |
+
# 2 A GRAPH PERSPECTIVE OF CONVOLUTION
|
| 24 |
+
|
| 25 |
+
We provide a unified view of label propagation and graph convolution by showing that they are different ways to aggregate local information over the graphs or data manifolds. We then discuss connections between graph convolution and depthwise separable convolution over the 2D-grid graph, which motivates us to propose a new formulation that subsumes both methods as special cases.
|
| 26 |
+
|
| 27 |
+
Unless otherwise specified, we denote a matrix by $\boldsymbol { X }$ , the $i$ -th row in the matrix by $\mathbf { \Delta } _ { \mathbf { \mathcal { X } } _ { i } }$ , and $( i , j )$ -th element in the matrix by $x _ { i j }$ . Superscripts are used to distinguish different matrices when necessary. All the operations being discussed below can be viewed as a function that transforms input feature maps $\pmb { X } \in \mathbb { R } ^ { N \times P }$ to output feature maps $\pmb { Y } \in \mathbb { R } ^ { N \times Q }$ , where $N$ is the number of nodes in the graph and $P , Q$ are the number of input and features (channels) associated with each node respectively. We use $\mathcal { N } ( i )$ to denote the set of neighbors for $i$ -th node.
|
| 28 |
+
|
| 29 |
+
# 2.1 LABEL PROPAGATION
|
| 30 |
+
|
| 31 |
+
Label propagation (LP) (Zhu et al., 2003) is a classic approach to aggregate local information over a graph. The basic version of LP can be written as
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
y _ { i q } = \sum _ { j \in \mathcal { N } ( i ) } w _ { i j } x _ { j q }
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
where $W$ is a normalized adjacency matrix that summarizes the graph structure. The intuition is that the value of node $i$ is updated via a weighted combination of its neighbors.
|
| 38 |
+
|
| 39 |
+
# 2.2 GRAPH CONVOLUTION
|
| 40 |
+
|
| 41 |
+
Graph convolution (Kipf & Welling, 2016) (GC) is a recently proposed graph convolution operator that can be viewed as an extension of LP, formulated as
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
y _ { i q } = \sum _ { j \in \mathcal { N } ( i ) } w _ { i j } z _ { j q } \quad w h e r e \quad z _ { j } = U \pmb { x } _ { j }
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
where $W$ is a symmetrically normalized adjacency matrix with a ridge on its diagonal, which is a deterministic matrix given the input data, and $\dot { \pmb { U } } \in \mathbb { R } ^ { P \times Q }$ represents a linear transformation. Following the Chollet (2016), $W$ is named as the spatial filter and $U$ is named as the channel filter. The original form of graph convolution, such as the Spectral Network (Bruna et al., 2013), is derived from graph signal processing (Shuman et al., 2013) as a generalization of Fourier analysis to the domain of graphs. Several limitations of the Spectral Network, such as its high computation complexity and the lack of locality, are addressed in Defferrard et al. (2016) (ChebyNet) and further refined by Kipf & Welling (2016) via approximation.
|
| 48 |
+
|
| 49 |
+

|
| 50 |
+
Figure 1: Visualization of different convolution operations with three output channels. We use different colors to represent different filters (weight configurations of the links). (a) DSC defined on 2D grid graphs. (b) GC defined on generic graphs. (c) DSGC defined on generic graphs.
|
| 51 |
+
|
| 52 |
+
To Compare LP with GC, the former only utilizes the graphical information, while the latter has an additional linear transformation of $\boldsymbol { \mathscr { x } } _ { j }$ to into the intermediate representation $z _ { j }$ via matrix $U$ . This additional step makes GC capable of capturing the dependencies among features (channels), which yields performance improvement.
|
| 53 |
+
|
| 54 |
+
# 2.3 DEPTHWISE SEPARABLE CONVOLUTION
|
| 55 |
+
|
| 56 |
+
For a full 2d-convolution layer, the convolution filters encode channel correlation and spatial correlation simultaneously (Chollet, 2016). Then depthwise separable convolution (DSC) is proposed under the intuition that the channel correlation and spatial correlation could be decoupled, and has been found successful in several modern architectures for image classification (Chollet, 2016). We choose to focus on DSC (instead of full convolution) because of its strong empirical performance with a small number of parameters, and its intimate connections to GC which will be revealed in the following. And we discuss the full convolution formulation with the label propagation process in Section 5.
|
| 57 |
+
|
| 58 |
+
By viewing each pixel in the image as a node, DSC can be formulated in a graph-based fashion
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
y _ { i q } = \sum _ { j \in \mathcal { N } ( i ) } w _ { \Delta _ { i j } } ^ { ( q ) } z _ { j q } \quad w h e r e \quad z _ { j } = U x _ { j }
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
where $\Delta _ { i j }$ denotes the relative position of pixel $i$ and pixel $j$ on the image, and $w ^ { ( q ) }$ can be viewed as a lookup table with the pixel-pixel offset $\Delta _ { i j }$ as the key, according to the stationarity (weightsharing) assumption of convolution. In the context of images, $\mathcal { N } ( i )$ denotes the index set of surrounding pixels for $i$ -th pixel, which is equivalent to the $k$ -nearest neighbor set under the Euclidean distant metric. For example, the size of $\bar { \mathcal { N } } ( i )$ , or $k$ , is 9 for a $3 \times 3$ convolution filter (considering self-loop).
|
| 65 |
+
|
| 66 |
+
# 3 PROPOSED METHOD
|
| 67 |
+
|
| 68 |
+
# 3.1 DEPTHWISE SEPARABLE GRAPH CONVOLUTION
|
| 69 |
+
|
| 70 |
+
We notice that the formulation of GC and DSC is similar except that
|
| 71 |
+
|
| 72 |
+
1. Spatial filters in DSC are channel-specific, while GC uses a global spatial filter. 2. Spatial filters in DSC are learned from the data (under the stationarity constraints), while the filter in GC is a constant matrix with the given input.
|
| 73 |
+
|
| 74 |
+
On the one hand, DSC does not apply to the domain of generic spatial data lying on the manifold where the space of $\Delta _ { i j }$ (defined as the difference of the spatial coordinates between node $i$ and node $j$ ) can be infinite. On the other hand, GC suffers from the restriction that all channels have to share the same given spatial filter. This heavily constrains the model capacity, which would be more severe when the deeper network structure is used. In the context of graphs, it would be desirable to have multiple spatial filters—to capture a diverse set of diffusion patterns over the graph or data manifold, which is the same as the convolution filters in the image domain.
|
| 75 |
+
|
| 76 |
+
To address these limitations, we propose Depthwise Separable Graph Convolution (DSGC) which naturally generalizes both GC and DSC
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
y _ { i q } = \sum _ { j \in \mathcal { N } ( i ) } w ^ { ( q ) } ( \Delta _ { i j } ) z _ { j q } \quad w h e r e \quad z _ { j } = U x _ { j }
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
where we slightly abuse the notation by overloading $w ^ { ( q ) } ( \cdot )$ as a function, which maps $\Delta _ { i j }$ to a real number, and $\mathcal { N } ( i )$ still represents the $k$ -nearest neighbor sets. To understand the proposed formulation, notice
|
| 83 |
+
|
| 84 |
+
1. Different from DSC, the stationarity requirement is implemented in a “soft” manner by defining a function instead of by the set of equality constraints. In our experiment, each $w ^ { ( q ) } ( \cdot )$ is a function parameterized by a two-layer MLP.
|
| 85 |
+
2. Different from GC, channel-specific convolution is enabled by learning multiple spatial convolution filters. This amounts to simultaneously constructing multiple graphs under the different node-node similarity metrices, where the metrices are implicitly defined by neural networks and hence, are jointly optimized during the training.
|
| 86 |
+
|
| 87 |
+
Overfitting is a common issue in graph-based applications, due to limited data available. To alleviate this issue, we propose an option to group the channels into $C$ groups, where $D = Q / C$ channels in the same group would share the same filter.
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
w ^ { ( q ) } ( \cdot ) = w ^ { ( q ^ { \prime } ) } ( \cdot ) \quad i f \quad \lfloor \frac { q } { D } \rfloor = \lfloor \frac { q ^ { \prime } } { D } \rfloor
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
# 3.2 NORMALIZATION
|
| 94 |
+
|
| 95 |
+
The context of each node in any given generic graph, namely its connection pattern with neighbors, can be non-stationary over different parts of the graph, while it is constant in the 2d-grid graphs. It is, therefore, a common practice to normalize the adjacency matrix in order to make the nodes adaptive to their own contexts (Eq.1). A natural way to carry out normalization for DSGC is to apply a softmax function over the predicted spatial filter weights at each node, which can be written as $\tilde { \pmb { w } } _ { i } = s o f t m a x ( \pmb { w } _ { i } )$ , where ${ \pmb w } _ { i }$ stands for the $i$ -th row of spatial filter $W$ learned by a neural network. We empirically find normalization leads to better performance and significantly speeds up the convergence.
|
| 96 |
+
|
| 97 |
+
In the following experiments, we use the proposed depthwise separable graph convolution with a linear highway bypass as the basic convolution component and imitate the rest setting of the standard convolution neural network to solve different machine learning tasks.
|
| 98 |
+
|
| 99 |
+
# 4 EXPERIMENTS
|
| 100 |
+
|
| 101 |
+
# 4.1 EXPERIMENT SETTING
|
| 102 |
+
|
| 103 |
+
We evaluate the proposed Depthwise Separable Graph Convolution (DSGC) method with representative baselines in the prediction tasks of image classification, time series forecasting, and document categorization. The algorithms are implemented in PyTorch; all the data and the code are made publicly accessible 1. For controlled experiments, all the graph convolution methods share the same empirical settings unless otherwise specified, including network structures, the dimension of latent factors, and so on. The optimization algorithm is applied to all models. The neural network used to model the spatial convolution filter $( w ^ { ( q ) } ( \cdot ) )$ in Eq.4 is a two-layers MLP with 256 hidden dimension and tanh activation function. We have conducted ablation tests with the two-layer MLP by changing the number of layers and activation function of each hidden layer, and by trying several weight sharing strategies. The results are very similar; the two-layer MLP provides a reasonable performance with the shortest running time. Appendix A contains more details, such as the network architecture and model hyper-parameters.
|
| 104 |
+
|
| 105 |
+
# 4.2 EVALUATION ON IMAGE CLASSIFICATION
|
| 106 |
+
|
| 107 |
+
We conduct experiments on CIFAR10 and CIFAR100 (Krizhevsky & Hinton, 2009), which are popular benchmark datasets in image classification. Both sets contain 60000 images with $3 2 \times 3 2$ pixels but CIFAR10 has 10 category labels and CIFAR100 has 100 category labels. Each image is typically treated as a $3 2 \times 3 2$ grid structure for standard image-based convolution. To enable the comparison on generic graphs, we create the modified versions of CIFAR10 and CIFAR100, respectively, by subsampling only $2 5 \%$ of the pixels from each graph. As illustrated in Figure 2, the subsampling results in irregularly scattered nodes for each image.
|
| 108 |
+
|
| 109 |
+

|
| 110 |
+
Figure 2: How to construct subsampled CIFAR datasets: (a) is an example image from CIFAR dataset. (b) is the subsampled pixels map. The blue points indicate which points are sampled. (c) is the image after sampling, where the black points are those being sampled out.
|
| 111 |
+
|
| 112 |
+
For comparison we include the traditional 2d convolution and graph convolution networks as baselines, including standard CNN; Xception network (Chollet, 2016) which uses the depthwise separable convolution; DCNN (Atwood & Towsley, 2016), the method using multi-hops random walk as the graph filters; ChebyNet (Defferrard et al., 2016), the method using Chebyshev polynomial to approximate the Fourier transformation of (irregular) graphs; GCN (Kipf & Welling, 2016) which is described in Section 2; MoNet (Monti et al., 2016), the method using Gaussian function to define the propagation weights over (irregular) graphs. For a fair comparison, we use the VGG13 architecture (Simonyan & Zisserman, 2014) in all the methods above as the basic platform, and replace the convolution layers according to the methods. The pooling layer is performed by the kmean clustering. The centroid of each clusters is regarded as the new node after pooling, and its hidden vector is the mean or max over the nodes in the cluster, based on the pooling method. Notice that, we only normalize the input signals to [0,1] and do not have other preprocessing or data augmentation.
|
| 113 |
+
|
| 114 |
+
The experiment results are summarized in Table 1. Firstly, we observe that Xception and CNN have the best results; this is not surprising because both methods use grid-based convolution which is naturally suitable for image recognition. Secondly, DSGC outperforms all the other graph-based convolution methods, and its performance is very close to that of the grid-based convolution methods. Furthermore, contributed by the depthwise separable convolution and sharing graph technique, our model can achieve the competitive performance without increasing the number of parameters as GCN, the one with the smallest number of parameters among the graph convolution approaches. In appendix A.4, we further report the variance of DSGC model, which shows the improvement is significant and stable.
|
| 115 |
+
|
| 116 |
+
# 4.3 EVALUATION ON TIME SERIES FORECASTING
|
| 117 |
+
|
| 118 |
+
As another important application domain, here we are interested in how to effectively utilize the locality information about sensor networks in time series forecasting. For example, how to incorporate the longitudes/latitudes of sensors w.r.t. temporal cloud movement is an important question in spatiotemporal modeling for predicting the output of solar energy farms in the United States. Appendix A provides the formal definition of this task.
|
| 119 |
+
|
| 120 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3>Subsampled Graphs</td><td rowspan=1 colspan=5>Original Graphs</td></tr><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>CIFAR100</td><td rowspan=1 colspan=1>P</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=3>CIFAR100</td><td rowspan=1 colspan=1>P</td></tr><tr><td rowspan=5 colspan=1>DCNN (Atwood & Towsley, 2016)ChebyNet (Defferrard et al., 2016)GCN (Kipf & Welling,2016)MoNet (Monti et al., 2016)DSGC</td><td rowspan=5 colspan=1>43.68%25.04%26.78%21.20%18.72%</td><td rowspan=5 colspan=1>76.65%49.44%51.30%47.87%44.33%</td><td rowspan=1 colspan=1>12M</td><td rowspan=1 colspan=1>55.56%</td><td rowspan=1 colspan=3>84.16%</td><td rowspan=1 colspan=1>50M</td></tr><tr><td rowspan=2 colspan=1>10M5.6M</td><td rowspan=2 colspan=1>12.99%19.09%</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=2>36.96%</td><td rowspan=1 colspan=1>19M</td></tr><tr><td rowspan=1 colspan=2>41.64 %</td><td rowspan=1 colspan=2>41.64 %</td><td rowspan=1 colspan=1>9.8M</td></tr><tr><td rowspan=1 colspan=1>11M</td><td rowspan=1 colspan=1>8.34%</td><td rowspan=1 colspan=3>29.56%</td><td rowspan=1 colspan=1>20M</td></tr><tr><td rowspan=1 colspan=1>5.7M</td><td rowspan=1 colspan=1>7.31%</td><td rowspan=1 colspan=3>27.29%</td><td rowspan=1 colspan=1>9.9M</td></tr><tr><td rowspan=2 colspan=1>CNN (Simonyan & Zisserman, 2014)Xception (Chollet,2016)</td><td rowspan=2 colspan=1>18.03%17.07%</td><td rowspan=2 colspan=1>43.42%41.54%</td><td rowspan=1 colspan=1>18M</td><td rowspan=1 colspan=1>6.86%</td><td rowspan=1 colspan=3>26.86%</td><td rowspan=1 colspan=1>18M</td></tr><tr><td rowspan=1 colspan=1>3.1M</td><td rowspan=1 colspan=1>7.08%</td><td rowspan=1 colspan=3>26.84%</td><td rowspan=1 colspan=1>3.1M</td></tr></table>
|
| 121 |
+
|
| 122 |
+
Table 1: Test-set error rates: P is the number of parameters
|
| 123 |
+
|
| 124 |
+
We choose three publicly available benchmark datasets for this task:
|
| 125 |
+
|
| 126 |
+
• The U.S Historical Climatology Network $\mathrm { ( U S H C N ) }$ dataset contains daily climatological data from 1,218 meteorology sensors over the years from 1915 to 2000. The sequence length is 32,507. It includes five subsets, and each has a climate variable: (1) maximum temperature, (2) minimum temperature, (3) precipitation, (4) snowfall and (5) snow depth. We use the daily maximum temperature data and precipitation data, and refer them as the USHCN-TMAX and USHCN-PRCP sets, respectively.
|
| 127 |
+
• The solar power production records in the year of $2 0 0 6 ^ { 3 }$ has the data with the production rate of every 10 minutes from 1,082 solar power stations in the west of the U.S. The sequence length is 52,560. We refer this set of data as Solar.
|
| 128 |
+
|
| 129 |
+
All the datasets have been split into the training set $( 6 0 \% )$ , the validation set $( 2 0 \% )$ and the test set $( 2 0 \% )$ in chronological order.
|
| 130 |
+
|
| 131 |
+
All the graph convolution methods (DCNN, ChebyNet, GCN and MoNet) in the previous section (Section 4.2) are included to form the baselines for comparison. We also add traditional methods for time series forecasting, such as (1) Autoregressive model (AR) which predicts future signal using a window of historical data based on a linear assumption about temporal dependencies, (2) Vector autoregressive model (VAR) which extends AR to the multivariate version, namely, the input is the signals from all sensors in the history window, and (3) the LSTNet deep neural network model (Lai et al., 2017) which combines the strengths of CNN, RNN and AR. None of those methods is capable of leveraging locational dependencies via graph convolution. We exclude the CNN and Xception methods, the 2D-grid based convolution, which could not be generalized to irregular graphs which we focus here.
|
| 132 |
+
|
| 133 |
+
Table 2 summarizes the evaluation results of all the methods, where the performance is measured using the Root Square Mean Error (RMSE). The best result on each dataset is highlighted in boldface. The first chunk of three methods does not leverage the spatial or locational information in data. The second chuck consists of the neural network models which leverage the spatial information about sensor networks. The graph convolution methods in the second chunk clearly outperforms the methods in the first chunk, which does not explicitly model the spacial correlation within sensor networks. Overall, our proposed method (DSGC) has the best performance on all the datasets, demonstrating its strength in capturing informative local propagation patterns temporally and specially.
|
| 134 |
+
|
| 135 |
+
# 4.4 DOCUMENT CATEGORIZATION
|
| 136 |
+
|
| 137 |
+
For the application to text categorization we use the 20NEWS dataset (Joachims (1996)) for our experiments. It consists of 18,845 text documents associated with 20 topic labels. Individual words in the document vocabulary are the nodes in the graph for convolution. Each node also has its word embedding vector which is learned by running the Word2Vec algorithm (Mikolov et al. (2013)) on this corpus. Following the experiment settings in Defferrard et al. (2016) we select the top 1000 most frequent words as the nodes. Table 3 summarizes the results of the graph convolution methods plus three popular traditional classifiers (Linear SVM, Multivariate Naive Bayes and Softmax). DSGC has the best result on this dataset. Notice that the traditional classifiers are trained and tested with
|
| 138 |
+
|
| 139 |
+
Table 2: Time series prediction: Experiment result in terms of RMSE.
|
| 140 |
+
|
| 141 |
+
<table><tr><td>Dataset</td><td>USHCN-TMAX</td><td>USHCN-PRCP</td><td>Solar</td></tr><tr><td>AR VAR</td><td>8.2354</td><td>30.3825</td><td>0.03195</td></tr><tr><td>LSTNet (Lai et al., 2017)</td><td>17.9743 10.1973</td><td>29.2597 29.0624</td><td>0.03296 0.02865</td></tr><tr><td>DCNN (Atwood & Towsley, 2016)</td><td>6.5188</td><td>29.0424</td><td>0.02652</td></tr><tr><td>ChebyNet (Defferrard et al., 2016)</td><td>5.5823</td><td>27.1298</td><td>0.02531</td></tr><tr><td>GCN (Kipf & Welling, 2016)</td><td>5.4671</td><td>27.1172</td><td>0.02512</td></tr><tr><td>MoNet (Monti et al., 2016)</td><td>5.8263</td><td>26.8076</td><td>0.02564</td></tr><tr><td>DSGC</td><td>5.1738</td><td>25.8228</td><td>0.02453</td></tr></table>
|
| 142 |
+
|
| 143 |
+
the feature set of the top 1000 words, which is the same setting as in the graph convolution models.
|
| 144 |
+
If all words are used, traditional classifiers would have higher performance.
|
| 145 |
+
|
| 146 |
+
Table 3: Accuracy on the validation set. The results with † come from Defferrard et al. (2016).
|
| 147 |
+
|
| 148 |
+
<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>Linear SVM†Multinomial Naive Bayes†SoftmaxtFC2500tFC2500-FC500t</td><td rowspan=1 colspan=1>65.90%68.51%66.28%64.64%65.76%</td></tr><tr><td rowspan=1 colspan=1>DCNN (Atwood & Towsley, 2016)ChebyNet (Defferrard et al., 2016)GCN (Kipf & Welling, 2016)MoNet (Monti et al., 2016)DSGC</td><td rowspan=1 colspan=1>70.35%70.92%71.01%70.60%71.88%</td></tr></table>
|
| 149 |
+
|
| 150 |
+
# 4.5 DSGC VARIANTS WITH ADVANCED CONVOLUTION ARCHITECTURES
|
| 151 |
+
|
| 152 |
+
The proposed convolution method (DSGC) can be considered as an equivalent component to the depthwise separable convolution method. Naturally, we can leverage the technique developed for the standard convolution network to improve the DSGC framework. Hence we examine DSGC with the following techniques which are popular in recent years for standard convolution over images: (1) Inception module (Szegedy et al., 2016), (2) DenseNet framework (Huang et al., 2016) and (3) Squeeze-and-Excitation block (Hu et al., 2017). The details of those architectures are included in the Appendix A. The results are presented in Table 4. Clearly, combined with the advantageous techniques/architectures, the performance of DSGC in image classificationcan can be further improved. It demonstrates that the DSGC can easily enjoy the benefit of the traditional 2d-convolution network development.
|
| 153 |
+
|
| 154 |
+
Table 4: Summary of error rate on the test set in different settings.
|
| 155 |
+
|
| 156 |
+
<table><tr><td></td><td colspan="3">Subsampled Graphs</td><td colspan="3">Original Graphs</td></tr><tr><td>Dataset</td><td>CIFAR10</td><td>CIFAR100</td><td>P</td><td>CIFAR10</td><td>CIFAR100</td><td>P</td></tr><tr><td>DSGC-VGG13</td><td>18.72%</td><td>44.33%</td><td>5.7M</td><td>7.31%</td><td>27.29%</td><td>9.9M</td></tr><tr><td>DSGC-INCEPTION</td><td>18.27%</td><td>43.41%</td><td>9.9M</td><td>6.44%</td><td>28.55%</td><td>12M</td></tr><tr><td>DSGC-DenseNet</td><td>17.17%</td><td>43.34%</td><td>2.7M</td><td>7.14%</td><td>26.50%</td><td>2.9M</td></tr><tr><td>DSGC-SE</td><td>18.71%</td><td>44.15%</td><td>6.1M</td><td>7.00%</td><td>27.26%</td><td>10M</td></tr><tr><td>CNN</td><td>18.03%</td><td>43.42%</td><td>18M</td><td>6.86%</td><td>26.86%</td><td>18M</td></tr><tr><td>Xception</td><td>17.07%</td><td>41.54%</td><td>3.1M</td><td>7.08%</td><td>26.84%</td><td>3.1M</td></tr></table>
|
| 157 |
+
|
| 158 |
+
# 4.6 TRAINING TIME COMPARISON
|
| 159 |
+
|
| 160 |
+
In table 5, we report the mean training time per epoch for DSGC and GCN, the fastest graph convolution baseline. In DSGC, our model computes the convolution weight for each edge of the graph, which requires more computation resources. However, we always perform the graph convolution on the sparse graph, which the number of edges grows only linearly in the graph size. Therefore the training is fairly efficient. Notably, learning the convolution filters as in DSGC leads to consistently better performance over all previous methods, with around $0 . 5 \mathrm { x } - 3 \mathrm { x }$ running time.
|
| 161 |
+
|
| 162 |
+
Table 5: Training time per epoch for GCN and DSGC methods. The unit is minute.
|
| 163 |
+
|
| 164 |
+
<table><tr><td>Dataset</td><td>CIFAR</td><td>USHCN-TMAX</td><td>20news</td></tr><tr><td>GCN</td><td>1.75</td><td>0.465</td><td>0.207</td></tr><tr><td>DSGC</td><td>3.81</td><td>1.73</td><td>0.280</td></tr></table>
|
| 165 |
+
|
| 166 |
+
# 5 RELATED WORK
|
| 167 |
+
|
| 168 |
+
In this section, we will summarize the graph convolution methods proposed in recent years with the label propagation process, which reveals the difference between traditional 2D-convolution and them. Firstly, we provide the formulation of the full convolution (LeCun et al., 1995),
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
y _ { i q } = \sum _ { p = 1 } ^ { P } \sum _ { j \in \mathcal { N } ( i ) } w _ { \Delta _ { i j } } ^ { ( p q ) } x _ { j p }
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
different from the depthwise separable convolution, it captures the channel correlation and spatial correlation simultaneously by $W ^ { ( p q ) }$ , which leads to the larger number of parameters.
|
| 175 |
+
|
| 176 |
+
In Spectral Network (Bruna et al., 2013), the authors try to leverage the graph Fourier transformation as the basic convolution operation in the graph domain, which can be written as,
|
| 177 |
+
|
| 178 |
+
$$
|
| 179 |
+
y _ { i q } = \sum _ { p = 1 } ^ { P } \sum _ { j \in \mathcal { N } ( i ) } w _ { i j } ^ { ( p q ) } x _ { j p } w h e r e W ^ { p q } = \Phi \Lambda ^ { p q } \Phi ^ { T }
|
| 180 |
+
$$
|
| 181 |
+
|
| 182 |
+
where $\Phi \in \mathbb { R } ^ { n \times n }$ contains the eigenvectors of Laplacian matrix of the graph, and $\Lambda$ is a diagonal matrix and learned by the supervision data. The Spectral Network can be matched with the full convolution, but with the different filter subspace, in other words, with different basic filters. However, it suffers from several limitations. (1) It needs to conduct eigenvector decomposition over the Laplacian Matrix, which is a very expensive operation. (2) The filters are not localized in the spatial domain. (3) The number of parameters grows linearly with the number of nodes in the graph. In order to address the previous problems, researchers try to use the Chebyshev polynomial to approximate the non-parameter filter $\Lambda$ , which is referred to as ChebyNet (Defferrard et al., 2016). It can be written as,
|
| 183 |
+
|
| 184 |
+
$$
|
| 185 |
+
y _ { i q } = \sum _ { k = 1 } ^ { K } \sum _ { j \in \mathcal { N } ( i ) } T _ { k } ( L ) _ { i j } z _ { i q } ^ { ( k ) } \quad w h e r e \quad z _ { i } ^ { ( k ) } = U ^ { ( k ) } \pmb { x } _ { j }
|
| 186 |
+
$$
|
| 187 |
+
|
| 188 |
+
where $T _ { k } ( L )$ is the $k$ -th order Chebyshev polynomial term. The ChebyNet can be considered as the integration of $K$ depthwise separable convolution components in a layer. But still, it suffers from the similar limitation as the GCN, which is using one graph filter over all channels and the graph filter is constant given the input. So its model capacity still cannot compare with depthwise separable convolution. With larger $K$ , the ChebyNet can approximate the non-parameter filers in the Spectral Network. However, it would require large number of parameters and face the similar limitation as the Spectral Network.
|
| 189 |
+
|
| 190 |
+
Besides the graph convolution methods, researchers propose another type of models, geometric convolution methods (Masci et al., 2015; Boscaini et al., 2016; Monti et al., 2016), to deal with data in the general spatial domain. Here, we introduce the most advanced one, MoNet (Monti et al., 2016) framework, which is also the most related one to our paper. The updating formula of MoNet in the label propagation process is,
|
| 191 |
+
|
| 192 |
+
$$
|
| 193 |
+
y _ { i q } = \sum _ { k = 1 } ^ { K } \sum _ { j \in \mathcal { N } ( i ) } w _ { k } \mathopen { } \mathclose \bgroup \left( v ( i , j ) \aftergroup \egroup \right) z _ { j q } ^ { ( k ) } \quad w h e r e \quad z _ { j } ^ { ( k ) } = { U ^ { k } } x _ { j }
|
| 194 |
+
$$
|
| 195 |
+
|
| 196 |
+
where $w _ { k } ( v ) = e x p ( - { \textstyle \frac { 1 } { 2 } } ( v - \mu _ { k } ) ^ { T } \Sigma _ { k } ^ { - 1 } ( v - \mu _ { k } ) )$ , and $v ( i , j )$ is a mapping from a node pair to a embedding vector, similar to $\Delta _ { i j }$ in our model. $\mu _ { k } , \Sigma _ { k }$ are both model parameters, and $\Sigma _ { k }$ is constrained as the diagonal matrix. MoNet can be viewed as an extension of the ChebyNet by letting the graph filters learn from the data. But it still has two limitations compared with the depthwise separable convolution and proposed method: (1) It uses a simple Gaussian function, which is weaker than non-parametric filter in the depthwise separable convolution, and neural network function in the proposed method. (2) It uses a graph filter for all channels. In order to capture complex propagation patterns in a layer, the model requires a larger $K$ , which leads to much larger number of parameters. And finally the experiment results show that the proposed method (DSGC) consistently outperforms the MoNet with less parameters in multiple tasks.
|
| 197 |
+
|
| 198 |
+
# 6 CONCLUSION
|
| 199 |
+
|
| 200 |
+
In this paper, we propose a novel Depthwise Separable Graph Convolution (DSGC) Network which is explicitly generalized from the depthwise separable convolution, and goes beyond to the general graph space. The extensive experiments on multi-field benchmark datasets demonstrate that our method can outperform strong baseline methods with a relatively small number of model parameters, and that it can be easily extended to leverage the advanced techniques/architectures in standard convolution networks for further improvement of the performance. In future work, we want to explore its impact on a broader range of applications, such as social networks and molecular structures by leveraging technical improvements about node/edge embedding based on graph structure information.
|
| 201 |
+
|
| 202 |
+
# REFERENCES
|
| 203 |
+
|
| 204 |
+
James Atwood and Don Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1993–2001, 2016.
|
| 205 |
+
|
| 206 |
+
Davide Boscaini, Jonathan Masci, Emanuele Rodola, and Michael Bronstein. Learning shape cor- \` respondence with anisotropic convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 3189–3197, 2016.
|
| 207 |
+
|
| 208 |
+
Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017.
|
| 209 |
+
|
| 210 |
+
Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013.
|
| 211 |
+
|
| 212 |
+
Franc¸ois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016.
|
| 213 |
+
|
| 214 |
+
Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3844–3852, 2016.
|
| 215 |
+
|
| 216 |
+
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.
|
| 217 |
+
|
| 218 |
+
Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. arXiv preprint arXiv:1709.01507, 2017.
|
| 219 |
+
|
| 220 |
+
Gao Huang, Zhuang Liu, Kilian Q Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016.
|
| 221 |
+
|
| 222 |
+
Thorsten Joachims. A probabilistic analysis of the rocchio algorithm with tfidf for text categorization. Technical report, Carnegie-mellon univ pittsburgh pa dept of computer science, 1996.
|
| 223 |
+
|
| 224 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 225 |
+
|
| 226 |
+
Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016.
|
| 227 |
+
|
| 228 |
+
Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009.
|
| 229 |
+
|
| 230 |
+
Guokun Lai, Wei-Cheng Chang, Yiming Yang, and Hanxiao Liu. Modeling long-and short-term temporal patterns with deep neural networks. arXiv preprint arXiv:1703.07015, 2017.
|
| 231 |
+
|
| 232 |
+
Yann LeCun, Yoshua Bengio, et al. Convolutional networks for images, speech, and time series. The handbook of brain theory and neural networks, 3361(10):1995, 1995.
|
| 233 |
+
|
| 234 |
+
Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015.
|
| 235 |
+
|
| 236 |
+
Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Graph convolutional recurrent neural network: Data-driven traffic forecasting. arXiv preprint arXiv:1707.01926, 2017.
|
| 237 |
+
|
| 238 |
+
Jonathan Masci, Davide Boscaini, Michael Bronstein, and Pierre Vandergheynst. Geodesic convolutional neural networks on riemannian manifolds. In Proceedings of the IEEE international conference on computer vision workshops, pp. 37–45, 2015.
|
| 239 |
+
|
| 240 |
+
Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013.
|
| 241 |
+
|
| 242 |
+
Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M \` Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. arXiv preprint arXiv:1611.08402, 2016.
|
| 243 |
+
|
| 244 |
+
David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, 2013.
|
| 245 |
+
|
| 246 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 247 |
+
|
| 248 |
+
Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2818–2826, 2016.
|
| 249 |
+
|
| 250 |
+
SHI Xingjian, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional lstm network: A machine learning approach for precipitation nowcasting. In Advances in neural information processing systems, pp. 802–810, 2015.
|
| 251 |
+
|
| 252 |
+
Xiaojin Zhu, Zoubin Ghahramani, and John D Lafferty. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the 20th International conference on Machine learning (ICML-03), pp. 912–919, 2003.
|
| 253 |
+
|
| 254 |
+
Table 6: Neural Network architecture for CIFAR datasets. Please see the text for more details.
|
| 255 |
+
|
| 256 |
+
<table><tr><td rowspan=1 colspan=1>Layers</td><td rowspan=1 colspan=3>VGG13</td><td rowspan=1 colspan=3>DSGC-VGG13</td><td rowspan=1 colspan=3>DSGC-DenseNet</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>3 ×3conv]×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=2>9-conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-conv×6</td><td rowspan=1 colspan=1>×6</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2 × 2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>3×3 conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-convx2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=2>9-conv</td><td rowspan=1 colspan=1>×12</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2×2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>[3×3conv]×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-conv]x 2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>[9-conv]×24</td><td rowspan=1 colspan=1>×24</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2 × 2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>3×3conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=3>9-convx2</td><td rowspan=1 colspan=3>9-conv× 16</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2×2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>3×3conv]×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=3></td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2 ×2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Classifier</td><td rowspan=1 colspan=9>512D fully-connected, softmax</td></tr></table>
|
| 257 |
+
|
| 258 |
+
# A EXPERIMENT DETAIL
|
| 259 |
+
|
| 260 |
+
A.1 IMPLEMENTATION DETAILS OF CIFAR EXPERIMENT
|
| 261 |
+
|
| 262 |
+
In section 4.2 and 4.5, we conduct the experiment on the CIFAR10 and CIFAR100 datasets. We will introduce the architecture settings for the DSGC and baseline models. Table 6 illustrates the basic architecture used in the experiment. In the DSGC-VGG13 and DSGC-DenseNet models, the $k$ -conv refers to the spatial convolution (Eq.4) with $k$ -nearest neighbors as the neighbor setting. So the 1-conv is the same as the $1 \times 1$ conv, which is doing linear transformation on channels. The hidden dimensions of VGG13 and DSGC-VGG13 are set as $\{ 2 5 6 , 5 1 2 , 5 1 2 , 5 1 2 \}$ and $\{ 2 5 6 , 5 1 2 , 5 1 2 , 1 0 2 4 \}$ . The growth rate of DSGC-DenseNet is 32. And the baseline graph and geometric convolution methods use the identical architecture as DSGC-VGG13. For the subsampled CIFAR experiment, We eliminate the first convolution, transition and pooling layer, and change the spatial convolution from 9-conv to {16-conv, 12-conv, 8-conv, 4-conv}. For the DSGC-SE, we follow the method described in Hu et al. (2017) to add the SE block to DSGC-VGG13 architecture. We use the dropout scheme described in Huang et al. (2016) for the DSGC-DenseNet model, and add the dropout layer after the pooling layer for VGG13 and DSGC-VGG13 models. For the DSGCInception model, we imitate the design of the Inception Network (Szegedy et al. (2016)). The key idea is letting a convolution layer have different size of convolution filters. We use a simple example as our Inception module, which is illustrated in Figure 3.
|
| 263 |
+
|
| 264 |
+
For the CNN model, we still format the input signal in the matrix shape. The signals in invalid points are set as 0. Furthermore, to perform the fair comparison with standard CNN in the subsampled situation, we append a mask matrix as an additional channel for input signals to indicate whether the pixel is valid or not. For the MoNet, we also apply the softmax trick described in Section 3, which accelerates its training process and improves its final result. For the ChebyNet, we set the polynomial order as $K = 3$ .
|
| 265 |
+
|
| 266 |
+
For the $\triangle _ { i j }$ used in DSGC and MoNet, we use a 5 dimension feature vector. We denote the coordinate of $i$ -th node as $( x _ { i } , y _ { i } )$ , and $\triangle x _ { i j } = x _ { i } - x _ { j } , \triangle y _ { i j } = y _ { i } - y _ { j } , \triangle d _ { i j } = \triangle x _ { i j } ^ { 2 } + \triangle y _ { i j } ^ { 2 }$ . Then $\begin{array} { r } { \triangle _ { i j } = ( s i g n ( \triangle x _ { i j } ) , | \triangle x _ { i j } | , s i g n ( \triangle y _ { i j } ) , | \triangle y _ { i j } | , \triangle d _ { i j } ) } \end{array}$ .
|
| 267 |
+
|
| 268 |
+
The same learning schedule is applied to all models. We use SGD to train the model for 400 epochs. The initial learning rate is 0.1, and is divided by 10 at $50 \%$ and $7 5 \%$ of the total number of training epochs.
|
| 269 |
+
|
| 270 |
+

|
| 271 |
+
Figure 3: Inception Module
|
| 272 |
+
|
| 273 |
+
# A.2 IMPLEMENTATION DETAILS OF TIME SERIES PREDICTION
|
| 274 |
+
|
| 275 |
+
Firstly, we will give the formal definition of the time series forecasting, that is, spatiotemporal regression problem. We formulate the the spatiotemporal regression problem as a multivariate time series forecasting task with the sensors’ location as the input. More formally, given a series of time series signals observed from sensors $Y = \{ y _ { 1 } , y _ { 2 } , \cdot \cdot \cdot , y _ { T } \}$ where $\ b { y } _ { t } \in \mathbb { R } ^ { n }$ and $n$ are the number of sensors, and the locations of sensors $\pmb { L } = \{ l _ { 1 } , l _ { 2 } , \cdots , l _ { n } \}$ where $\bar { \boldsymbol { l } } _ { i } \in \mathbb { R } ^ { 2 }$ and indicates the coordinate of the sensor, the task is to predict a series of future signals in a rolling forecasting fashion. That being said, to predict ${ \pmb { y } } _ { T + h }$ where $h$ is the desirable horizon ahead of the current time stamp $T$ , we assume $\{ { \pmb y } _ { 1 } , { \pmb y } _ { 2 } , \dotsb , { \pmb y } _ { T } \}$ are available. Likewise, to predict the signal of the next time stamp ${ \pmb y } _ { T + h + 1 }$ , we assume $\{ { \pmb y } _ { 1 } , { \pmb y } _ { 2 } , \cdot \cdot \cdot , { \pmb y } _ { T } , { \pmb y } _ { T + 1 } \}$ are available. In this paper, we follow the setting of the autoregressive model. Define a window size $p$ which is a hyper-parameter firstly. The model input at time stamp $T$ is $X _ { T } = \{ y _ { T - p + 1 } , \cdot \cdot \cdot , y _ { T } \} \in \mathbb { R } ^ { n \times p }$ . In the experiments of this paper, the horizon is always set as 1.
|
| 276 |
+
|
| 277 |
+
Intuitively, different sensors may have node-level hidden features to influence its propagation patterns and final outputs. Then for each node, the model learns a node embedding vector and concatenate it with the input signals. By using this trick, each node has limited freedom to interface with its propagation patterns. This trick is proven to be useful in this task, USHCN-PRCP and Solar specifically. We set the embedding size as 10 for these two datasets.
|
| 278 |
+
|
| 279 |
+
One thing readers may notice is that there are $10 \%$ data in USHCN dataset missing. To deal with that, we add an additional feature channel to indicate which point is missing. For the time series models, we tune the historical window $p$ according to the validation set. For the rest of models, we set the window size $p = 1 8$ for Solar dataset and $p = 6$ for USHCN datasets. The network architecture used in this task is 7 convolution layers followed by a regression layer. The $\triangle _ { i j }$ setting is the same as the previous one. We use the Adam optimizer (Kingma & Ba, 2014) for this task, and train each model 200 epochs with learning rate 0.001.
|
| 280 |
+
|
| 281 |
+
# A.3 IMPLEMENTATION DETAILS OF DOCUMENT CATEGORIZATION
|
| 282 |
+
|
| 283 |
+
The data preprocessing follows the experiment details in Defferrard et al. (2016). And the network architecture for all models is 5 convolution layers followed by two MLP layers as the classifier. After each convolution layer, a dropout layer is performed with dropout rate of 0.5. The nodes’ coordinate is the word embedding, and the method to calculate $\triangle _ { i j }$ is similar to the previous ones. The optimizer used in this task is the same as the CIFAR experiment.
|
| 284 |
+
|
| 285 |
+
# A.4 VARIANCE OF DSGC PERFORMANCE
|
| 286 |
+
|
| 287 |
+
In this section, we report the variance of DSGC method in all 3 tasks. We run the DSGC model for 10 times and report the mean $\pm$ std: CIFAR $7 . 3 9 \pm 0 . 1 3 6$ , USHCN-TMAX $5 . 2 1 1 \pm 0 . 0 4 9 8$ , 20news $7 1 . 7 0 \pm 0 . 2 8 5$ . Obviously, the variance is significantly smaller than the performance gap between the DSGC model and best baseline results (CIFAR 8.34, USHCN-TMAX 5.467, 20news 71.01).
|
parse/train/H139Q_gAW/H139Q_gAW_content_list.json
ADDED
|
@@ -0,0 +1,1505 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "LEARNING GRAPH CONVOLUTION FILTERS FROM DATA MANIFOLD ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
98,
|
| 9 |
+
694,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Anonymous authors Paper under double-blind review ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
183,
|
| 19 |
+
171,
|
| 20 |
+
398,
|
| 21 |
+
198
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT ",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
454,
|
| 31 |
+
234,
|
| 32 |
+
544,
|
| 33 |
+
251
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Convolution Neural Network (CNN) has gained tremendous success in computer vision tasks with its outstanding ability to capture the local latent features. Recently, there has been an increasing interest in extending CNNs to the general spatial domain. Although various types of graph convolution and geometric convolution methods have been proposed, their connections to traditional 2D-convolution are not well-understood. In this paper, we show that depthwise separable convolution is a path to unify the two kinds of convolution methods in one mathematical view, based on which we derive a novel Depthwise Separable Graph Convolution that subsumes existing graph convolution methods as special cases of our formulation. Experiments show that the proposed approach consistently outperforms other graph convolution and geometric convolution baselines on benchmark datasets in multiple domains. ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
233,
|
| 42 |
+
266,
|
| 43 |
+
764,
|
| 44 |
+
433
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION ",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
176,
|
| 54 |
+
460,
|
| 55 |
+
334,
|
| 56 |
+
477
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "Convolution Neural Network (CNN) (LeCun et al., 1995) has been proven to be an efficient model family in extracting hierarchical local patterns from grid-structured data, which has significantly advanced the state-of-the-art performance of a wide range of machine learning tasks, including image classification, object detection and audio recognition (LeCun et al., 2015). Recently, growing attention has been paid to dealing with data with an underlying graph/non-Euclidean structure, such as prediction tasks in sensor networks (Xingjian et al., 2015), transportation systems (Li et al., 2017), and 3D shape correspondence application in the computation graphics (Bronstein et al., 2017). How to replicate the success of CNNs for manifold-structured data remains an open challenge. ",
|
| 63 |
+
"bbox": [
|
| 64 |
+
174,
|
| 65 |
+
492,
|
| 66 |
+
825,
|
| 67 |
+
603
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Many graph convolution and geometric convolution methods have been proposed recently. The spectral convolution methods (Bruna et al., 2013; Defferrard et al., 2016; Kipf & Welling, 2016) are the mainstream algorithm developed as the graph convolution methods. Because their theory is based on the graph Fourier analysis (Shuman et al., 2013), one of their major limitations is that in this model the knowledge learned from different graphs is not transferrable (Monti et al., 2016). Other group of approaches is geometric convolution methods, which focuses on various ways to leverage spatial information about nodes(Masci et al., 2015; Boscaini et al., 2016; Monti et al., 2016). Existing models mentioned above are either not capable of capturing spatial-wise local information as in the standard convolution, or tend to have very large parameter space and hence, are prone to overfitting. As a result, both the spectral and the geometric convolution methods have not produced the results comparable to CNNs on related tasks. Such a misalignment makes it harder to leverage the rapidly developing 2D-convolution techniques in the generic spatial domain. We note graph convolution methods are also widely used in the pure graph structure data, like citation networks and social networks (Kipf & Welling, 2016). Our paper will only focus on the data with the spatial information. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
612,
|
| 77 |
+
825,
|
| 78 |
+
819
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "In this paper, we provide a unified view of the graph convolution and traditional 2D-convolution methods with the label propagation process (Zhu et al., 2003). It helps us better understand and compare the difference between them. Based on it, we propose a novel Depthwise Separable Graph Convolution (DSGC), which inherits the strength of depthwise separable convolution that has been extensively used in different state-of-the-art image classification frameworks including Inception Network (Szegedy et al., 2016), Xception Network (Chollet, 2016) and MobileNet (Howard et al., 2017). Compared with previous graph and geometric methods, the DSGC is more expressive and aligns closer to the depthwise separable convolution network, and shares the desirable characteristic of small parameter size as in the depthwise separable convolution. In experiments section, we evaluate the DSGC and baselines in three different machine learning tasks. The experiment results show that the performance of the proposed method is close to the standard convolution network in the image classification task on CIFAR dataset. And it outperforms previous graph convolution and geometric convolution methods in all tasks. Furthermore, we demonstrate that the proposed method can easily leverage the advanced technique developed for the standard convolution network to enhance the model performance, such as the Inception module (Szegedy et al., 2016), the DenseNet architecture (Huang et al., 2016) and the Squeeze-and-Excitation block (Hu et al., 2017). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
827,
|
| 88 |
+
823,
|
| 89 |
+
924
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
103,
|
| 99 |
+
825,
|
| 100 |
+
229
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 1
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "The main contribution of this paper is threefold: ",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
236,
|
| 110 |
+
488,
|
| 111 |
+
251
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "• A unified view of traditional 2D-convolution and graph convolution methods by introducing depthwise separable convolution. \n• A novel Depthwise Separable Graph Convolution (DSGC) for spatial domain data. \n• We demonstrate the efficiency of the DSGC with extensive experiments and show that it can facilitate the advanced technique of the standard convolution network to improve the model performance. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
215,
|
| 120 |
+
262,
|
| 121 |
+
825,
|
| 122 |
+
358
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "2 A GRAPH PERSPECTIVE OF CONVOLUTION ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
174,
|
| 132 |
+
378,
|
| 133 |
+
563,
|
| 134 |
+
395
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "We provide a unified view of label propagation and graph convolution by showing that they are different ways to aggregate local information over the graphs or data manifolds. We then discuss connections between graph convolution and depthwise separable convolution over the 2D-grid graph, which motivates us to propose a new formulation that subsumes both methods as special cases. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
174,
|
| 143 |
+
411,
|
| 144 |
+
825,
|
| 145 |
+
467
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "Unless otherwise specified, we denote a matrix by $\\boldsymbol { X }$ , the $i$ -th row in the matrix by $\\mathbf { \\Delta } _ { \\mathbf { \\mathcal { X } } _ { i } }$ , and $( i , j )$ -th element in the matrix by $x _ { i j }$ . Superscripts are used to distinguish different matrices when necessary. All the operations being discussed below can be viewed as a function that transforms input feature maps $\\pmb { X } \\in \\mathbb { R } ^ { N \\times P }$ to output feature maps $\\pmb { Y } \\in \\mathbb { R } ^ { N \\times Q }$ , where $N$ is the number of nodes in the graph and $P , Q$ are the number of input and features (channels) associated with each node respectively. We use $\\mathcal { N } ( i )$ to denote the set of neighbors for $i$ -th node. ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
473,
|
| 155 |
+
825,
|
| 156 |
+
559
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "text",
|
| 162 |
+
"text": "2.1 LABEL PROPAGATION ",
|
| 163 |
+
"text_level": 1,
|
| 164 |
+
"bbox": [
|
| 165 |
+
174,
|
| 166 |
+
575,
|
| 167 |
+
366,
|
| 168 |
+
590
|
| 169 |
+
],
|
| 170 |
+
"page_idx": 1
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"type": "text",
|
| 174 |
+
"text": "Label propagation (LP) (Zhu et al., 2003) is a classic approach to aggregate local information over a graph. The basic version of LP can be written as ",
|
| 175 |
+
"bbox": [
|
| 176 |
+
173,
|
| 177 |
+
602,
|
| 178 |
+
823,
|
| 179 |
+
630
|
| 180 |
+
],
|
| 181 |
+
"page_idx": 1
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"type": "equation",
|
| 185 |
+
"img_path": "images/a59f3976f07f7d6b6b429ff2dcc4c4b0669c7fceb53325dc27d46c8169c0b39c.jpg",
|
| 186 |
+
"text": "$$\ny _ { i q } = \\sum _ { j \\in \\mathcal { N } ( i ) } w _ { i j } x _ { j q }\n$$",
|
| 187 |
+
"text_format": "latex",
|
| 188 |
+
"bbox": [
|
| 189 |
+
429,
|
| 190 |
+
637,
|
| 191 |
+
566,
|
| 192 |
+
674
|
| 193 |
+
],
|
| 194 |
+
"page_idx": 1
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"type": "text",
|
| 198 |
+
"text": "where $W$ is a normalized adjacency matrix that summarizes the graph structure. The intuition is that the value of node $i$ is updated via a weighted combination of its neighbors. ",
|
| 199 |
+
"bbox": [
|
| 200 |
+
171,
|
| 201 |
+
689,
|
| 202 |
+
823,
|
| 203 |
+
718
|
| 204 |
+
],
|
| 205 |
+
"page_idx": 1
|
| 206 |
+
},
|
| 207 |
+
{
|
| 208 |
+
"type": "text",
|
| 209 |
+
"text": "2.2 GRAPH CONVOLUTION ",
|
| 210 |
+
"text_level": 1,
|
| 211 |
+
"bbox": [
|
| 212 |
+
174,
|
| 213 |
+
734,
|
| 214 |
+
375,
|
| 215 |
+
750
|
| 216 |
+
],
|
| 217 |
+
"page_idx": 1
|
| 218 |
+
},
|
| 219 |
+
{
|
| 220 |
+
"type": "text",
|
| 221 |
+
"text": "Graph convolution (Kipf & Welling, 2016) (GC) is a recently proposed graph convolution operator that can be viewed as an extension of LP, formulated as ",
|
| 222 |
+
"bbox": [
|
| 223 |
+
174,
|
| 224 |
+
761,
|
| 225 |
+
823,
|
| 226 |
+
790
|
| 227 |
+
],
|
| 228 |
+
"page_idx": 1
|
| 229 |
+
},
|
| 230 |
+
{
|
| 231 |
+
"type": "equation",
|
| 232 |
+
"img_path": "images/d11b91998945b2c764d877ad8e6b7b3e17780d740b01a4d27563e285da00c153.jpg",
|
| 233 |
+
"text": "$$\ny _ { i q } = \\sum _ { j \\in \\mathcal { N } ( i ) } w _ { i j } z _ { j q } \\quad w h e r e \\quad z _ { j } = U \\pmb { x } _ { j }\n$$",
|
| 234 |
+
"text_format": "latex",
|
| 235 |
+
"bbox": [
|
| 236 |
+
357,
|
| 237 |
+
796,
|
| 238 |
+
642,
|
| 239 |
+
833
|
| 240 |
+
],
|
| 241 |
+
"page_idx": 1
|
| 242 |
+
},
|
| 243 |
+
{
|
| 244 |
+
"type": "text",
|
| 245 |
+
"text": "where $W$ is a symmetrically normalized adjacency matrix with a ridge on its diagonal, which is a deterministic matrix given the input data, and $\\dot { \\pmb { U } } \\in \\mathbb { R } ^ { P \\times Q }$ represents a linear transformation. Following the Chollet (2016), $W$ is named as the spatial filter and $U$ is named as the channel filter. The original form of graph convolution, such as the Spectral Network (Bruna et al., 2013), is derived from graph signal processing (Shuman et al., 2013) as a generalization of Fourier analysis to the domain of graphs. Several limitations of the Spectral Network, such as its high computation complexity and the lack of locality, are addressed in Defferrard et al. (2016) (ChebyNet) and further refined by Kipf & Welling (2016) via approximation. ",
|
| 246 |
+
"bbox": [
|
| 247 |
+
173,
|
| 248 |
+
839,
|
| 249 |
+
825,
|
| 250 |
+
924
|
| 251 |
+
],
|
| 252 |
+
"page_idx": 1
|
| 253 |
+
},
|
| 254 |
+
{
|
| 255 |
+
"type": "image",
|
| 256 |
+
"img_path": "images/bf22aeecc4d347dc2458fdb8e081d2166b76b099e88b07662d361b13b13d2718.jpg",
|
| 257 |
+
"image_caption": [
|
| 258 |
+
"Figure 1: Visualization of different convolution operations with three output channels. We use different colors to represent different filters (weight configurations of the links). (a) DSC defined on 2D grid graphs. (b) GC defined on generic graphs. (c) DSGC defined on generic graphs. "
|
| 259 |
+
],
|
| 260 |
+
"image_footnote": [],
|
| 261 |
+
"bbox": [
|
| 262 |
+
269,
|
| 263 |
+
98,
|
| 264 |
+
727,
|
| 265 |
+
222
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "",
|
| 272 |
+
"bbox": [
|
| 273 |
+
173,
|
| 274 |
+
303,
|
| 275 |
+
823,
|
| 276 |
+
332
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "To Compare LP with GC, the former only utilizes the graphical information, while the latter has an additional linear transformation of $\\boldsymbol { \\mathscr { x } } _ { j }$ to into the intermediate representation $z _ { j }$ via matrix $U$ . This additional step makes GC capable of capturing the dependencies among features (channels), which yields performance improvement. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
174,
|
| 285 |
+
338,
|
| 286 |
+
825,
|
| 287 |
+
393
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "2.3 DEPTHWISE SEPARABLE CONVOLUTION ",
|
| 294 |
+
"text_level": 1,
|
| 295 |
+
"bbox": [
|
| 296 |
+
176,
|
| 297 |
+
411,
|
| 298 |
+
493,
|
| 299 |
+
425
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "For a full 2d-convolution layer, the convolution filters encode channel correlation and spatial correlation simultaneously (Chollet, 2016). Then depthwise separable convolution (DSC) is proposed under the intuition that the channel correlation and spatial correlation could be decoupled, and has been found successful in several modern architectures for image classification (Chollet, 2016). We choose to focus on DSC (instead of full convolution) because of its strong empirical performance with a small number of parameters, and its intimate connections to GC which will be revealed in the following. And we discuss the full convolution formulation with the label propagation process in Section 5. ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
173,
|
| 308 |
+
436,
|
| 309 |
+
825,
|
| 310 |
+
549
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "By viewing each pixel in the image as a node, DSC can be formulated in a graph-based fashion ",
|
| 317 |
+
"bbox": [
|
| 318 |
+
171,
|
| 319 |
+
554,
|
| 320 |
+
797,
|
| 321 |
+
570
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "equation",
|
| 327 |
+
"img_path": "images/e2861fb8d54887c49b4ad3a21b155683a359d4be48a27790dd68fb13ac1ed1fe.jpg",
|
| 328 |
+
"text": "$$\ny _ { i q } = \\sum _ { j \\in \\mathcal { N } ( i ) } w _ { \\Delta _ { i j } } ^ { ( q ) } z _ { j q } \\quad w h e r e \\quad z _ { j } = U x _ { j }\n$$",
|
| 329 |
+
"text_format": "latex",
|
| 330 |
+
"bbox": [
|
| 331 |
+
352,
|
| 332 |
+
594,
|
| 333 |
+
645,
|
| 334 |
+
631
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 2
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "where $\\Delta _ { i j }$ denotes the relative position of pixel $i$ and pixel $j$ on the image, and $w ^ { ( q ) }$ can be viewed as a lookup table with the pixel-pixel offset $\\Delta _ { i j }$ as the key, according to the stationarity (weightsharing) assumption of convolution. In the context of images, $\\mathcal { N } ( i )$ denotes the index set of surrounding pixels for $i$ -th pixel, which is equivalent to the $k$ -nearest neighbor set under the Euclidean distant metric. For example, the size of $\\bar { \\mathcal { N } } ( i )$ , or $k$ , is 9 for a $3 \\times 3$ convolution filter (considering self-loop). ",
|
| 341 |
+
"bbox": [
|
| 342 |
+
173,
|
| 343 |
+
647,
|
| 344 |
+
825,
|
| 345 |
+
732
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 2
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "text",
|
| 351 |
+
"text": "3 PROPOSED METHOD ",
|
| 352 |
+
"text_level": 1,
|
| 353 |
+
"bbox": [
|
| 354 |
+
176,
|
| 355 |
+
751,
|
| 356 |
+
377,
|
| 357 |
+
768
|
| 358 |
+
],
|
| 359 |
+
"page_idx": 2
|
| 360 |
+
},
|
| 361 |
+
{
|
| 362 |
+
"type": "text",
|
| 363 |
+
"text": "3.1 DEPTHWISE SEPARABLE GRAPH CONVOLUTION ",
|
| 364 |
+
"text_level": 1,
|
| 365 |
+
"bbox": [
|
| 366 |
+
174,
|
| 367 |
+
784,
|
| 368 |
+
549,
|
| 369 |
+
797
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "text",
|
| 375 |
+
"text": "We notice that the formulation of GC and DSC is similar except that ",
|
| 376 |
+
"bbox": [
|
| 377 |
+
174,
|
| 378 |
+
809,
|
| 379 |
+
622,
|
| 380 |
+
824
|
| 381 |
+
],
|
| 382 |
+
"page_idx": 2
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"type": "text",
|
| 386 |
+
"text": "1. Spatial filters in DSC are channel-specific, while GC uses a global spatial filter. 2. Spatial filters in DSC are learned from the data (under the stationarity constraints), while the filter in GC is a constant matrix with the given input. ",
|
| 387 |
+
"bbox": [
|
| 388 |
+
202,
|
| 389 |
+
835,
|
| 390 |
+
825,
|
| 391 |
+
883
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 2
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "On the one hand, DSC does not apply to the domain of generic spatial data lying on the manifold where the space of $\\Delta _ { i j }$ (defined as the difference of the spatial coordinates between node $i$ and node $j$ ) can be infinite. On the other hand, GC suffers from the restriction that all channels have to share the same given spatial filter. This heavily constrains the model capacity, which would be more severe when the deeper network structure is used. In the context of graphs, it would be desirable to have multiple spatial filters—to capture a diverse set of diffusion patterns over the graph or data manifold, which is the same as the convolution filters in the image domain. ",
|
| 398 |
+
"bbox": [
|
| 399 |
+
174,
|
| 400 |
+
895,
|
| 401 |
+
825,
|
| 402 |
+
924
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 2
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "",
|
| 409 |
+
"bbox": [
|
| 410 |
+
174,
|
| 411 |
+
103,
|
| 412 |
+
825,
|
| 413 |
+
174
|
| 414 |
+
],
|
| 415 |
+
"page_idx": 3
|
| 416 |
+
},
|
| 417 |
+
{
|
| 418 |
+
"type": "text",
|
| 419 |
+
"text": "To address these limitations, we propose Depthwise Separable Graph Convolution (DSGC) which naturally generalizes both GC and DSC ",
|
| 420 |
+
"bbox": [
|
| 421 |
+
173,
|
| 422 |
+
180,
|
| 423 |
+
821,
|
| 424 |
+
208
|
| 425 |
+
],
|
| 426 |
+
"page_idx": 3
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"type": "equation",
|
| 430 |
+
"img_path": "images/5c206ffbd6704fd54c1bab747baefe9aedb2c576b402fdf3fdb7e6b9946dc721.jpg",
|
| 431 |
+
"text": "$$\ny _ { i q } = \\sum _ { j \\in \\mathcal { N } ( i ) } w ^ { ( q ) } ( \\Delta _ { i j } ) z _ { j q } \\quad w h e r e \\quad z _ { j } = U x _ { j }\n$$",
|
| 432 |
+
"text_format": "latex",
|
| 433 |
+
"bbox": [
|
| 434 |
+
334,
|
| 435 |
+
213,
|
| 436 |
+
661,
|
| 437 |
+
251
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 3
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "where we slightly abuse the notation by overloading $w ^ { ( q ) } ( \\cdot )$ as a function, which maps $\\Delta _ { i j }$ to a real number, and $\\mathcal { N } ( i )$ still represents the $k$ -nearest neighbor sets. To understand the proposed formulation, notice ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
176,
|
| 446 |
+
263,
|
| 447 |
+
825,
|
| 448 |
+
306
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "1. Different from DSC, the stationarity requirement is implemented in a “soft” manner by defining a function instead of by the set of equality constraints. In our experiment, each $w ^ { ( q ) } ( \\cdot )$ is a function parameterized by a two-layer MLP. \n2. Different from GC, channel-specific convolution is enabled by learning multiple spatial convolution filters. This amounts to simultaneously constructing multiple graphs under the different node-node similarity metrices, where the metrices are implicitly defined by neural networks and hence, are jointly optimized during the training. ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
210,
|
| 457 |
+
316,
|
| 458 |
+
825,
|
| 459 |
+
421
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 3
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "text",
|
| 465 |
+
"text": "Overfitting is a common issue in graph-based applications, due to limited data available. To alleviate this issue, we propose an option to group the channels into $C$ groups, where $D = Q / C$ channels in the same group would share the same filter. ",
|
| 466 |
+
"bbox": [
|
| 467 |
+
174,
|
| 468 |
+
431,
|
| 469 |
+
825,
|
| 470 |
+
474
|
| 471 |
+
],
|
| 472 |
+
"page_idx": 3
|
| 473 |
+
},
|
| 474 |
+
{
|
| 475 |
+
"type": "equation",
|
| 476 |
+
"img_path": "images/d5e136939d19fde57fe5a1f9851d289203278861bf38ae603ddbd8e56d4be46e.jpg",
|
| 477 |
+
"text": "$$\nw ^ { ( q ) } ( \\cdot ) = w ^ { ( q ^ { \\prime } ) } ( \\cdot ) \\quad i f \\quad \\lfloor \\frac { q } { D } \\rfloor = \\lfloor \\frac { q ^ { \\prime } } { D } \\rfloor\n$$",
|
| 478 |
+
"text_format": "latex",
|
| 479 |
+
"bbox": [
|
| 480 |
+
369,
|
| 481 |
+
478,
|
| 482 |
+
627,
|
| 483 |
+
511
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 3
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "text",
|
| 489 |
+
"text": "3.2 NORMALIZATION ",
|
| 490 |
+
"text_level": 1,
|
| 491 |
+
"bbox": [
|
| 492 |
+
174,
|
| 493 |
+
525,
|
| 494 |
+
336,
|
| 495 |
+
539
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 3
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "The context of each node in any given generic graph, namely its connection pattern with neighbors, can be non-stationary over different parts of the graph, while it is constant in the 2d-grid graphs. It is, therefore, a common practice to normalize the adjacency matrix in order to make the nodes adaptive to their own contexts (Eq.1). A natural way to carry out normalization for DSGC is to apply a softmax function over the predicted spatial filter weights at each node, which can be written as $\\tilde { \\pmb { w } } _ { i } = s o f t m a x ( \\pmb { w } _ { i } )$ , where ${ \\pmb w } _ { i }$ stands for the $i$ -th row of spatial filter $W$ learned by a neural network. We empirically find normalization leads to better performance and significantly speeds up the convergence. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
549,
|
| 505 |
+
825,
|
| 506 |
+
661
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 3
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "In the following experiments, we use the proposed depthwise separable graph convolution with a linear highway bypass as the basic convolution component and imitate the rest setting of the standard convolution neural network to solve different machine learning tasks. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
174,
|
| 515 |
+
669,
|
| 516 |
+
825,
|
| 517 |
+
710
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 3
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "4 EXPERIMENTS ",
|
| 524 |
+
"text_level": 1,
|
| 525 |
+
"bbox": [
|
| 526 |
+
176,
|
| 527 |
+
731,
|
| 528 |
+
326,
|
| 529 |
+
746
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 3
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "4.1 EXPERIMENT SETTING ",
|
| 536 |
+
"text_level": 1,
|
| 537 |
+
"bbox": [
|
| 538 |
+
176,
|
| 539 |
+
761,
|
| 540 |
+
372,
|
| 541 |
+
776
|
| 542 |
+
],
|
| 543 |
+
"page_idx": 3
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"type": "text",
|
| 547 |
+
"text": "We evaluate the proposed Depthwise Separable Graph Convolution (DSGC) method with representative baselines in the prediction tasks of image classification, time series forecasting, and document categorization. The algorithms are implemented in PyTorch; all the data and the code are made publicly accessible 1. For controlled experiments, all the graph convolution methods share the same empirical settings unless otherwise specified, including network structures, the dimension of latent factors, and so on. The optimization algorithm is applied to all models. The neural network used to model the spatial convolution filter $( w ^ { ( q ) } ( \\cdot ) )$ in Eq.4 is a two-layers MLP with 256 hidden dimension and tanh activation function. We have conducted ablation tests with the two-layer MLP by changing the number of layers and activation function of each hidden layer, and by trying several weight sharing strategies. The results are very similar; the two-layer MLP provides a reasonable performance with the shortest running time. Appendix A contains more details, such as the network architecture and model hyper-parameters. ",
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
786,
|
| 551 |
+
825,
|
| 552 |
+
901
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 3
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "",
|
| 559 |
+
"bbox": [
|
| 560 |
+
174,
|
| 561 |
+
103,
|
| 562 |
+
825,
|
| 563 |
+
160
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 4
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "4.2 EVALUATION ON IMAGE CLASSIFICATION ",
|
| 570 |
+
"text_level": 1,
|
| 571 |
+
"bbox": [
|
| 572 |
+
174,
|
| 573 |
+
176,
|
| 574 |
+
503,
|
| 575 |
+
190
|
| 576 |
+
],
|
| 577 |
+
"page_idx": 4
|
| 578 |
+
},
|
| 579 |
+
{
|
| 580 |
+
"type": "text",
|
| 581 |
+
"text": "We conduct experiments on CIFAR10 and CIFAR100 (Krizhevsky & Hinton, 2009), which are popular benchmark datasets in image classification. Both sets contain 60000 images with $3 2 \\times 3 2$ pixels but CIFAR10 has 10 category labels and CIFAR100 has 100 category labels. Each image is typically treated as a $3 2 \\times 3 2$ grid structure for standard image-based convolution. To enable the comparison on generic graphs, we create the modified versions of CIFAR10 and CIFAR100, respectively, by subsampling only $2 5 \\%$ of the pixels from each graph. As illustrated in Figure 2, the subsampling results in irregularly scattered nodes for each image. ",
|
| 582 |
+
"bbox": [
|
| 583 |
+
173,
|
| 584 |
+
202,
|
| 585 |
+
825,
|
| 586 |
+
299
|
| 587 |
+
],
|
| 588 |
+
"page_idx": 4
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"type": "image",
|
| 592 |
+
"img_path": "images/93cb9c2b2bf9ca406d66b70368cba52d00aa0d0ce4f0e87bea8a6d779f71a461.jpg",
|
| 593 |
+
"image_caption": [
|
| 594 |
+
"Figure 2: How to construct subsampled CIFAR datasets: (a) is an example image from CIFAR dataset. (b) is the subsampled pixels map. The blue points indicate which points are sampled. (c) is the image after sampling, where the black points are those being sampled out. "
|
| 595 |
+
],
|
| 596 |
+
"image_footnote": [],
|
| 597 |
+
"bbox": [
|
| 598 |
+
290,
|
| 599 |
+
315,
|
| 600 |
+
717,
|
| 601 |
+
444
|
| 602 |
+
],
|
| 603 |
+
"page_idx": 4
|
| 604 |
+
},
|
| 605 |
+
{
|
| 606 |
+
"type": "text",
|
| 607 |
+
"text": "For comparison we include the traditional 2d convolution and graph convolution networks as baselines, including standard CNN; Xception network (Chollet, 2016) which uses the depthwise separable convolution; DCNN (Atwood & Towsley, 2016), the method using multi-hops random walk as the graph filters; ChebyNet (Defferrard et al., 2016), the method using Chebyshev polynomial to approximate the Fourier transformation of (irregular) graphs; GCN (Kipf & Welling, 2016) which is described in Section 2; MoNet (Monti et al., 2016), the method using Gaussian function to define the propagation weights over (irregular) graphs. For a fair comparison, we use the VGG13 architecture (Simonyan & Zisserman, 2014) in all the methods above as the basic platform, and replace the convolution layers according to the methods. The pooling layer is performed by the kmean clustering. The centroid of each clusters is regarded as the new node after pooling, and its hidden vector is the mean or max over the nodes in the cluster, based on the pooling method. Notice that, we only normalize the input signals to [0,1] and do not have other preprocessing or data augmentation. ",
|
| 608 |
+
"bbox": [
|
| 609 |
+
174,
|
| 610 |
+
512,
|
| 611 |
+
825,
|
| 612 |
+
679
|
| 613 |
+
],
|
| 614 |
+
"page_idx": 4
|
| 615 |
+
},
|
| 616 |
+
{
|
| 617 |
+
"type": "text",
|
| 618 |
+
"text": "The experiment results are summarized in Table 1. Firstly, we observe that Xception and CNN have the best results; this is not surprising because both methods use grid-based convolution which is naturally suitable for image recognition. Secondly, DSGC outperforms all the other graph-based convolution methods, and its performance is very close to that of the grid-based convolution methods. Furthermore, contributed by the depthwise separable convolution and sharing graph technique, our model can achieve the competitive performance without increasing the number of parameters as GCN, the one with the smallest number of parameters among the graph convolution approaches. In appendix A.4, we further report the variance of DSGC model, which shows the improvement is significant and stable. ",
|
| 619 |
+
"bbox": [
|
| 620 |
+
174,
|
| 621 |
+
685,
|
| 622 |
+
825,
|
| 623 |
+
811
|
| 624 |
+
],
|
| 625 |
+
"page_idx": 4
|
| 626 |
+
},
|
| 627 |
+
{
|
| 628 |
+
"type": "text",
|
| 629 |
+
"text": "4.3 EVALUATION ON TIME SERIES FORECASTING ",
|
| 630 |
+
"text_level": 1,
|
| 631 |
+
"bbox": [
|
| 632 |
+
174,
|
| 633 |
+
828,
|
| 634 |
+
531,
|
| 635 |
+
843
|
| 636 |
+
],
|
| 637 |
+
"page_idx": 4
|
| 638 |
+
},
|
| 639 |
+
{
|
| 640 |
+
"type": "text",
|
| 641 |
+
"text": "As another important application domain, here we are interested in how to effectively utilize the locality information about sensor networks in time series forecasting. For example, how to incorporate the longitudes/latitudes of sensors w.r.t. temporal cloud movement is an important question in spatiotemporal modeling for predicting the output of solar energy farms in the United States. Appendix A provides the formal definition of this task. ",
|
| 642 |
+
"bbox": [
|
| 643 |
+
174,
|
| 644 |
+
853,
|
| 645 |
+
823,
|
| 646 |
+
922
|
| 647 |
+
],
|
| 648 |
+
"page_idx": 4
|
| 649 |
+
},
|
| 650 |
+
{
|
| 651 |
+
"type": "table",
|
| 652 |
+
"img_path": "images/5ed43c680d913e5f723dbb0de89a07ce7ff5d66e249c54b4807494e4c0745f02.jpg",
|
| 653 |
+
"table_caption": [],
|
| 654 |
+
"table_footnote": [
|
| 655 |
+
"Table 1: Test-set error rates: P is the number of parameters "
|
| 656 |
+
],
|
| 657 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=3>Subsampled Graphs</td><td rowspan=1 colspan=5>Original Graphs</td></tr><tr><td rowspan=1 colspan=1>Dataset</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=1>CIFAR100</td><td rowspan=1 colspan=1>P</td><td rowspan=1 colspan=1>CIFAR10</td><td rowspan=1 colspan=3>CIFAR100</td><td rowspan=1 colspan=1>P</td></tr><tr><td rowspan=5 colspan=1>DCNN (Atwood & Towsley, 2016)ChebyNet (Defferrard et al., 2016)GCN (Kipf & Welling,2016)MoNet (Monti et al., 2016)DSGC</td><td rowspan=5 colspan=1>43.68%25.04%26.78%21.20%18.72%</td><td rowspan=5 colspan=1>76.65%49.44%51.30%47.87%44.33%</td><td rowspan=1 colspan=1>12M</td><td rowspan=1 colspan=1>55.56%</td><td rowspan=1 colspan=3>84.16%</td><td rowspan=1 colspan=1>50M</td></tr><tr><td rowspan=2 colspan=1>10M5.6M</td><td rowspan=2 colspan=1>12.99%19.09%</td><td rowspan=1 colspan=1>3</td><td rowspan=1 colspan=2>36.96%</td><td rowspan=1 colspan=1>19M</td></tr><tr><td rowspan=1 colspan=2>41.64 %</td><td rowspan=1 colspan=2>41.64 %</td><td rowspan=1 colspan=1>9.8M</td></tr><tr><td rowspan=1 colspan=1>11M</td><td rowspan=1 colspan=1>8.34%</td><td rowspan=1 colspan=3>29.56%</td><td rowspan=1 colspan=1>20M</td></tr><tr><td rowspan=1 colspan=1>5.7M</td><td rowspan=1 colspan=1>7.31%</td><td rowspan=1 colspan=3>27.29%</td><td rowspan=1 colspan=1>9.9M</td></tr><tr><td rowspan=2 colspan=1>CNN (Simonyan & Zisserman, 2014)Xception (Chollet,2016)</td><td rowspan=2 colspan=1>18.03%17.07%</td><td rowspan=2 colspan=1>43.42%41.54%</td><td rowspan=1 colspan=1>18M</td><td rowspan=1 colspan=1>6.86%</td><td rowspan=1 colspan=3>26.86%</td><td rowspan=1 colspan=1>18M</td></tr><tr><td rowspan=1 colspan=1>3.1M</td><td rowspan=1 colspan=1>7.08%</td><td rowspan=1 colspan=3>26.84%</td><td rowspan=1 colspan=1>3.1M</td></tr></table>",
|
| 658 |
+
"bbox": [
|
| 659 |
+
176,
|
| 660 |
+
101,
|
| 661 |
+
821,
|
| 662 |
+
217
|
| 663 |
+
],
|
| 664 |
+
"page_idx": 5
|
| 665 |
+
},
|
| 666 |
+
{
|
| 667 |
+
"type": "text",
|
| 668 |
+
"text": "We choose three publicly available benchmark datasets for this task: ",
|
| 669 |
+
"bbox": [
|
| 670 |
+
174,
|
| 671 |
+
268,
|
| 672 |
+
619,
|
| 673 |
+
284
|
| 674 |
+
],
|
| 675 |
+
"page_idx": 5
|
| 676 |
+
},
|
| 677 |
+
{
|
| 678 |
+
"type": "text",
|
| 679 |
+
"text": "• The U.S Historical Climatology Network $\\mathrm { ( U S H C N ) }$ dataset contains daily climatological data from 1,218 meteorology sensors over the years from 1915 to 2000. The sequence length is 32,507. It includes five subsets, and each has a climate variable: (1) maximum temperature, (2) minimum temperature, (3) precipitation, (4) snowfall and (5) snow depth. We use the daily maximum temperature data and precipitation data, and refer them as the USHCN-TMAX and USHCN-PRCP sets, respectively. \n• The solar power production records in the year of $2 0 0 6 ^ { 3 }$ has the data with the production rate of every 10 minutes from 1,082 solar power stations in the west of the U.S. The sequence length is 52,560. We refer this set of data as Solar. ",
|
| 680 |
+
"bbox": [
|
| 681 |
+
215,
|
| 682 |
+
295,
|
| 683 |
+
825,
|
| 684 |
+
426
|
| 685 |
+
],
|
| 686 |
+
"page_idx": 5
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"type": "text",
|
| 690 |
+
"text": "All the datasets have been split into the training set $( 6 0 \\% )$ , the validation set $( 2 0 \\% )$ and the test set $( 2 0 \\% )$ in chronological order. ",
|
| 691 |
+
"bbox": [
|
| 692 |
+
174,
|
| 693 |
+
439,
|
| 694 |
+
821,
|
| 695 |
+
467
|
| 696 |
+
],
|
| 697 |
+
"page_idx": 5
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"type": "text",
|
| 701 |
+
"text": "All the graph convolution methods (DCNN, ChebyNet, GCN and MoNet) in the previous section (Section 4.2) are included to form the baselines for comparison. We also add traditional methods for time series forecasting, such as (1) Autoregressive model (AR) which predicts future signal using a window of historical data based on a linear assumption about temporal dependencies, (2) Vector autoregressive model (VAR) which extends AR to the multivariate version, namely, the input is the signals from all sensors in the history window, and (3) the LSTNet deep neural network model (Lai et al., 2017) which combines the strengths of CNN, RNN and AR. None of those methods is capable of leveraging locational dependencies via graph convolution. We exclude the CNN and Xception methods, the 2D-grid based convolution, which could not be generalized to irregular graphs which we focus here. ",
|
| 702 |
+
"bbox": [
|
| 703 |
+
174,
|
| 704 |
+
473,
|
| 705 |
+
825,
|
| 706 |
+
612
|
| 707 |
+
],
|
| 708 |
+
"page_idx": 5
|
| 709 |
+
},
|
| 710 |
+
{
|
| 711 |
+
"type": "text",
|
| 712 |
+
"text": "Table 2 summarizes the evaluation results of all the methods, where the performance is measured using the Root Square Mean Error (RMSE). The best result on each dataset is highlighted in boldface. The first chunk of three methods does not leverage the spatial or locational information in data. The second chuck consists of the neural network models which leverage the spatial information about sensor networks. The graph convolution methods in the second chunk clearly outperforms the methods in the first chunk, which does not explicitly model the spacial correlation within sensor networks. Overall, our proposed method (DSGC) has the best performance on all the datasets, demonstrating its strength in capturing informative local propagation patterns temporally and specially. ",
|
| 713 |
+
"bbox": [
|
| 714 |
+
174,
|
| 715 |
+
619,
|
| 716 |
+
825,
|
| 717 |
+
732
|
| 718 |
+
],
|
| 719 |
+
"page_idx": 5
|
| 720 |
+
},
|
| 721 |
+
{
|
| 722 |
+
"type": "text",
|
| 723 |
+
"text": "4.4 DOCUMENT CATEGORIZATION ",
|
| 724 |
+
"text_level": 1,
|
| 725 |
+
"bbox": [
|
| 726 |
+
176,
|
| 727 |
+
750,
|
| 728 |
+
426,
|
| 729 |
+
763
|
| 730 |
+
],
|
| 731 |
+
"page_idx": 5
|
| 732 |
+
},
|
| 733 |
+
{
|
| 734 |
+
"type": "text",
|
| 735 |
+
"text": "For the application to text categorization we use the 20NEWS dataset (Joachims (1996)) for our experiments. It consists of 18,845 text documents associated with 20 topic labels. Individual words in the document vocabulary are the nodes in the graph for convolution. Each node also has its word embedding vector which is learned by running the Word2Vec algorithm (Mikolov et al. (2013)) on this corpus. Following the experiment settings in Defferrard et al. (2016) we select the top 1000 most frequent words as the nodes. Table 3 summarizes the results of the graph convolution methods plus three popular traditional classifiers (Linear SVM, Multivariate Naive Bayes and Softmax). DSGC has the best result on this dataset. Notice that the traditional classifiers are trained and tested with ",
|
| 736 |
+
"bbox": [
|
| 737 |
+
173,
|
| 738 |
+
775,
|
| 739 |
+
825,
|
| 740 |
+
887
|
| 741 |
+
],
|
| 742 |
+
"page_idx": 5
|
| 743 |
+
},
|
| 744 |
+
{
|
| 745 |
+
"type": "table",
|
| 746 |
+
"img_path": "images/0ea1a392259d907cd8a1100274bdecfa9ffc022371bd51cb528ee2e1e50264f3.jpg",
|
| 747 |
+
"table_caption": [
|
| 748 |
+
"Table 2: Time series prediction: Experiment result in terms of RMSE. "
|
| 749 |
+
],
|
| 750 |
+
"table_footnote": [],
|
| 751 |
+
"table_body": "<table><tr><td>Dataset</td><td>USHCN-TMAX</td><td>USHCN-PRCP</td><td>Solar</td></tr><tr><td>AR VAR</td><td>8.2354</td><td>30.3825</td><td>0.03195</td></tr><tr><td>LSTNet (Lai et al., 2017)</td><td>17.9743 10.1973</td><td>29.2597 29.0624</td><td>0.03296 0.02865</td></tr><tr><td>DCNN (Atwood & Towsley, 2016)</td><td>6.5188</td><td>29.0424</td><td>0.02652</td></tr><tr><td>ChebyNet (Defferrard et al., 2016)</td><td>5.5823</td><td>27.1298</td><td>0.02531</td></tr><tr><td>GCN (Kipf & Welling, 2016)</td><td>5.4671</td><td>27.1172</td><td>0.02512</td></tr><tr><td>MoNet (Monti et al., 2016)</td><td>5.8263</td><td>26.8076</td><td>0.02564</td></tr><tr><td>DSGC</td><td>5.1738</td><td>25.8228</td><td>0.02453</td></tr></table>",
|
| 752 |
+
"bbox": [
|
| 753 |
+
212,
|
| 754 |
+
101,
|
| 755 |
+
785,
|
| 756 |
+
231
|
| 757 |
+
],
|
| 758 |
+
"page_idx": 6
|
| 759 |
+
},
|
| 760 |
+
{
|
| 761 |
+
"type": "text",
|
| 762 |
+
"text": "the feature set of the top 1000 words, which is the same setting as in the graph convolution models. \nIf all words are used, traditional classifiers would have higher performance. ",
|
| 763 |
+
"bbox": [
|
| 764 |
+
173,
|
| 765 |
+
289,
|
| 766 |
+
821,
|
| 767 |
+
318
|
| 768 |
+
],
|
| 769 |
+
"page_idx": 6
|
| 770 |
+
},
|
| 771 |
+
{
|
| 772 |
+
"type": "table",
|
| 773 |
+
"img_path": "images/4758f96058c32864df93f4422c944e3e9abc6d67d5ef0a54a68cf262dd3dd913.jpg",
|
| 774 |
+
"table_caption": [
|
| 775 |
+
"Table 3: Accuracy on the validation set. The results with † come from Defferrard et al. (2016). "
|
| 776 |
+
],
|
| 777 |
+
"table_footnote": [],
|
| 778 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Accuracy</td></tr><tr><td rowspan=1 colspan=1>Linear SVM†Multinomial Naive Bayes†SoftmaxtFC2500tFC2500-FC500t</td><td rowspan=1 colspan=1>65.90%68.51%66.28%64.64%65.76%</td></tr><tr><td rowspan=1 colspan=1>DCNN (Atwood & Towsley, 2016)ChebyNet (Defferrard et al., 2016)GCN (Kipf & Welling, 2016)MoNet (Monti et al., 2016)DSGC</td><td rowspan=1 colspan=1>70.35%70.92%71.01%70.60%71.88%</td></tr></table>",
|
| 779 |
+
"bbox": [
|
| 780 |
+
331,
|
| 781 |
+
338,
|
| 782 |
+
665,
|
| 783 |
+
500
|
| 784 |
+
],
|
| 785 |
+
"page_idx": 6
|
| 786 |
+
},
|
| 787 |
+
{
|
| 788 |
+
"type": "text",
|
| 789 |
+
"text": "4.5 DSGC VARIANTS WITH ADVANCED CONVOLUTION ARCHITECTURES ",
|
| 790 |
+
"text_level": 1,
|
| 791 |
+
"bbox": [
|
| 792 |
+
174,
|
| 793 |
+
575,
|
| 794 |
+
694,
|
| 795 |
+
590
|
| 796 |
+
],
|
| 797 |
+
"page_idx": 6
|
| 798 |
+
},
|
| 799 |
+
{
|
| 800 |
+
"type": "text",
|
| 801 |
+
"text": "The proposed convolution method (DSGC) can be considered as an equivalent component to the depthwise separable convolution method. Naturally, we can leverage the technique developed for the standard convolution network to improve the DSGC framework. Hence we examine DSGC with the following techniques which are popular in recent years for standard convolution over images: (1) Inception module (Szegedy et al., 2016), (2) DenseNet framework (Huang et al., 2016) and (3) Squeeze-and-Excitation block (Hu et al., 2017). The details of those architectures are included in the Appendix A. The results are presented in Table 4. Clearly, combined with the advantageous techniques/architectures, the performance of DSGC in image classificationcan can be further improved. It demonstrates that the DSGC can easily enjoy the benefit of the traditional 2d-convolution network development. ",
|
| 802 |
+
"bbox": [
|
| 803 |
+
173,
|
| 804 |
+
604,
|
| 805 |
+
825,
|
| 806 |
+
743
|
| 807 |
+
],
|
| 808 |
+
"page_idx": 6
|
| 809 |
+
},
|
| 810 |
+
{
|
| 811 |
+
"type": "table",
|
| 812 |
+
"img_path": "images/dd84dba8d3dfb32d4bdc8de9b6ab38a7307451f3e4a9d274c3232f0f49c3bcb7.jpg",
|
| 813 |
+
"table_caption": [
|
| 814 |
+
"Table 4: Summary of error rate on the test set in different settings. "
|
| 815 |
+
],
|
| 816 |
+
"table_footnote": [],
|
| 817 |
+
"table_body": "<table><tr><td></td><td colspan=\"3\">Subsampled Graphs</td><td colspan=\"3\">Original Graphs</td></tr><tr><td>Dataset</td><td>CIFAR10</td><td>CIFAR100</td><td>P</td><td>CIFAR10</td><td>CIFAR100</td><td>P</td></tr><tr><td>DSGC-VGG13</td><td>18.72%</td><td>44.33%</td><td>5.7M</td><td>7.31%</td><td>27.29%</td><td>9.9M</td></tr><tr><td>DSGC-INCEPTION</td><td>18.27%</td><td>43.41%</td><td>9.9M</td><td>6.44%</td><td>28.55%</td><td>12M</td></tr><tr><td>DSGC-DenseNet</td><td>17.17%</td><td>43.34%</td><td>2.7M</td><td>7.14%</td><td>26.50%</td><td>2.9M</td></tr><tr><td>DSGC-SE</td><td>18.71%</td><td>44.15%</td><td>6.1M</td><td>7.00%</td><td>27.26%</td><td>10M</td></tr><tr><td>CNN</td><td>18.03%</td><td>43.42%</td><td>18M</td><td>6.86%</td><td>26.86%</td><td>18M</td></tr><tr><td>Xception</td><td>17.07%</td><td>41.54%</td><td>3.1M</td><td>7.08%</td><td>26.84%</td><td>3.1M</td></tr></table>",
|
| 818 |
+
"bbox": [
|
| 819 |
+
191,
|
| 820 |
+
763,
|
| 821 |
+
805,
|
| 822 |
+
881
|
| 823 |
+
],
|
| 824 |
+
"page_idx": 6
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"type": "text",
|
| 828 |
+
"text": "4.6 TRAINING TIME COMPARISON ",
|
| 829 |
+
"text_level": 1,
|
| 830 |
+
"bbox": [
|
| 831 |
+
176,
|
| 832 |
+
103,
|
| 833 |
+
426,
|
| 834 |
+
118
|
| 835 |
+
],
|
| 836 |
+
"page_idx": 7
|
| 837 |
+
},
|
| 838 |
+
{
|
| 839 |
+
"type": "text",
|
| 840 |
+
"text": "In table 5, we report the mean training time per epoch for DSGC and GCN, the fastest graph convolution baseline. In DSGC, our model computes the convolution weight for each edge of the graph, which requires more computation resources. However, we always perform the graph convolution on the sparse graph, which the number of edges grows only linearly in the graph size. Therefore the training is fairly efficient. Notably, learning the convolution filters as in DSGC leads to consistently better performance over all previous methods, with around $0 . 5 \\mathrm { x } - 3 \\mathrm { x }$ running time. ",
|
| 841 |
+
"bbox": [
|
| 842 |
+
173,
|
| 843 |
+
128,
|
| 844 |
+
826,
|
| 845 |
+
214
|
| 846 |
+
],
|
| 847 |
+
"page_idx": 7
|
| 848 |
+
},
|
| 849 |
+
{
|
| 850 |
+
"type": "table",
|
| 851 |
+
"img_path": "images/81f83f2824e42c279ccfc528ac1222a49ab028512237f8c7e54408aabaf436bb.jpg",
|
| 852 |
+
"table_caption": [
|
| 853 |
+
"Table 5: Training time per epoch for GCN and DSGC methods. The unit is minute. "
|
| 854 |
+
],
|
| 855 |
+
"table_footnote": [],
|
| 856 |
+
"table_body": "<table><tr><td>Dataset</td><td>CIFAR</td><td>USHCN-TMAX</td><td>20news</td></tr><tr><td>GCN</td><td>1.75</td><td>0.465</td><td>0.207</td></tr><tr><td>DSGC</td><td>3.81</td><td>1.73</td><td>0.280</td></tr></table>",
|
| 857 |
+
"bbox": [
|
| 858 |
+
330,
|
| 859 |
+
228,
|
| 860 |
+
666,
|
| 861 |
+
273
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 7
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "5 RELATED WORK ",
|
| 868 |
+
"text_level": 1,
|
| 869 |
+
"bbox": [
|
| 870 |
+
174,
|
| 871 |
+
329,
|
| 872 |
+
344,
|
| 873 |
+
345
|
| 874 |
+
],
|
| 875 |
+
"page_idx": 7
|
| 876 |
+
},
|
| 877 |
+
{
|
| 878 |
+
"type": "text",
|
| 879 |
+
"text": "In this section, we will summarize the graph convolution methods proposed in recent years with the label propagation process, which reveals the difference between traditional 2D-convolution and them. Firstly, we provide the formulation of the full convolution (LeCun et al., 1995), ",
|
| 880 |
+
"bbox": [
|
| 881 |
+
174,
|
| 882 |
+
362,
|
| 883 |
+
825,
|
| 884 |
+
405
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 7
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "equation",
|
| 890 |
+
"img_path": "images/a7682268d5ae4b6b795011fdbf053122cfffc4c91ed81f188162e73913117778.jpg",
|
| 891 |
+
"text": "$$\ny _ { i q } = \\sum _ { p = 1 } ^ { P } \\sum _ { j \\in \\mathcal { N } ( i ) } w _ { \\Delta _ { i j } } ^ { ( p q ) } x _ { j p }\n$$",
|
| 892 |
+
"text_format": "latex",
|
| 893 |
+
"bbox": [
|
| 894 |
+
411,
|
| 895 |
+
421,
|
| 896 |
+
586,
|
| 897 |
+
469
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 7
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "different from the depthwise separable convolution, it captures the channel correlation and spatial correlation simultaneously by $W ^ { ( p q ) }$ , which leads to the larger number of parameters. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
173,
|
| 906 |
+
479,
|
| 907 |
+
825,
|
| 908 |
+
512
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 7
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "In Spectral Network (Bruna et al., 2013), the authors try to leverage the graph Fourier transformation as the basic convolution operation in the graph domain, which can be written as, ",
|
| 915 |
+
"bbox": [
|
| 916 |
+
173,
|
| 917 |
+
517,
|
| 918 |
+
825,
|
| 919 |
+
547
|
| 920 |
+
],
|
| 921 |
+
"page_idx": 7
|
| 922 |
+
},
|
| 923 |
+
{
|
| 924 |
+
"type": "equation",
|
| 925 |
+
"img_path": "images/f6b425dc4ba98fc97d3393637a1db4628e17e473e216fda485dc0f5c31eac24a.jpg",
|
| 926 |
+
"text": "$$\ny _ { i q } = \\sum _ { p = 1 } ^ { P } \\sum _ { j \\in \\mathcal { N } ( i ) } w _ { i j } ^ { ( p q ) } x _ { j p } w h e r e W ^ { p q } = \\Phi \\Lambda ^ { p q } \\Phi ^ { T }\n$$",
|
| 927 |
+
"text_format": "latex",
|
| 928 |
+
"bbox": [
|
| 929 |
+
308,
|
| 930 |
+
564,
|
| 931 |
+
692,
|
| 932 |
+
611
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 7
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "text",
|
| 938 |
+
"text": "where $\\Phi \\in \\mathbb { R } ^ { n \\times n }$ contains the eigenvectors of Laplacian matrix of the graph, and $\\Lambda$ is a diagonal matrix and learned by the supervision data. The Spectral Network can be matched with the full convolution, but with the different filter subspace, in other words, with different basic filters. However, it suffers from several limitations. (1) It needs to conduct eigenvector decomposition over the Laplacian Matrix, which is a very expensive operation. (2) The filters are not localized in the spatial domain. (3) The number of parameters grows linearly with the number of nodes in the graph. In order to address the previous problems, researchers try to use the Chebyshev polynomial to approximate the non-parameter filter $\\Lambda$ , which is referred to as ChebyNet (Defferrard et al., 2016). It can be written as, ",
|
| 939 |
+
"bbox": [
|
| 940 |
+
173,
|
| 941 |
+
622,
|
| 942 |
+
825,
|
| 943 |
+
750
|
| 944 |
+
],
|
| 945 |
+
"page_idx": 7
|
| 946 |
+
},
|
| 947 |
+
{
|
| 948 |
+
"type": "equation",
|
| 949 |
+
"img_path": "images/a100f1735b88d8004243b62affdb9687da17acbc25660bb4d2b39d61b13a98f0.jpg",
|
| 950 |
+
"text": "$$\ny _ { i q } = \\sum _ { k = 1 } ^ { K } \\sum _ { j \\in \\mathcal { N } ( i ) } T _ { k } ( L ) _ { i j } z _ { i q } ^ { ( k ) } \\quad w h e r e \\quad z _ { i } ^ { ( k ) } = U ^ { ( k ) } \\pmb { x } _ { j }\n$$",
|
| 951 |
+
"text_format": "latex",
|
| 952 |
+
"bbox": [
|
| 953 |
+
313,
|
| 954 |
+
767,
|
| 955 |
+
686,
|
| 956 |
+
814
|
| 957 |
+
],
|
| 958 |
+
"page_idx": 7
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"type": "text",
|
| 962 |
+
"text": "where $T _ { k } ( L )$ is the $k$ -th order Chebyshev polynomial term. The ChebyNet can be considered as the integration of $K$ depthwise separable convolution components in a layer. But still, it suffers from the similar limitation as the GCN, which is using one graph filter over all channels and the graph filter is constant given the input. So its model capacity still cannot compare with depthwise separable convolution. With larger $K$ , the ChebyNet can approximate the non-parameter filers in the Spectral Network. However, it would require large number of parameters and face the similar limitation as the Spectral Network. ",
|
| 963 |
+
"bbox": [
|
| 964 |
+
173,
|
| 965 |
+
825,
|
| 966 |
+
825,
|
| 967 |
+
924
|
| 968 |
+
],
|
| 969 |
+
"page_idx": 7
|
| 970 |
+
},
|
| 971 |
+
{
|
| 972 |
+
"type": "text",
|
| 973 |
+
"text": "Besides the graph convolution methods, researchers propose another type of models, geometric convolution methods (Masci et al., 2015; Boscaini et al., 2016; Monti et al., 2016), to deal with data in the general spatial domain. Here, we introduce the most advanced one, MoNet (Monti et al., 2016) framework, which is also the most related one to our paper. The updating formula of MoNet in the label propagation process is, ",
|
| 974 |
+
"bbox": [
|
| 975 |
+
174,
|
| 976 |
+
103,
|
| 977 |
+
825,
|
| 978 |
+
174
|
| 979 |
+
],
|
| 980 |
+
"page_idx": 8
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"type": "equation",
|
| 984 |
+
"img_path": "images/2bb3f300d6c0d707974d171ad5b123eb8f4749edcd5a4c75520d2164a79684ac.jpg",
|
| 985 |
+
"text": "$$\ny _ { i q } = \\sum _ { k = 1 } ^ { K } \\sum _ { j \\in \\mathcal { N } ( i ) } w _ { k } \\mathopen { } \\mathclose \\bgroup \\left( v ( i , j ) \\aftergroup \\egroup \\right) z _ { j q } ^ { ( k ) } \\quad w h e r e \\quad z _ { j } ^ { ( k ) } = { U ^ { k } } x _ { j }\n$$",
|
| 986 |
+
"text_format": "latex",
|
| 987 |
+
"bbox": [
|
| 988 |
+
307,
|
| 989 |
+
189,
|
| 990 |
+
692,
|
| 991 |
+
236
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 8
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "where $w _ { k } ( v ) = e x p ( - { \\textstyle \\frac { 1 } { 2 } } ( v - \\mu _ { k } ) ^ { T } \\Sigma _ { k } ^ { - 1 } ( v - \\mu _ { k } ) )$ , and $v ( i , j )$ is a mapping from a node pair to a embedding vector, similar to $\\Delta _ { i j }$ in our model. $\\mu _ { k } , \\Sigma _ { k }$ are both model parameters, and $\\Sigma _ { k }$ is constrained as the diagonal matrix. MoNet can be viewed as an extension of the ChebyNet by letting the graph filters learn from the data. But it still has two limitations compared with the depthwise separable convolution and proposed method: (1) It uses a simple Gaussian function, which is weaker than non-parametric filter in the depthwise separable convolution, and neural network function in the proposed method. (2) It uses a graph filter for all channels. In order to capture complex propagation patterns in a layer, the model requires a larger $K$ , which leads to much larger number of parameters. And finally the experiment results show that the proposed method (DSGC) consistently outperforms the MoNet with less parameters in multiple tasks. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
174,
|
| 1000 |
+
247,
|
| 1001 |
+
825,
|
| 1002 |
+
388
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 8
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "6 CONCLUSION ",
|
| 1009 |
+
"text_level": 1,
|
| 1010 |
+
"bbox": [
|
| 1011 |
+
174,
|
| 1012 |
+
409,
|
| 1013 |
+
318,
|
| 1014 |
+
424
|
| 1015 |
+
],
|
| 1016 |
+
"page_idx": 8
|
| 1017 |
+
},
|
| 1018 |
+
{
|
| 1019 |
+
"type": "text",
|
| 1020 |
+
"text": "In this paper, we propose a novel Depthwise Separable Graph Convolution (DSGC) Network which is explicitly generalized from the depthwise separable convolution, and goes beyond to the general graph space. The extensive experiments on multi-field benchmark datasets demonstrate that our method can outperform strong baseline methods with a relatively small number of model parameters, and that it can be easily extended to leverage the advanced techniques/architectures in standard convolution networks for further improvement of the performance. In future work, we want to explore its impact on a broader range of applications, such as social networks and molecular structures by leveraging technical improvements about node/edge embedding based on graph structure information. ",
|
| 1021 |
+
"bbox": [
|
| 1022 |
+
173,
|
| 1023 |
+
440,
|
| 1024 |
+
825,
|
| 1025 |
+
565
|
| 1026 |
+
],
|
| 1027 |
+
"page_idx": 8
|
| 1028 |
+
},
|
| 1029 |
+
{
|
| 1030 |
+
"type": "text",
|
| 1031 |
+
"text": "REFERENCES ",
|
| 1032 |
+
"text_level": 1,
|
| 1033 |
+
"bbox": [
|
| 1034 |
+
176,
|
| 1035 |
+
587,
|
| 1036 |
+
285,
|
| 1037 |
+
602
|
| 1038 |
+
],
|
| 1039 |
+
"page_idx": 8
|
| 1040 |
+
},
|
| 1041 |
+
{
|
| 1042 |
+
"type": "text",
|
| 1043 |
+
"text": "James Atwood and Don Towsley. Diffusion-convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 1993–2001, 2016. ",
|
| 1044 |
+
"bbox": [
|
| 1045 |
+
173,
|
| 1046 |
+
611,
|
| 1047 |
+
823,
|
| 1048 |
+
640
|
| 1049 |
+
],
|
| 1050 |
+
"page_idx": 8
|
| 1051 |
+
},
|
| 1052 |
+
{
|
| 1053 |
+
"type": "text",
|
| 1054 |
+
"text": "Davide Boscaini, Jonathan Masci, Emanuele Rodola, and Michael Bronstein. Learning shape cor- \\` respondence with anisotropic convolutional neural networks. In Advances in Neural Information Processing Systems, pp. 3189–3197, 2016. ",
|
| 1055 |
+
"bbox": [
|
| 1056 |
+
174,
|
| 1057 |
+
648,
|
| 1058 |
+
821,
|
| 1059 |
+
690
|
| 1060 |
+
],
|
| 1061 |
+
"page_idx": 8
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"type": "text",
|
| 1065 |
+
"text": "Michael M Bronstein, Joan Bruna, Yann LeCun, Arthur Szlam, and Pierre Vandergheynst. Geometric deep learning: going beyond euclidean data. IEEE Signal Processing Magazine, 34(4):18–42, 2017. ",
|
| 1066 |
+
"bbox": [
|
| 1067 |
+
174,
|
| 1068 |
+
700,
|
| 1069 |
+
821,
|
| 1070 |
+
742
|
| 1071 |
+
],
|
| 1072 |
+
"page_idx": 8
|
| 1073 |
+
},
|
| 1074 |
+
{
|
| 1075 |
+
"type": "text",
|
| 1076 |
+
"text": "Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. arXiv preprint arXiv:1312.6203, 2013. ",
|
| 1077 |
+
"bbox": [
|
| 1078 |
+
169,
|
| 1079 |
+
752,
|
| 1080 |
+
823,
|
| 1081 |
+
781
|
| 1082 |
+
],
|
| 1083 |
+
"page_idx": 8
|
| 1084 |
+
},
|
| 1085 |
+
{
|
| 1086 |
+
"type": "text",
|
| 1087 |
+
"text": "Franc¸ois Chollet. Xception: Deep learning with depthwise separable convolutions. arXiv preprint arXiv:1610.02357, 2016. ",
|
| 1088 |
+
"bbox": [
|
| 1089 |
+
171,
|
| 1090 |
+
791,
|
| 1091 |
+
825,
|
| 1092 |
+
820
|
| 1093 |
+
],
|
| 1094 |
+
"page_idx": 8
|
| 1095 |
+
},
|
| 1096 |
+
{
|
| 1097 |
+
"type": "text",
|
| 1098 |
+
"text": "Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks ¨ on graphs with fast localized spectral filtering. In Advances in Neural Information Processing Systems, pp. 3844–3852, 2016. ",
|
| 1099 |
+
"bbox": [
|
| 1100 |
+
174,
|
| 1101 |
+
829,
|
| 1102 |
+
823,
|
| 1103 |
+
872
|
| 1104 |
+
],
|
| 1105 |
+
"page_idx": 8
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"type": "text",
|
| 1109 |
+
"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. ",
|
| 1110 |
+
"bbox": [
|
| 1111 |
+
176,
|
| 1112 |
+
881,
|
| 1113 |
+
825,
|
| 1114 |
+
924
|
| 1115 |
+
],
|
| 1116 |
+
"page_idx": 8
|
| 1117 |
+
},
|
| 1118 |
+
{
|
| 1119 |
+
"type": "text",
|
| 1120 |
+
"text": "Jie Hu, Li Shen, and Gang Sun. Squeeze-and-excitation networks. arXiv preprint arXiv:1709.01507, 2017. ",
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
171,
|
| 1123 |
+
103,
|
| 1124 |
+
823,
|
| 1125 |
+
132
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 9
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "Gao Huang, Zhuang Liu, Kilian Q Weinberger, and Laurens van der Maaten. Densely connected convolutional networks. arXiv preprint arXiv:1608.06993, 2016. ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
174,
|
| 1134 |
+
145,
|
| 1135 |
+
823,
|
| 1136 |
+
174
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 9
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "Thorsten Joachims. A probabilistic analysis of the rocchio algorithm with tfidf for text categorization. Technical report, Carnegie-mellon univ pittsburgh pa dept of computer science, 1996. ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
173,
|
| 1145 |
+
185,
|
| 1146 |
+
823,
|
| 1147 |
+
215
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 9
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
173,
|
| 1156 |
+
227,
|
| 1157 |
+
823,
|
| 1158 |
+
256
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 9
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "text",
|
| 1164 |
+
"text": "Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. arXiv preprint arXiv:1609.02907, 2016. ",
|
| 1165 |
+
"bbox": [
|
| 1166 |
+
171,
|
| 1167 |
+
268,
|
| 1168 |
+
823,
|
| 1169 |
+
297
|
| 1170 |
+
],
|
| 1171 |
+
"page_idx": 9
|
| 1172 |
+
},
|
| 1173 |
+
{
|
| 1174 |
+
"type": "text",
|
| 1175 |
+
"text": "Alex Krizhevsky and Geoffrey Hinton. Learning multiple layers of features from tiny images. 2009. ",
|
| 1176 |
+
"bbox": [
|
| 1177 |
+
173,
|
| 1178 |
+
309,
|
| 1179 |
+
821,
|
| 1180 |
+
325
|
| 1181 |
+
],
|
| 1182 |
+
"page_idx": 9
|
| 1183 |
+
},
|
| 1184 |
+
{
|
| 1185 |
+
"type": "text",
|
| 1186 |
+
"text": "Guokun Lai, Wei-Cheng Chang, Yiming Yang, and Hanxiao Liu. Modeling long-and short-term temporal patterns with deep neural networks. arXiv preprint arXiv:1703.07015, 2017. ",
|
| 1187 |
+
"bbox": [
|
| 1188 |
+
173,
|
| 1189 |
+
337,
|
| 1190 |
+
825,
|
| 1191 |
+
366
|
| 1192 |
+
],
|
| 1193 |
+
"page_idx": 9
|
| 1194 |
+
},
|
| 1195 |
+
{
|
| 1196 |
+
"type": "text",
|
| 1197 |
+
"text": "Yann LeCun, Yoshua Bengio, et al. Convolutional networks for images, speech, and time series. The handbook of brain theory and neural networks, 3361(10):1995, 1995. ",
|
| 1198 |
+
"bbox": [
|
| 1199 |
+
173,
|
| 1200 |
+
377,
|
| 1201 |
+
823,
|
| 1202 |
+
407
|
| 1203 |
+
],
|
| 1204 |
+
"page_idx": 9
|
| 1205 |
+
},
|
| 1206 |
+
{
|
| 1207 |
+
"type": "text",
|
| 1208 |
+
"text": "Yann LeCun, Yoshua Bengio, and Geoffrey Hinton. Deep learning. Nature, 521(7553):436–444, 2015. ",
|
| 1209 |
+
"bbox": [
|
| 1210 |
+
174,
|
| 1211 |
+
419,
|
| 1212 |
+
823,
|
| 1213 |
+
449
|
| 1214 |
+
],
|
| 1215 |
+
"page_idx": 9
|
| 1216 |
+
},
|
| 1217 |
+
{
|
| 1218 |
+
"type": "text",
|
| 1219 |
+
"text": "Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Graph convolutional recurrent neural network: Data-driven traffic forecasting. arXiv preprint arXiv:1707.01926, 2017. ",
|
| 1220 |
+
"bbox": [
|
| 1221 |
+
173,
|
| 1222 |
+
460,
|
| 1223 |
+
825,
|
| 1224 |
+
491
|
| 1225 |
+
],
|
| 1226 |
+
"page_idx": 9
|
| 1227 |
+
},
|
| 1228 |
+
{
|
| 1229 |
+
"type": "text",
|
| 1230 |
+
"text": "Jonathan Masci, Davide Boscaini, Michael Bronstein, and Pierre Vandergheynst. Geodesic convolutional neural networks on riemannian manifolds. In Proceedings of the IEEE international conference on computer vision workshops, pp. 37–45, 2015. ",
|
| 1231 |
+
"bbox": [
|
| 1232 |
+
174,
|
| 1233 |
+
501,
|
| 1234 |
+
823,
|
| 1235 |
+
545
|
| 1236 |
+
],
|
| 1237 |
+
"page_idx": 9
|
| 1238 |
+
},
|
| 1239 |
+
{
|
| 1240 |
+
"type": "text",
|
| 1241 |
+
"text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In Advances in neural information processing systems, pp. 3111–3119, 2013. ",
|
| 1242 |
+
"bbox": [
|
| 1243 |
+
173,
|
| 1244 |
+
556,
|
| 1245 |
+
823,
|
| 1246 |
+
601
|
| 1247 |
+
],
|
| 1248 |
+
"page_idx": 9
|
| 1249 |
+
},
|
| 1250 |
+
{
|
| 1251 |
+
"type": "text",
|
| 1252 |
+
"text": "Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M \\` Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. arXiv preprint arXiv:1611.08402, 2016. ",
|
| 1253 |
+
"bbox": [
|
| 1254 |
+
173,
|
| 1255 |
+
611,
|
| 1256 |
+
825,
|
| 1257 |
+
655
|
| 1258 |
+
],
|
| 1259 |
+
"page_idx": 9
|
| 1260 |
+
},
|
| 1261 |
+
{
|
| 1262 |
+
"type": "text",
|
| 1263 |
+
"text": "David I Shuman, Sunil K Narang, Pascal Frossard, Antonio Ortega, and Pierre Vandergheynst. The emerging field of signal processing on graphs: Extending high-dimensional data analysis to networks and other irregular domains. IEEE Signal Processing Magazine, 30(3):83–98, 2013. ",
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
173,
|
| 1266 |
+
666,
|
| 1267 |
+
823,
|
| 1268 |
+
710
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 9
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014. ",
|
| 1275 |
+
"bbox": [
|
| 1276 |
+
173,
|
| 1277 |
+
722,
|
| 1278 |
+
823,
|
| 1279 |
+
751
|
| 1280 |
+
],
|
| 1281 |
+
"page_idx": 9
|
| 1282 |
+
},
|
| 1283 |
+
{
|
| 1284 |
+
"type": "text",
|
| 1285 |
+
"text": "Christian Szegedy, Vincent Vanhoucke, Sergey Ioffe, Jon Shlens, and Zbigniew Wojna. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2818–2826, 2016. ",
|
| 1286 |
+
"bbox": [
|
| 1287 |
+
173,
|
| 1288 |
+
762,
|
| 1289 |
+
823,
|
| 1290 |
+
806
|
| 1291 |
+
],
|
| 1292 |
+
"page_idx": 9
|
| 1293 |
+
},
|
| 1294 |
+
{
|
| 1295 |
+
"type": "text",
|
| 1296 |
+
"text": "SHI Xingjian, Zhourong Chen, Hao Wang, Dit-Yan Yeung, Wai-Kin Wong, and Wang-chun Woo. Convolutional lstm network: A machine learning approach for precipitation nowcasting. In Advances in neural information processing systems, pp. 802–810, 2015. ",
|
| 1297 |
+
"bbox": [
|
| 1298 |
+
176,
|
| 1299 |
+
818,
|
| 1300 |
+
823,
|
| 1301 |
+
862
|
| 1302 |
+
],
|
| 1303 |
+
"page_idx": 9
|
| 1304 |
+
},
|
| 1305 |
+
{
|
| 1306 |
+
"type": "text",
|
| 1307 |
+
"text": "Xiaojin Zhu, Zoubin Ghahramani, and John D Lafferty. Semi-supervised learning using gaussian fields and harmonic functions. In Proceedings of the 20th International conference on Machine learning (ICML-03), pp. 912–919, 2003. ",
|
| 1308 |
+
"bbox": [
|
| 1309 |
+
173,
|
| 1310 |
+
873,
|
| 1311 |
+
826,
|
| 1312 |
+
916
|
| 1313 |
+
],
|
| 1314 |
+
"page_idx": 9
|
| 1315 |
+
},
|
| 1316 |
+
{
|
| 1317 |
+
"type": "table",
|
| 1318 |
+
"img_path": "images/fad98b433cd55ba72cbf91366465ce337ba4a9659eef5c89dd56393343501af2.jpg",
|
| 1319 |
+
"table_caption": [
|
| 1320 |
+
"Table 6: Neural Network architecture for CIFAR datasets. Please see the text for more details. "
|
| 1321 |
+
],
|
| 1322 |
+
"table_footnote": [],
|
| 1323 |
+
"table_body": "<table><tr><td rowspan=1 colspan=1>Layers</td><td rowspan=1 colspan=3>VGG13</td><td rowspan=1 colspan=3>DSGC-VGG13</td><td rowspan=1 colspan=3>DSGC-DenseNet</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>3 ×3conv]×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=2>9-conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-conv×6</td><td rowspan=1 colspan=1>×6</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2 × 2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>3×3 conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-convx2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=2>9-conv</td><td rowspan=1 colspan=1>×12</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2×2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>[3×3conv]×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-conv]x 2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>[9-conv]×24</td><td rowspan=1 colspan=1>×24</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2 × 2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>3×3conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=3>9-convx2</td><td rowspan=1 colspan=3>9-conv× 16</td></tr><tr><td rowspan=1 colspan=1>Transition</td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3></td><td rowspan=1 colspan=3>1-conv</td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2×2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Convolution</td><td rowspan=1 colspan=2>3×3conv]×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>9-conv×2</td><td rowspan=1 colspan=1>×2</td><td rowspan=1 colspan=3></td></tr><tr><td rowspan=1 colspan=1>Pooling</td><td rowspan=1 colspan=3>2 ×2 max-pooling</td><td rowspan=1 colspan=6>4 max-pooling</td></tr><tr><td rowspan=1 colspan=1>Classifier</td><td rowspan=1 colspan=9>512D fully-connected, softmax</td></tr></table>",
|
| 1324 |
+
"bbox": [
|
| 1325 |
+
248,
|
| 1326 |
+
101,
|
| 1327 |
+
750,
|
| 1328 |
+
335
|
| 1329 |
+
],
|
| 1330 |
+
"page_idx": 10
|
| 1331 |
+
},
|
| 1332 |
+
{
|
| 1333 |
+
"type": "text",
|
| 1334 |
+
"text": "A EXPERIMENT DETAIL ",
|
| 1335 |
+
"text_level": 1,
|
| 1336 |
+
"bbox": [
|
| 1337 |
+
176,
|
| 1338 |
+
416,
|
| 1339 |
+
390,
|
| 1340 |
+
433
|
| 1341 |
+
],
|
| 1342 |
+
"page_idx": 10
|
| 1343 |
+
},
|
| 1344 |
+
{
|
| 1345 |
+
"type": "text",
|
| 1346 |
+
"text": "A.1 IMPLEMENTATION DETAILS OF CIFAR EXPERIMENT ",
|
| 1347 |
+
"bbox": [
|
| 1348 |
+
173,
|
| 1349 |
+
469,
|
| 1350 |
+
583,
|
| 1351 |
+
484
|
| 1352 |
+
],
|
| 1353 |
+
"page_idx": 10
|
| 1354 |
+
},
|
| 1355 |
+
{
|
| 1356 |
+
"type": "text",
|
| 1357 |
+
"text": "In section 4.2 and 4.5, we conduct the experiment on the CIFAR10 and CIFAR100 datasets. We will introduce the architecture settings for the DSGC and baseline models. Table 6 illustrates the basic architecture used in the experiment. In the DSGC-VGG13 and DSGC-DenseNet models, the $k$ -conv refers to the spatial convolution (Eq.4) with $k$ -nearest neighbors as the neighbor setting. So the 1-conv is the same as the $1 \\times 1$ conv, which is doing linear transformation on channels. The hidden dimensions of VGG13 and DSGC-VGG13 are set as $\\{ 2 5 6 , 5 1 2 , 5 1 2 , 5 1 2 \\}$ and $\\{ 2 5 6 , 5 1 2 , 5 1 2 , 1 0 2 4 \\}$ . The growth rate of DSGC-DenseNet is 32. And the baseline graph and geometric convolution methods use the identical architecture as DSGC-VGG13. For the subsampled CIFAR experiment, We eliminate the first convolution, transition and pooling layer, and change the spatial convolution from 9-conv to {16-conv, 12-conv, 8-conv, 4-conv}. For the DSGC-SE, we follow the method described in Hu et al. (2017) to add the SE block to DSGC-VGG13 architecture. We use the dropout scheme described in Huang et al. (2016) for the DSGC-DenseNet model, and add the dropout layer after the pooling layer for VGG13 and DSGC-VGG13 models. For the DSGCInception model, we imitate the design of the Inception Network (Szegedy et al. (2016)). The key idea is letting a convolution layer have different size of convolution filters. We use a simple example as our Inception module, which is illustrated in Figure 3. ",
|
| 1358 |
+
"bbox": [
|
| 1359 |
+
174,
|
| 1360 |
+
510,
|
| 1361 |
+
825,
|
| 1362 |
+
731
|
| 1363 |
+
],
|
| 1364 |
+
"page_idx": 10
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "text",
|
| 1368 |
+
"text": "For the CNN model, we still format the input signal in the matrix shape. The signals in invalid points are set as 0. Furthermore, to perform the fair comparison with standard CNN in the subsampled situation, we append a mask matrix as an additional channel for input signals to indicate whether the pixel is valid or not. For the MoNet, we also apply the softmax trick described in Section 3, which accelerates its training process and improves its final result. For the ChebyNet, we set the polynomial order as $K = 3$ . ",
|
| 1369 |
+
"bbox": [
|
| 1370 |
+
174,
|
| 1371 |
+
739,
|
| 1372 |
+
825,
|
| 1373 |
+
821
|
| 1374 |
+
],
|
| 1375 |
+
"page_idx": 10
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "text",
|
| 1379 |
+
"text": "For the $\\triangle _ { i j }$ used in DSGC and MoNet, we use a 5 dimension feature vector. We denote the coordinate of $i$ -th node as $( x _ { i } , y _ { i } )$ , and $\\triangle x _ { i j } = x _ { i } - x _ { j } , \\triangle y _ { i j } = y _ { i } - y _ { j } , \\triangle d _ { i j } = \\triangle x _ { i j } ^ { 2 } + \\triangle y _ { i j } ^ { 2 }$ . Then $\\begin{array} { r } { \\triangle _ { i j } = ( s i g n ( \\triangle x _ { i j } ) , | \\triangle x _ { i j } | , s i g n ( \\triangle y _ { i j } ) , | \\triangle y _ { i j } | , \\triangle d _ { i j } ) } \\end{array}$ . ",
|
| 1380 |
+
"bbox": [
|
| 1381 |
+
174,
|
| 1382 |
+
829,
|
| 1383 |
+
825,
|
| 1384 |
+
877
|
| 1385 |
+
],
|
| 1386 |
+
"page_idx": 10
|
| 1387 |
+
},
|
| 1388 |
+
{
|
| 1389 |
+
"type": "text",
|
| 1390 |
+
"text": "The same learning schedule is applied to all models. We use SGD to train the model for 400 epochs. The initial learning rate is 0.1, and is divided by 10 at $50 \\%$ and $7 5 \\%$ of the total number of training epochs. ",
|
| 1391 |
+
"bbox": [
|
| 1392 |
+
174,
|
| 1393 |
+
882,
|
| 1394 |
+
823,
|
| 1395 |
+
924
|
| 1396 |
+
],
|
| 1397 |
+
"page_idx": 10
|
| 1398 |
+
},
|
| 1399 |
+
{
|
| 1400 |
+
"type": "image",
|
| 1401 |
+
"img_path": "images/ad95d6832217385a5192e14d10fb6a88c853c016619ac7ef58be35065053fb7c.jpg",
|
| 1402 |
+
"image_caption": [
|
| 1403 |
+
"Figure 3: Inception Module "
|
| 1404 |
+
],
|
| 1405 |
+
"image_footnote": [],
|
| 1406 |
+
"bbox": [
|
| 1407 |
+
429,
|
| 1408 |
+
102,
|
| 1409 |
+
568,
|
| 1410 |
+
277
|
| 1411 |
+
],
|
| 1412 |
+
"page_idx": 11
|
| 1413 |
+
},
|
| 1414 |
+
{
|
| 1415 |
+
"type": "text",
|
| 1416 |
+
"text": "A.2 IMPLEMENTATION DETAILS OF TIME SERIES PREDICTION ",
|
| 1417 |
+
"text_level": 1,
|
| 1418 |
+
"bbox": [
|
| 1419 |
+
173,
|
| 1420 |
+
329,
|
| 1421 |
+
620,
|
| 1422 |
+
343
|
| 1423 |
+
],
|
| 1424 |
+
"page_idx": 11
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"type": "text",
|
| 1428 |
+
"text": "Firstly, we will give the formal definition of the time series forecasting, that is, spatiotemporal regression problem. We formulate the the spatiotemporal regression problem as a multivariate time series forecasting task with the sensors’ location as the input. More formally, given a series of time series signals observed from sensors $Y = \\{ y _ { 1 } , y _ { 2 } , \\cdot \\cdot \\cdot , y _ { T } \\}$ where $\\ b { y } _ { t } \\in \\mathbb { R } ^ { n }$ and $n$ are the number of sensors, and the locations of sensors $\\pmb { L } = \\{ l _ { 1 } , l _ { 2 } , \\cdots , l _ { n } \\}$ where $\\bar { \\boldsymbol { l } } _ { i } \\in \\mathbb { R } ^ { 2 }$ and indicates the coordinate of the sensor, the task is to predict a series of future signals in a rolling forecasting fashion. That being said, to predict ${ \\pmb { y } } _ { T + h }$ where $h$ is the desirable horizon ahead of the current time stamp $T$ , we assume $\\{ { \\pmb y } _ { 1 } , { \\pmb y } _ { 2 } , \\dotsb , { \\pmb y } _ { T } \\}$ are available. Likewise, to predict the signal of the next time stamp ${ \\pmb y } _ { T + h + 1 }$ , we assume $\\{ { \\pmb y } _ { 1 } , { \\pmb y } _ { 2 } , \\cdot \\cdot \\cdot , { \\pmb y } _ { T } , { \\pmb y } _ { T + 1 } \\}$ are available. In this paper, we follow the setting of the autoregressive model. Define a window size $p$ which is a hyper-parameter firstly. The model input at time stamp $T$ is $X _ { T } = \\{ y _ { T - p + 1 } , \\cdot \\cdot \\cdot , y _ { T } \\} \\in \\mathbb { R } ^ { n \\times p }$ . In the experiments of this paper, the horizon is always set as 1. ",
|
| 1429 |
+
"bbox": [
|
| 1430 |
+
173,
|
| 1431 |
+
354,
|
| 1432 |
+
825,
|
| 1433 |
+
521
|
| 1434 |
+
],
|
| 1435 |
+
"page_idx": 11
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"type": "text",
|
| 1439 |
+
"text": "Intuitively, different sensors may have node-level hidden features to influence its propagation patterns and final outputs. Then for each node, the model learns a node embedding vector and concatenate it with the input signals. By using this trick, each node has limited freedom to interface with its propagation patterns. This trick is proven to be useful in this task, USHCN-PRCP and Solar specifically. We set the embedding size as 10 for these two datasets. ",
|
| 1440 |
+
"bbox": [
|
| 1441 |
+
174,
|
| 1442 |
+
529,
|
| 1443 |
+
825,
|
| 1444 |
+
598
|
| 1445 |
+
],
|
| 1446 |
+
"page_idx": 11
|
| 1447 |
+
},
|
| 1448 |
+
{
|
| 1449 |
+
"type": "text",
|
| 1450 |
+
"text": "One thing readers may notice is that there are $10 \\%$ data in USHCN dataset missing. To deal with that, we add an additional feature channel to indicate which point is missing. For the time series models, we tune the historical window $p$ according to the validation set. For the rest of models, we set the window size $p = 1 8$ for Solar dataset and $p = 6$ for USHCN datasets. The network architecture used in this task is 7 convolution layers followed by a regression layer. The $\\triangle _ { i j }$ setting is the same as the previous one. We use the Adam optimizer (Kingma & Ba, 2014) for this task, and train each model 200 epochs with learning rate 0.001. ",
|
| 1451 |
+
"bbox": [
|
| 1452 |
+
174,
|
| 1453 |
+
606,
|
| 1454 |
+
825,
|
| 1455 |
+
703
|
| 1456 |
+
],
|
| 1457 |
+
"page_idx": 11
|
| 1458 |
+
},
|
| 1459 |
+
{
|
| 1460 |
+
"type": "text",
|
| 1461 |
+
"text": "A.3 IMPLEMENTATION DETAILS OF DOCUMENT CATEGORIZATION ",
|
| 1462 |
+
"text_level": 1,
|
| 1463 |
+
"bbox": [
|
| 1464 |
+
176,
|
| 1465 |
+
719,
|
| 1466 |
+
647,
|
| 1467 |
+
734
|
| 1468 |
+
],
|
| 1469 |
+
"page_idx": 11
|
| 1470 |
+
},
|
| 1471 |
+
{
|
| 1472 |
+
"type": "text",
|
| 1473 |
+
"text": "The data preprocessing follows the experiment details in Defferrard et al. (2016). And the network architecture for all models is 5 convolution layers followed by two MLP layers as the classifier. After each convolution layer, a dropout layer is performed with dropout rate of 0.5. The nodes’ coordinate is the word embedding, and the method to calculate $\\triangle _ { i j }$ is similar to the previous ones. The optimizer used in this task is the same as the CIFAR experiment. ",
|
| 1474 |
+
"bbox": [
|
| 1475 |
+
174,
|
| 1476 |
+
746,
|
| 1477 |
+
825,
|
| 1478 |
+
815
|
| 1479 |
+
],
|
| 1480 |
+
"page_idx": 11
|
| 1481 |
+
},
|
| 1482 |
+
{
|
| 1483 |
+
"type": "text",
|
| 1484 |
+
"text": "A.4 VARIANCE OF DSGC PERFORMANCE ",
|
| 1485 |
+
"text_level": 1,
|
| 1486 |
+
"bbox": [
|
| 1487 |
+
176,
|
| 1488 |
+
833,
|
| 1489 |
+
475,
|
| 1490 |
+
847
|
| 1491 |
+
],
|
| 1492 |
+
"page_idx": 11
|
| 1493 |
+
},
|
| 1494 |
+
{
|
| 1495 |
+
"type": "text",
|
| 1496 |
+
"text": "In this section, we report the variance of DSGC method in all 3 tasks. We run the DSGC model for 10 times and report the mean $\\pm$ std: CIFAR $7 . 3 9 \\pm 0 . 1 3 6$ , USHCN-TMAX $5 . 2 1 1 \\pm 0 . 0 4 9 8$ , 20news $7 1 . 7 0 \\pm 0 . 2 8 5$ . Obviously, the variance is significantly smaller than the performance gap between the DSGC model and best baseline results (CIFAR 8.34, USHCN-TMAX 5.467, 20news 71.01). ",
|
| 1497 |
+
"bbox": [
|
| 1498 |
+
176,
|
| 1499 |
+
859,
|
| 1500 |
+
825,
|
| 1501 |
+
915
|
| 1502 |
+
],
|
| 1503 |
+
"page_idx": 11
|
| 1504 |
+
}
|
| 1505 |
+
]
|
parse/train/H139Q_gAW/H139Q_gAW_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/H139Q_gAW/H139Q_gAW_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJGwcKclx/HJGwcKclx.md
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SOFT WEIGHT-SHARING FOR NEURAL NETWORK COMPRESSION
|
| 2 |
+
|
| 3 |
+
Karen Ullrich University of Amsterdam karen.ullrich@uva.nl
|
| 4 |
+
|
| 5 |
+
Max Welling
|
| 6 |
+
University of Amsterdam
|
| 7 |
+
Canadian Institute for Advanced Research (CIFAR)
|
| 8 |
+
welling.max@gmail.com
|
| 9 |
+
|
| 10 |
+
# ABSTRACT
|
| 11 |
+
|
| 12 |
+
The success of deep learning in numerous application domains created the desire to run and train them on mobile devices. This however, conflicts with their computationally, memory and energy intense nature, leading to a growing interest in compression. Recent work by Han et al. (2015a) propose a pipeline that involves retraining, pruning and quantization of neural network weights, obtaining state-of-the-art compression rates. In this paper, we show that competitive compression rates can be achieved by using a version of ”soft weight-sharing” (Nowlan & Hinton, 1992). Our method achieves both quantization and pruning in one simple (re-)training procedure. This point of view also exposes the relation between compression and the minimum description length (MDL) principle.
|
| 13 |
+
|
| 14 |
+
# 1 INTRODUCTION
|
| 15 |
+
|
| 16 |
+
”Bigger is better” is the ruling maxim in deep learning land. Deep neural nets with billions of parameters are no longer an exception. Networks of such size are unfortunately not practical for mobile, on-device applications which face strong limitations with respect to memory and energy consumption. Compressing neural networks could not only improve memory and energy consumption, but also lead to less network bandwidth, faster processing and better privacy. It has been shown that large networks are heavily over-parametrized and can be compressed by approximately two orders of magnitude without significant loss of accuracy. Apparently, over-parametrization is beneficial for optimization, but not necessary for accurate prediction. This observation has opened the door for a number of highly successful compression algorithms, which either train the network from scratch (Hinton et al., 2015; Iandola et al., 2016; Courbariaux & Bengio, 2016; Courbariaux et al., 2016) or apply compression post-optimization (Han et al., 2015b;a; Guo et al., 2016; Chen et al., 2015; Wen et al., 2016).
|
| 17 |
+
|
| 18 |
+
It has been long known that compression is directly related to (variational) Bayesian inference and the minimum description principle (Hinton & Van Camp, 1993). One can show that good compression can be achieved by encoding the parameters of a model using a good prior and specifying the parameters up to an uncertainty given, optimally, by the posterior distribution. An ingenious bitsback argument can then be used to get a refund for using these noisy weights. A number of papers have appeared that encode the weights of a neural network with limited precision (say 8 bits per weight), effectively cashing in on this ”bits-back” argument (Gupta et al., 2015; Courbariaux et al., 2014; Venkatesh et al., 2016). Some authors go so far of arguing that even a single bit per weight can be used without much loss of accuracy (Courbariaux et al., 2015; Courbariaux & Bengio, 2016).
|
| 19 |
+
|
| 20 |
+
In this work we follow a different but related direction, namely to learn the prior that we use to encode the parameters. In Bayesian statistics this is known as empirical Bayes. To encourage compression of the weights to $K$ clusters, we fit a mixture of Gaussians prior model over the weights. This idea originates from the nineties, known as soft weight-sharing (Nowlan & Hinton, 1992) where it was used to regularize a neural network. Here our primary goal is network compression, but as was shown in Hinton & Van Camp (1993) these two objectives are almost perfectly aligned. By fitting the mixture components alongside the weights, the weights tend to concentrate very tightly around a number of cluster components, while the cluster centers optimize themselves to give the network high predictive accuracy. Compression is achieved because we only need to encode $K$ cluster means (in full precision) in addition to the assignment of each weight to one of these $J$ values (using $\log ( J )$ bits per weight). We find that competitive compression rates can be achieved by this simple idea.
|
| 21 |
+
|
| 22 |
+
# 2 MDL VIEW ON VARIATIONAL LEARNING
|
| 23 |
+
|
| 24 |
+
Model compression was first discussed in the context of information theory. The minimum description length (MDL) principle identifies the best hypothesis to be the one that best compresses the data. More specifically, it minimizes the cost to describe the model (complexity cost $\mathcal { L } ^ { C }$ ) and the misfit between model and data (error cost $\mathcal { L } ^ { E }$ ) (Rissanen, 1978; 1986). It has been shown that variational learning can be reinterpreted as an MDL problem (Wallace, 1990; Hinton & Van Camp, 1993; Honkela & Valpola, 2004; Graves, 2011). In particular, given data $\mathcal D = \left\{ \mathbf X = \{ \mathbf x _ { n } \} _ { n = 1 } ^ { N } , \mathbf T = \{ \mathbf t _ { n } \} _ { n = 1 } ^ { N } \right\}$ , a set of parameters $\mathbf { w } = \{ w _ { i } \} _ { i = 1 } ^ { I }$ that describes the model and an approximation $q ( \mathbf { w } )$ of the posterior $p ( \mathbf { w } | \mathcal { D } )$ , the variational lower bound, also known as negative variational free energy, $\mathcal { L } ( q ( \mathbf { w } ) , \mathbf { w } )$ can be decomposed in terms of error and complexity losses
|
| 25 |
+
|
| 26 |
+
$$
|
| 27 |
+
{ \mathcal { L } } ( q ( \mathbf { w } ) , \mathbf { w } ) = - \mathbb { E } _ { q ( \mathbf { w } ) } \left[ \log \left( { \frac { p ( { \mathcal { D } } | \mathbf { w } ) p ( \mathbf { w } ) } { q ( \mathbf { w } ) } } \right) \right] = \underbrace { \mathbb { E } _ { q ( \mathbf { w } ) } \left[ - \log p ( { \mathcal { D } } | \mathbf { w } ) \right] } _ { { \mathcal { L } } ^ { E } } + \underbrace { \mathrm { K L } ( q ( \mathbf { w } ) | | p ( \mathbf { w } ) ) } _ { { \mathcal { L } } ^ { C } }
|
| 28 |
+
$$
|
| 29 |
+
|
| 30 |
+
where $p ( \mathbf { w } )$ is the prior over $\mathbf { w }$ and $p ( \mathcal { D } | \mathbf { w } )$ is the model likelihood. According to Shannon’s source coding theorem, $\mathring { \mathcal { L } } ^ { E }$ lower bounds the expected amount of information needed to communicate the targets $\mathbf { T }$ , given the receiver knows the inputs $\mathbf { X }$ and the model w. The functional form of the likelihood term is conditioned by the target distribution. For example, in case of regression the predictions of the model are assumed be normally distributed around the targets $\mathbf { T }$ .
|
| 31 |
+
|
| 32 |
+
$$
|
| 33 |
+
p ( \mathcal { D } | \mathbf { w } ) = p ( \mathbf { T } | \mathbf { X } , \mathbf { w } ) = \prod _ { n = 1 } ^ { N } \mathcal { N } ( \mathbf { t } _ { n } | \mathbf { x } _ { n } , \mathbf { w } )
|
| 34 |
+
$$
|
| 35 |
+
|
| 36 |
+
where $\mathcal { N } ( \mathbf { t } _ { n } , \mathbf { x } _ { n } , \mathbf { w } )$ is a normal distribution. Another typical example is classification where the conditional distribution of targets given data is assumed to be Bernoulli distributed1. These assumptions eventually lead to the well known error functions, namely cross-entropy error and squared error for classification and regression, respectively.
|
| 37 |
+
|
| 38 |
+
Before however we can communicate the data we first seek to communicate the model. Similarly to $\mathcal { L } ^ { E } , \mathcal { L } ^ { C }$ is a lower bound for transmitting the model. More specifically, if sender and receiver agree on a prior, $\mathcal { L } ^ { C }$ is the expected cost of communicating the parameters w. This cost is again twofold,
|
| 39 |
+
|
| 40 |
+
$$
|
| 41 |
+
\mathrm { K L } ( q ( \mathbf { w } ) | | p ( \mathbf { w } ) ) = \mathbb { E } _ { q ( \mathbf { w } ) } \left[ - \log p ( \mathbf { w } ) \right] - H ( q ( \mathbf { w } ) )
|
| 42 |
+
$$
|
| 43 |
+
|
| 44 |
+
where $H ( \cdot )$ denotes the entropy. In Wallace (1990) and Hinton & Van Camp (1993) it was shown that noisy encoding of the weights can be beneficial due to the bits-back argument if the uncertainty does not harm the error loss too much. The number of bits to get refunded by an uncertain weight distribution $q ( \mathbf { w } )$ is given by its entropy. Further, it can be shown that the optimal distribution for $q ( \mathbf { w } )$ is the Bayesian posterior distribution. While bits-back is proven to be an optimal coding scheme (Honkela $\&$ Valpola, 2004), it is often not practical in real world settings. A practical way to cash in on noisy weights (or bits-back) is to only encode a weight value up to a limited number of bits. To see this, assume a factorized variational posteriors $q ( \mathbf { w } ) { \bar { \mathbf { \Gamma } } } = \prod q ( w _ { i } )$ . Each posterior $q ( w _ { i } )$ is associated with a Dirac distribution up to machine precision, for example, a Gaussian distribution with variance $\sigma$ , for small values of $\sigma$ . This implies that we formally incur a very small refund per weight,
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
H ( q ( \mathbf { w } ) ) = - \intop _ { \Omega } q ( \mathbf { w } ) \log q ( \mathbf { w } ) \mathrm { d } \mathbf { w } = - \intop _ { \mathbb { R } ^ { I } } \mathcal { N } ( \mathbf { w } | \mathbf { 0 } , \sigma \mathbf { I } ) \log \mathcal { N } ( \mathbf { w } | \mathbf { 0 } , \sigma \mathbf { I } ) = [ \log ( 2 \pi e \sigma ^ { 2 } ) ] ^ { I } .
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
Note that the more coarse the quantization of weights the more compressible the model. The bitsback scheme makes three assumptions: (i) weights are being transmitted independently, (ii) weights are independent of each other (no mutual information), and (iii) the receiver knows the prior. Han et al. (2015a) show that one can successfully exploit (i) and (ii) by using a form of arithmetic coding (Witten et al., 1987). In particular, they employ range coding schemes such as the Sparse Matrix Format (discussed in Appendix A). This is beneficial because the weight distribution has low entropy. Note that the cost of transmitting the prior should be negligible. Thus a factorized prior with different parameters for each factor is not desirable.
|
| 51 |
+
|
| 52 |
+
The main objective of this work is to find a suitable prior for optimizing the cross-entropy between a delta posterior $q ( \mathbf { w } )$ and the prior $p ( \mathbf { w } )$ while at the same time keeping a practical coding scheme in mind. Recall that the cross entropy is a lower bound on the average number of bits required to encode the weights of the neural network (given infinite precision). Following Nowlan & Hinton (1992) we will model the prior $p ( \mathbf { w } )$ as a mixture of Gaussians,
|
| 53 |
+
|
| 54 |
+
$$
|
| 55 |
+
p ( \mathbf { w } ) = \prod _ { i = 1 } ^ { I } \sum _ { j = 0 } ^ { J } \pi _ { j } \mathcal { N } ( w _ { i } | \mu _ { j } , \sigma _ { j } ^ { 2 } ) .
|
| 56 |
+
$$
|
| 57 |
+
|
| 58 |
+
We learn the mixture parameters $\mu _ { j } , \sigma _ { j } ,$ $\pi _ { j }$ via maximum likelihood simultaneously with the network weights. This is equivalent to an empirical Bayes approach in Bayesian statistics. For stateof-the-art compression schemes pruning plays a major role. By enforcing an arbitrary “zero” component to have fixed $\mu _ { 0 } = 0$ location and $\pi _ { 0 }$ to be close to 1, a desired weight pruning rate can be enforced. In this scenario $\pi _ { 0 }$ may be fixed or trainable. In the latter case a Beta distribution as hyperprior might be helpful. The approach naturally encourages quantization because in order to optimize the cross-entropy the weights will cluster tightly around the cluster means, while the cluster means themselves move to some optimal location driven by $\mathcal { L } ^ { E }$ . The effect might even be so strong that it is beneficial to have a Gamma hyper-prior on the variances of the mixture components to prevent the components from collapsing. Furthermore, note that, mixture components merge when there is not enough pressure from the error loss to keep them separated because weights are attracted by means and means are attracted by weights hence means also attract each other. In that way the network learns how many quantization intervals are necessary. We demonstrate that behaviour in Figure 3.
|
| 59 |
+
|
| 60 |
+
# 3 RELATED WORK
|
| 61 |
+
|
| 62 |
+
There has been a recent surge in interest in compression in the deep neural network community. Denil et al. (2013) showed that by predicting parameters of neural networks there is great redundancy in the amount of parameters being used. This suggests that pruning, originally introduced to reduce structure in neural networks and hence improve generalization, can be applied to the problem of compression and speed-up (LeCun et al., 1989). In fact, (Han et al., 2015b; Guo et al., 2016) show that neural network survive severe weight pruning (up to $9 9 \%$ ) without significant loss of accuracy. A variational version is is proposed by Molchanov et al. (2017), the authors learn the dropout rate for each weight in the network separately. Some parameters will effectively be pruned when the dropout rate is very high. In an approach slightly orthogonal to weight pruning, (Wen et al., 2016) applied structural regularization to prune entire sets of weights from the neural network. Such extreme weight pruning can lead to entire structures being obsolete, which for the case of convolutional filters, can greatly speed up prediction. Most importantly for compression, however, is that in conjunction with Compressed Sparse Column (CSC) format, weight pruning is a highly effective way to store and transfer weights. In Appendix A we discuss CSC format in more detail.
|
| 63 |
+
|
| 64 |
+
Reducing the bit size per stored weight is another approach to model compression. For example, reducing 32 bit floats to 1 bit leads to a $3 2 \times$ storage improvement. Gong et al. (2014) proposed and experimented with a number of quantization approaches: binary quantization, $\mathbf { k }$ -means quantization, product quantization and residual quantization. Other work finds optimal fixed points (Lin et al., 2015), applies hashing (Chen et al., 2015) or minimizes the estimation error (Wu et al., 2015). Merolla et al. (2016) demonstrates that neural networks are robust against certain amounts of low precision; indeed several groups have exploited this and showed that decreasing the weight encoding precision has little to no effect on the accuracy loss (Gupta et al., 2015; Courbariaux et al., 2014; Venkatesh et al., 2016). Pushing the idea of extreme quantization, (Courbariaux et al., 2015) and Courbariaux & Bengio (2016) trained networks from scratch that use only 1bit weights with floating point gradients; to achieve competitive results, however, they require many more of these weights.
|
| 65 |
+
|
| 66 |
+
Han et al. (2015a) elaborate on combining these ideas. They introduce an multi-step algorithm that compresses CNNS up to $4 9 \times$ . First, weights are pruned (giving $9 - 1 3 \times$ compression); second they quantize the weights (increasing compression to $2 7 - 3 1 \times )$ ; and last, they apply Huffman Encoding (giving a final compression of $3 5 - 4 9 \times )$ . The quantization step is trainable in that after each weight is assigned to a cluster centroid, the centroids get trained with respect to the original loss function. Note that this approach has several restrictions: the number of weights set to zero is fixed after the pruning step, as is the assignment of a weight to a given cluster in the second step. Our approach overcomes all these restrictions.
|
| 67 |
+
|
| 68 |
+
A final approach to compressing information is to apply low rank matrix decomposition. First introduced by (Denton et al., 2014) and Jaderberg et al. (2014), and elaborated on by using low rank filters (Ioannou et al., 2015), low rank regularization (Tai et al., 2015) or combining low rank decomposition with sparsity (Liu et al., 2015).
|
| 69 |
+
|
| 70 |
+
# 4 METHOD
|
| 71 |
+
|
| 72 |
+
This section presents the procedure of network compression as applied in the experiment section. A summary can be found in Algorithm 1.
|
| 73 |
+
|
| 74 |
+
# 4.1 GENERAL SET-UP
|
| 75 |
+
|
| 76 |
+
We retrain pre-trained neural networks with soft weight-sharing and factorized Dirac posteriors. Hence we optimize
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\begin{array} { r l } & { \mathcal { L } ( \mathbf { w } , \{ \mu _ { j } , \sigma _ { j } , \pi _ { j } \} _ { j = 0 } ^ { J } ) = \mathcal { L } ^ { E } + \tau \mathcal { L } ^ { C } } \\ & { \qquad = - \log p ( \mathbf { T } | \mathbf { X } , \mathbf { w } ) - \tau \log p ( \mathbf { w } , \{ \mu _ { j } , \sigma _ { j } , \pi _ { j } \} _ { j = 0 } ^ { J } ) , } \end{array}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
via gradient descent, specifically using Adam (Kingma & Ba, 2014). The KL divergence reduces to the prior because the entropy term does not depend on any trainable parameters. Note that, similar to (Nowlan & Hinton, 1992) we weigh the log-prior contribution to the gradient by a factor of $\tau = 0 . 0 0 5$ . In the process of retraining the weights, the variances, means, and mixing proportions of all but one component are learned. For one component, we fix $\mu _ { j = 0 } = 0$ and $\pi _ { j = 0 } = 0 . 9 9 9$ . Alternatively we can train $\pi _ { j = 0 }$ as well but restrict it by a Beta distribution hyper-prior. Our Gaussian MM prior is initialized with $2 ^ { 4 } + 1 = 1 7$ components. We initialize the learning rate for the weights and means, log-variances and log-mixing proportions separately. The weights should be trained with approximately the same learning rate used for pre-training. The remaining learning rates are set to $5 \cdot 1 0 ^ { - 4 }$ . Note that this is a very sensitive parameter. The Gaussian mixtures will collapse very fast as long as the error loss does not object. However if it collapses too fast weights might be left behind, thus it is important to set the learning rate such that the mixture does collapse too soon. If the learning rate is too small the mixture will converge too slowly. Another option to keep the mixture components from collapsing is to apply an Inverse-Gamma hyperprior on the mixture variances.
|
| 83 |
+
|
| 84 |
+
# 4.2 INITIALIZATION OF MIXTURE MODEL COMPONENTS
|
| 85 |
+
|
| 86 |
+
In principle, we follow the method proposed by Nowlan & Hinton (1992). We distribute the means of the 16 non-fixed components evenly over the range of the pre-trained weights. The variances will be initialized such that each Gaussian has significant probability mass in its region. A good orientation for setting a good initial variance is weight decay rate the original network has been trained on. The trainable mixing proportions are initialized evenly $\pi _ { j } = ( 1 - \pi _ { j = 0 } ) / J$ . We also experimented with other approaches such as distributing the means such that each component assumes an equal amount of probability. We did not observe any significant improvement over the simpler initialization procedure.
|
| 87 |
+
|
| 88 |
+
# 4.3 POST-PROCESSING
|
| 89 |
+
|
| 90 |
+
After re-training we set each weight to the mean of the component that takes most responsibility for it i.e. we quantize the weights. Before quantizing, however, there might be redundant components
|
| 91 |
+
|
| 92 |
+
as explained in section 2. To eliminate those we follow Adhikari & Hollmen (2012) by computing ´ the KL divergence between all components. For a KL divergence smaller than a threshold, we merge two components as follows
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\pi _ { \mathrm { n e w } } = \pi _ { i } + \pi _ { j } , \mu _ { \mathrm { n e w } } = \frac { \pi _ { i } \mu _ { i } + \pi _ { j } \mu _ { j } } { \pi _ { i } + \pi _ { j } } , \sigma _ { \mathrm { n e w } } ^ { 2 } = \frac { \pi _ { i } \sigma _ { i } ^ { 2 } + \pi _ { j } \sigma _ { j } ^ { 2 } } { \pi _ { i } + \pi _ { j } }
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
for two components with indices $i$ and $j$ .
|
| 99 |
+
|
| 100 |
+
Finally, for practical compression we use the storage format used in Han et al. (2015a) (see Appendix A).
|
| 101 |
+
|
| 102 |
+
Algorithm 1 Soft weight-sharing for compression, our proposed algorithm for neural network model compression. It is divided into two main steps: network re-training and post-processing.
|
| 103 |
+
|
| 104 |
+
Require: $\tau \mathrm { s e t }$ the trade-off between error and complexity loss
|
| 105 |
+
Require: $\Theta $ set parameters for gradient decent scheme such as learning rate or momentum
|
| 106 |
+
Require: $\alpha , \beta \gets { \sf s e t }$ gamma hyper-prior parameter (optional) $\mathbf { w } \gets$ initialize network weights with pre-trained network weights $\theta = \{ \mu _ { j } , \sigma _ { j } , \pi _ { j } \} _ { j = 1 } ^ { J } $ initialize mixture parameters (see Sec. 4.2) while $\mathbf { w } , \theta$ not converged do $\mathbf { w } , \theta \gets \nabla _ { \mathbf { w } , \theta } \mathcal { L } ^ { E } + \overline { { \tau } } \mathcal { L } ^ { C }$ update $\mathbf { w }$ and $\theta$ with the gradient decent scheme of choice end while $\mathbf { w } \gets \mathop { \mathrm { a r g m a x } } _ { \mu _ { k } } \frac { \pi _ { k } \mathcal { N } ( \mathbf { w } | \mu _ { k } , \sigma _ { k } ) } { \sum \pi _ { j } \mathcal { N } ( \mathbf { w } | \mu _ { j } , \sigma _ { j } ) }$ compute final weight by setting it to the mean that takes most responsibility (for details see Sec. 4.3)
|
| 107 |
+
|
| 108 |
+
# 5 MODELS
|
| 109 |
+
|
| 110 |
+
We test our compression procedure on two neural network models used in previous work we compare against in our experiments:
|
| 111 |
+
|
| 112 |
+
(a) LeNet-300-100 an MNIST model described in LeCun et al. (1998). As no pre-trained model is available, we train our own, resulting in an error rate of $1 . 8 9 \%$ .
|
| 113 |
+
(b) LeNet-5-Caffe a modified version of the LeNet-5 MNIST model in LeCun et al. (1998). The model specification can be downloaded from the Caffe MNIST tutorial page 2. As no pre-trained model is available, we train our own, resulting in an error rate of $0 . 8 8 \%$ .
|
| 114 |
+
(c) ResNets have been invented by He et al. (2015) and further developed by He et al. (2016) and Zagoruyko & Komodakis (2016). We choose a model version of the latter authors. In accordance with their notation, we choose a network with depth 16, width $k = 4$ and no dropout. This model has $2 . 7 \mathbf { M }$ parameters. In our experiments, we follow the authors by using only light augmentation, i.e., horizontal flips and random shifts by up to 4 pixels. Furthermore the data is normalized. The authors report error rates of $5 . 0 2 \%$ and $2 4 . 0 3 \%$ for CIFAR-10 and CIFAR-100 respectively. By reimplementing their model we trained models that achieve errors $6 . 4 8 \%$ and $2 8 . 2 3 \%$ .
|
| 115 |
+
|
| 116 |
+
# 6 EXPERIMENTS
|
| 117 |
+
|
| 118 |
+
# 6.1 INITIAL EXPERIMENT
|
| 119 |
+
|
| 120 |
+
First, we run our algorithm without any hyper-priors, an experiment on LeNet-300-100. In Figure 1 we visualise the original distribution over weights, the final distribution over weight and how each weight changed its position in the training process. After retraining, the distribution is sharply peaked around zero. Note that with our procedure the optimization process automatically determines how many weights per layer are pruned. Specifically in this experiment, $96 \%$ of the first layer (235K parameter), $90 \%$ of the second (30K) and only $18 \%$ of the final layer (10K) are pruned. From observations of this and other experiments, we conclude that the amount of pruned weights depends mainly on the number of parameters in the layer rather than its position or type (convolutional or fully connected).
|
| 121 |
+
|
| 122 |
+
Evaluating the model reveals a compression rate of 64.2. The accuracy of the model does not drop significantly from 0.9811 to 0.9806. However, we do observe that the mixture components eventually collapse, i.e., the variances go to zero. This makes the prior inflexible and the optimization can easily get stuck because the prior is accumulating probability mass around the mixture means. For a weight, escaping from those high probability plateaus is impossible. This motivates the use hyper-priors such as an Inverse-Gamma prior on the variances to essentially lower bound them.
|
| 123 |
+
|
| 124 |
+

|
| 125 |
+
Figure 1: On top we show the distribution of a pretrained network. On the right the same distribution after retraining. The change in value of each weight is illustrated by a scatter plot.
|
| 126 |
+
|
| 127 |
+
6.2 HYPER-PARAMETER TUNING USING BAYESIAN OPTIMIZATION
|
| 128 |
+
|
| 129 |
+
The proposed procedure offers various freedoms: there are many hyper-parameters to optimize, one may use hyper-priors as motivated in the previous section or even go as far as using other distributions as mixture components.
|
| 130 |
+
|
| 131 |
+
To cope with the variety of choices, we optimize 13 hyper-parameters using the Bayesian optimization tool Spearmint Snoek et al. (2012). These include the learning rates of the weight and mixing components, the number of components, and $\tau$ . Furthermore, we assume an Inverse-Gamma prior over the variances separately for the zero component and the other components and a Beta prior over the zero mixing components.
|
| 132 |
+
|
| 133 |
+
In these experiments, we optimize re-training hyperparameters for LeNet-300-100 and LeNet-5- Caffe. Due to computational restrictions, we set the number of training epochs to 40 (previously 100), knowing that this may lead to solutions that have not fully converged. Spearmint acts on an objective that balances accuracy loss vs compression rate. The accuracy loss in this case is measured over the training data. The results are shown in Figure 2. In the illustration we use the accuracy loss as given by the test data. The best results predicted by our spearmint objective are colored in dark blue. Note that we achieve competitive results in this experiment despite the restricted optimization time of 40 epochs, i.e. 18K updates.
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 2: We show the results of optimizing hyper-parameters with spearmint. Specifically, we plot the accuracy loss of a re-trained network against the compression rate. Each point represents one hyper-parameter setting. The guesses of the optimizer improve over time. We also present the results of other methods for comparison. Left: LeNet-300-100 Right: LeNet-5-Caffe.
|
| 137 |
+
|
| 138 |
+

|
| 139 |
+
Figure 3: Illustration of our mixture model compression procedure on LeNet-5-Caffe. Left: Dynamics of Gaussian mixture components during the learning procedure. Initially there are $1 7 \mathrm { \ c o m { - } }$ ponents, including the zero component. During learning components are absorbed into other components, resulting in roughly 6 significant components. Right: A scatter plot of initial versus final weights, along with the Gaussian components’ uncertainties. The initial weight distribution is roughly one broad Gaussian, whereas the final weight distribution matches closely the final, learned prior which has become very peaked, resulting in good quantization properties.
|
| 140 |
+
|
| 141 |
+
The conclusions from this experiment are a bit unclear, on the one hand we do achieve state-ofthe-art results for LeNet-5-Caffe, on the other hand there seems to be little connection between the parameter settings of best results. One wonders if a 13 dimensional parameter space can be searched efficiently with the amount of runs we were conducting. It may be more reasonable to get more inside in the optimization process and tune parameters according to those.
|
| 142 |
+
|
| 143 |
+
# 6.3 COMPRESSION RESULTS
|
| 144 |
+
|
| 145 |
+
We compare our compression scheme with Han et al. (2015a) and Guo et al. (2016) in Table 1. The results on MNIST networks are very promising. We achieve state-of-the-art compression rates in both examples. We can furthermore show results for a light version of ResNet with 2.7M parameters to illustrate that our method does scale to modern architectures. We used more components (64)
|
| 146 |
+
|
| 147 |
+
Table 1: Compression Results. We compare methods based on the post-processing error (we also indicate the starting error), the accuracy loss $\Delta$ , the number of non zero weights $| \mathbf { W } _ { \neq 0 } |$ and the final compression rate CR based on the method proposed by Han et al. (2015a).
|
| 148 |
+
|
| 149 |
+
<table><tr><td>Model</td><td>Method</td><td>Top-1 Error[%]</td><td>△[%]</td><td>[W|[106]</td><td>W0 [%] W</td><td>CR</td></tr><tr><td rowspan="3">LeNet-300-100</td><td>Han et al. (2015a)</td><td>1.64 → 1.58</td><td>0.06</td><td>0.2</td><td>8.0</td><td>40</td></tr><tr><td>Guo et al. (2016)</td><td>2.28→ 1.99</td><td>-0.29</td><td></td><td>1.8</td><td>56</td></tr><tr><td>Ours</td><td>1.89 →1.94</td><td>-0.05</td><td></td><td>4.3</td><td>64</td></tr><tr><td rowspan="3">LeNet-5-Caffe</td><td>Han et al. (2015a)</td><td>0.80 →0.74</td><td>-0.06</td><td>0.4</td><td>8.0</td><td>39</td></tr><tr><td>Guo et al. (2016)</td><td>0.91 →0.91</td><td>0.00</td><td></td><td>0.9</td><td>108</td></tr><tr><td>Ours</td><td>0.88 →0.97</td><td>0.09</td><td></td><td>0.5</td><td>162</td></tr><tr><td>ResNet (light)</td><td>Ours</td><td>6.48 →8.50</td><td>2.02</td><td>2.7</td><td>6.6</td><td>45</td></tr></table>
|
| 150 |
+
|
| 151 |
+
here to cover the large regime of weights. However, for large networks such as VGG with 138M parameters the algorithm is too slow to get usable results. We propose a solution for this problem in Appendix C; however, we do not have any experimental results yet.
|
| 152 |
+
|
| 153 |
+
# 7 DISCUSSION AND FUTURE WORK
|
| 154 |
+
|
| 155 |
+
In this work we revived a simple and principled regularization method based on soft weight-sharing and applied it directly to the problem of model compression. On the one hand we showed that we can optimize the MDL complexity lower bound, while on the other hand we showed that our method works well in practice when being applied to different models. A short-coming of the method at the moment is its computational cost and the ease of implementation. For the first, we provide a proposal that will be tested in future work. The latter is an open question at the moment. Note that our method—since it is optimizing the lower bound directly—will most likely also work when applied to other storage formats, such as those proposed originally by Hinton & Van Camp (1993). In the future we would like to extend beyond Dirac posteriors as done in Graves (2011) by extending the weight sharing prior to more general priors. For example, from a compression point of view, we could learn to prune entire structures from the network by placing Bernoulli priors over structures such as convolutional filters or ResNet units. Furthermore, it could be interesting to train models from scratch or in a student-teacher setting.
|
| 156 |
+
|
| 157 |
+
# ACKNOWLEDGEMENTS
|
| 158 |
+
|
| 159 |
+
We would like to thank Louis Smit, Christos Louizos, Thomas Kipf, Rianne van den Berg and Peter O’Connor for helpful discussions on the paper and the public code3.
|
| 160 |
+
|
| 161 |
+
This research has been supported by Google.
|
| 162 |
+
|
| 163 |
+
# REFERENCES
|
| 164 |
+
|
| 165 |
+
Prem Raj Adhikari and Jaakko Hollmen. Multiresolution mixture modeling using merging of mix- ´ ture components. 2012.
|
| 166 |
+
|
| 167 |
+
Christopher M Bishop. Pattern recognition. Machine Learning, 2006.
|
| 168 |
+
|
| 169 |
+
Wenlin Chen, James T Wilson, Stephen Tyree, Kilian Q Weinberger, and Yixin Chen. Compressing convolutional neural networks. arXiv preprint arXiv:1506.04449, 2015.
|
| 170 |
+
|
| 171 |
+
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.
|
| 172 |
+
|
| 173 |
+
Matthieu Courbariaux, Jean-Pierre David, and Yoshua Bengio. Training deep neural networks with low precision multiplications. arXiv preprint arXiv:1412.7024, 2014.
|
| 174 |
+
|
| 175 |
+
Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In Advances in Neural Information Processing Systems, pp. 3123–3131, 2015.
|
| 176 |
+
|
| 177 |
+
Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training neural networks with weights and activations constrained to $+ 1$ or $- 1$ 2016.
|
| 178 |
+
|
| 179 |
+
Misha Denil, Babak Shakibi, Laurent Dinh, Nando de Freitas, et al. Predicting parameters in deep learning. In Advances in Neural Information Processing Systems, pp. 2148–2156, 2013.
|
| 180 |
+
|
| 181 |
+
Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Advances in Neural Information Processing Systems, pp. 1269–1277, 2014.
|
| 182 |
+
|
| 183 |
+
Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014.
|
| 184 |
+
|
| 185 |
+
Alex Graves. Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pp. 2348–2356, 2011.
|
| 186 |
+
|
| 187 |
+
Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. In Advances In Neural Information Processing Systems, pp. 1379–1387, 2016.
|
| 188 |
+
|
| 189 |
+
Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. CoRR, abs/1502.02551, 392, 2015.
|
| 190 |
+
|
| 191 |
+
Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. CoRR, abs/1510.00149, 2, 2015a.
|
| 192 |
+
|
| 193 |
+
Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural networks. In Advances in Neural Information Processing Systems, pp. 1135– 1143, 2015b.
|
| 194 |
+
|
| 195 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015.
|
| 196 |
+
|
| 197 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027, 2016.
|
| 198 |
+
|
| 199 |
+
Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
|
| 200 |
+
|
| 201 |
+
Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993.
|
| 202 |
+
|
| 203 |
+
Antti Honkela and Harri Valpola. Variational learning and bits-back coding: an informationtheoretic view to bayesian learning. IEEE Transactions on Neural Networks, 15(4):800–810, 2004.
|
| 204 |
+
|
| 205 |
+
Forrest N Iandola, Matthew W Moskewicz, Khalid Ashraf, Song Han, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and¡ 1mb model size. arXiv preprint arXiv:1602.07360, 2016.
|
| 206 |
+
|
| 207 |
+
Yani Ioannou, Duncan Robertson, Jamie Shotton, Roberto Cipolla, and Antonio Criminisi. Training cnns with low-rank filters for efficient image classification. arXiv preprint arXiv:1511.06744, 2015.
|
| 208 |
+
|
| 209 |
+
Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014.
|
| 210 |
+
|
| 211 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 212 |
+
|
| 213 |
+
Yann LeCun, John S Denker, Sara A Solla, Richard E Howard, and Lawrence D Jackel. Optimal brain damage. In NIPs, volume 2, pp. 598–605, 1989.
|
| 214 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 215 |
+
Darryl D Lin, Sachin S Talathi, and V Sreekanth Annapureddy. Fixed point quantization of deep convolutional networks. arXiv preprint arXiv:1511.06393, 2015.
|
| 216 |
+
Baoyuan Liu, Min Wang, Hassan Foroosh, Marshall Tappen, and Marianna Pensky. Sparse convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 806–814, 2015.
|
| 217 |
+
Paul Merolla, Rathinakumar Appuswamy, John Arthur, Steve K Esser, and Dharmendra Modha. Deep neural networks are robust to weight binarization and other non-linear distortions. arXiv preprint arXiv:1606.01981, 2016.
|
| 218 |
+
Dmitry Molchanov, Arsenii Ashukha, and Dmitry Vetrov. Variational dropout sparsifies deep neural networks. arXiv preprint arXiv:1701.05369, 2017.
|
| 219 |
+
Steven J Nowlan and Geoffrey E Hinton. Simplifying neural networks by soft weight-sharing. Neural computation, 4(4):473–493, 1992.
|
| 220 |
+
Jorma Rissanen. Modeling by shortest data description. Automatica, 14(5):465–471, 1978.
|
| 221 |
+
Jorma Rissanen. Stochastic complexity and modeling. The annals of statistics, pp. 1080–1100, 1986.
|
| 222 |
+
Herbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pp. 400–407, 1951.
|
| 223 |
+
Jasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. In Advances in neural information processing systems, pp. 2951–2959, 2012.
|
| 224 |
+
Cheng Tai, Tong Xiao, Xiaogang Wang, et al. Convolutional neural networks with low-rank regularization. arXiv preprint arXiv:1511.06067, 2015.
|
| 225 |
+
Ganesh Venkatesh, Eriko Nurvitadhi, and Debbie Marr. Accelerating deep convolutional networks using low-precision and sparsity. arXiv preprint arXiv:1610.00324, 2016.
|
| 226 |
+
Chris S Wallace. Classification by minimum-message-length inference. In International Conference on Computing and Information, pp. 72–81. Springer, 1990.
|
| 227 |
+
Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances In Neural Information Processing Systems, pp. 2074–2082, 2016.
|
| 228 |
+
Ian H Witten, Radford M Neal, and John G Cleary. Arithmetic coding for data compression. Communications of the ACM, 30(6):520–540, 1987.
|
| 229 |
+
Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. arXiv preprint arXiv:1512.06473, 2015.
|
| 230 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
| 231 |
+
|
| 232 |
+
# APPENDIX
|
| 233 |
+
|
| 234 |
+
# A REVIEW OF STATE-OF-THE-ART NEURAL NETWORK COMPRESSION
|
| 235 |
+
|
| 236 |
+
We apply the compression scheme proposed by Han et al. (2015b;a) that highly optimizes the storage utilized by the weights. First of all, the authors store the weights in regular compressed sparse-row (CSR) format. Instead of storing $| W ^ { ( l ) } |$ parameters with a bit length of (commonly) $p _ { \mathrm { o r i g } } = 3 2 $ bit, CSR format stores three vectors (A, IR, IC).
|
| 237 |
+
|
| 238 |
+
• A stores all non-zero entries. It is thus of size $| W ^ { ( l ) } | _ { \neq 0 } \times p _ { \mathrm { o r i g } }$ , where $\vert W ^ { ( l ) } \vert _ { \neq 0 }$ is the number of non-zero entries in $W ^ { ( l ) }$ .
|
| 239 |
+
• IR Is defined recursively: $\mathrm { { I R } _ { 0 } ~ = ~ 0 }$ , $\mathrm { I R } _ { k } \ = \mathrm { I R } _ { k - 1 } +$ (number of non-zero entries in the $( k - 1 )$ -th row of $W ^ { ( l ) }$ ). It got $K + 1$ entries each of size $p _ { \mathrm { o r i g } }$ .
|
| 240 |
+
• IC contains the column index in $W ^ { ( l ) }$ of each element of A. The size is hence, $| W ^ { ( l ) } | _ { \neq 0 } \times$ $p _ { \mathrm { o r i g } }$ .
|
| 241 |
+
|
| 242 |
+
An example shall illustrate the format, let
|
| 243 |
+
|
| 244 |
+
$$
|
| 245 |
+
W ^ { ( l ) } = \left( \begin{array} { c c c c } { { 0 } } & { { 0 } } & { { 0 } } & { { 1 } } \\ { { 0 } } & { { 2 } } & { { 0 } } & { { 0 } } \\ { { 0 } } & { { 0 } } & { { 0 } } & { { 0 } } \\ { { 2 } } & { { 5 } } & { { 0 } } & { { 0 } } \\ { { 0 } } & { { 0 } } & { { 0 } } & { { 1 } } \end{array} \right)
|
| 246 |
+
$$
|
| 247 |
+
|
| 248 |
+
than
|
| 249 |
+
|
| 250 |
+
$$
|
| 251 |
+
\begin{array} { r } { \mathbf { A } = [ 1 , 2 , 2 , 5 , 1 ] } \\ { \mathbf { I R } = [ 0 , 1 , 2 , 2 , 4 , 5 ] } \\ { \mathbf { I C } = [ 3 , 1 , 0 , 1 , 3 ] } \end{array}
|
| 252 |
+
$$
|
| 253 |
+
|
| 254 |
+
The compression rate achieved by applying the CSC format naively is
|
| 255 |
+
|
| 256 |
+
$$
|
| 257 |
+
r _ { p } = \frac { | W ^ { ( l ) } | } { 2 | W ^ { ( l ) } | \neq 0 + ( K + 1 ) }
|
| 258 |
+
$$
|
| 259 |
+
|
| 260 |
+
However, this result can be significantly improved by optimizing each of the three arrays.
|
| 261 |
+
|
| 262 |
+
# A.1 STORING THE INDEX ARRAY IR
|
| 263 |
+
|
| 264 |
+
To optimize IR, note that the biggest number in IR is $\vert W ^ { ( l ) } \vert _ { \neq 0 }$ . This number will be much smaller than $2 ^ { p _ { \mathrm { o r i g } } }$ . Thus one could try to find $p \in \mathbf { Z } _ { + }$ such that $| W ^ { ( l ) } | _ { \neq 0 } < 2 ^ { p _ { \mathrm { p r u n } } }$ . A codebook would not be necessary. Thus instead of storing $( K + 1 )$ values with $p _ { \mathrm { o r i g } }$ , we store them with $p _ { \mathrm { p r u n } }$ depth.
|
| 265 |
+
|
| 266 |
+
# A.2 STORING THE INDEX ARRAY IC
|
| 267 |
+
|
| 268 |
+
Instead of storing the indexes, we store the differences between indexes. Thus there is a smaller range of values being used. We further shrink the range of utilized values by filling A with zeros whenever the distance between two non-zero weights extends the span of $2 _ { \mathrm { p r u n } } ^ { p ^ { \mathrm { - } } }$ . Han et al. (2015a) propose $\mathrm { p } = 5$ for fully connected layers and $\mathtt { p } = 8$ for convolutional layers. An illustration of the process can is shown in Fig. 4. Furthermore, the indexes will be compressed Hoffman encoding.
|
| 269 |
+
|
| 270 |
+
# A.3 STORING THE WEIGHT ARRAY A
|
| 271 |
+
|
| 272 |
+
In order to minimize the storage occupied by A. We quantize the values of A. Storing indexes in A and a consecutive codebook. Indexing can be improved further by again applying Huffman encoding.
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 4: Illustration of the process described in A.2. IC is represented by relative indexes(diff). If the a relative index is larger than $8 ( = 2 ^ { \bar { 3 } } )$ , A will be filled with an additional zero. Figure from Han et al. (2015a).
|
| 276 |
+
|
| 277 |
+
# B CONFIGURING THE HYPER-PRIORS
|
| 278 |
+
|
| 279 |
+
# B.1 GAMMA DISTRIBUTION
|
| 280 |
+
|
| 281 |
+
The Gamma distribution is the conjugate prior for the precision of a univariate Gaussian distribution.
|
| 282 |
+
It is defined for positive random variables $\lambda > 0$ .
|
| 283 |
+
|
| 284 |
+
$$
|
| 285 |
+
\Gamma ( \lambda | \alpha , \beta ) = \frac { \beta ^ { \alpha } } { \Gamma ( \alpha ) } \lambda ^ { \alpha - 1 } e ^ { - \beta \lambda }
|
| 286 |
+
$$
|
| 287 |
+
|
| 288 |
+
For our purposes it is best characterised by its mode $\lambda ^ { * } = \frac { \alpha - 1 } { \beta }$ and its variance $\operatorname { v a r } _ { \gamma } = { \frac { \alpha } { \beta ^ { 2 } } }$ I n our experiments we set the desired variance of the mixture components to 0.05. This corresponds to $\lambda ^ { * } \stackrel { - } { = } 1 / ( 0 . 0 5 ) ^ { 2 } = 4 0 0$ . We show the effect of different choices for the variance of the Gamma distribution in Figure 5.
|
| 289 |
+
|
| 290 |
+

|
| 291 |
+
Figure 5: Gamma distribution with $\lambda ^ { * } ~ = ~ 1 0 0$ . $\alpha$ and $\beta$ correspond to different choices for the variance of the distribution.
|
| 292 |
+
|
| 293 |
+
# B.2 BETA DISTRIBUTION
|
| 294 |
+
|
| 295 |
+
The Beta distribution is the conjugate prior for the Bernoulli distribution, thus is often used to represent the probability for a binary event. It is defined for some random variable $\pi _ { j = 0 } \in [ 0 , 1 ]$
|
| 296 |
+
|
| 297 |
+
$$
|
| 298 |
+
\mathcal { B } ( \pi _ { j = 0 } | \alpha , \beta ) = \frac { \Gamma ( \alpha + \beta ) } { \Gamma ( \alpha ) \Gamma ( \beta ) } ( \pi _ { j = 0 } ) ^ { \alpha - 1 } ( 1 - \pi _ { j = 0 } ) ^ { \beta - 1 }
|
| 299 |
+
$$
|
| 300 |
+
|
| 301 |
+
with $\alpha , \beta \ > \ 0$ . $\alpha$ and $\beta$ can be interpreted as the effective number of observations prior to an experiment, of $\pi _ { j = 0 } = 1$ and $\pi _ { j = 0 } = 0$ , respectively. In the literature, $\alpha + \beta$ is defined as the pseudo-count. The higher the pseudo-count the stronger the prior. In Figure 6, we show the Beta distribution at constant mode $\pi _ { j = 0 } ^ { * } = \frac { \alpha - 1 } { \alpha + \beta - 2 } = 0 . 9$ . Note, that, the beta distribution is a special case of the Dirichlet distribution in a different problem setting it might be better to rely on this distribution to control all $\pi _ { j }$ .
|
| 302 |
+
|
| 303 |
+

|
| 304 |
+
Figure 6: Beta distribution with $\pi _ { j = 0 } ^ { * } = 0 . 9$ . $\alpha$ and $\beta$ correspond to different choices for the pseudocount.
|
| 305 |
+
|
| 306 |
+
# C SCALABILITY
|
| 307 |
+
|
| 308 |
+
Neural Networks are usually trained with a form of batch gradient decent (GD) algorithm. These methods fall into the umbrella of stochastic optimization (Robbins $\&$ Monro, 1951). Here the model parameters $\mathbf { W }$ are updated iteratively. At each iteration $t$ , a set of $B$ data instances is used to compute a noisy approximation of the posterior derivative with respect to $\mathbf { W }$ given all data instances $N$ .
|
| 309 |
+
|
| 310 |
+
$$
|
| 311 |
+
\nabla _ { \mathbf { W } } \log p ( \mathbf { W } | \mathcal { D } ) = \frac { N } { B } \sum _ { n = 1 } ^ { B } \nabla _ { \mathbf { W } } \log p ( \mathbf { t } _ { n } | \mathbf { x } _ { n } , \mathbf { w } ) + \sum _ { i = 1 } ^ { I } \nabla _ { \mathbf { W } } \log p ( w _ { i } )
|
| 312 |
+
$$
|
| 313 |
+
|
| 314 |
+
This gradient approximation can subsequently be used in various update schemes such as simple GD.
|
| 315 |
+
|
| 316 |
+
For large models estimating the prior gradient can be an expensive operation. This is why we propose to apply similar measures for the gradient estimation of the prior as we did for the likelihood term. To do so, we sample $\mathbf { K }$ weights randomly. The noisy approximation of the posterior derivative is
|
| 317 |
+
|
| 318 |
+
now:
|
| 319 |
+
|
| 320 |
+
$$
|
| 321 |
+
\nabla _ { \mathbf { W } } \log p ( \mathbf { W } | \mathcal { D } ) = \frac { N } { B } \sum _ { n = 1 } ^ { B } \nabla _ { \mathbf { w } } \log p ( \mathbf { t } _ { n } | \mathbf { x } _ { n } , \mathbf { w } ) + \frac { I } { K } \sum _ { i = 1 } ^ { K } \nabla _ { \mathbf { w } } \log p ( w _ { i } )
|
| 322 |
+
$$
|
| 323 |
+
|
| 324 |
+
# D FILTER VISUALISATION
|
| 325 |
+
|
| 326 |
+
In Figure D we show the pre-trained and compressed filters for the first and second layers of LeNet5-Caffe. For some of the feature maps from layer 2 seem to be redundant hence the almost empty columns. In Figure D we show the pre-trained and compressed filters for the first and second layers of LeNet-300-100.
|
| 327 |
+
|
| 328 |
+

|
| 329 |
+
Figure 7: Convolution filters from LeNet-5-Caffe. Left: Pre-trained filters. Right: Compressed filters. The top filters are the 20 first layer convolution weights; the bottom filters are the 20 by 50 convolution weights of the second layer.
|
| 330 |
+
|
| 331 |
+

|
| 332 |
+
Figure 8: Feature filters for LeNet-300-100. Left: Pre-trained filters. Right: Compressed filters.
|
| 333 |
+
|
| 334 |
+

|
parse/train/HJGwcKclx/HJGwcKclx_content_list.json
ADDED
|
@@ -0,0 +1,1602 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "SOFT WEIGHT-SHARING FOR NEURAL NETWORK COMPRESSION ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
99,
|
| 9 |
+
596,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Karen Ullrich University of Amsterdam karen.ullrich@uva.nl ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
184,
|
| 19 |
+
170,
|
| 20 |
+
380,
|
| 21 |
+
212
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "Max Welling \nUniversity of Amsterdam \nCanadian Institute for Advanced Research (CIFAR) \nwelling.max@gmail.com ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
183,
|
| 30 |
+
233,
|
| 31 |
+
522,
|
| 32 |
+
289
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
327,
|
| 43 |
+
544,
|
| 44 |
+
342
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "The success of deep learning in numerous application domains created the desire to run and train them on mobile devices. This however, conflicts with their computationally, memory and energy intense nature, leading to a growing interest in compression. Recent work by Han et al. (2015a) propose a pipeline that involves retraining, pruning and quantization of neural network weights, obtaining state-of-the-art compression rates. In this paper, we show that competitive compression rates can be achieved by using a version of ”soft weight-sharing” (Nowlan & Hinton, 1992). Our method achieves both quantization and pruning in one simple (re-)training procedure. This point of view also exposes the relation between compression and the minimum description length (MDL) principle. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
354,
|
| 54 |
+
764,
|
| 55 |
+
494
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
517,
|
| 66 |
+
336,
|
| 67 |
+
534
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "”Bigger is better” is the ruling maxim in deep learning land. Deep neural nets with billions of parameters are no longer an exception. Networks of such size are unfortunately not practical for mobile, on-device applications which face strong limitations with respect to memory and energy consumption. Compressing neural networks could not only improve memory and energy consumption, but also lead to less network bandwidth, faster processing and better privacy. It has been shown that large networks are heavily over-parametrized and can be compressed by approximately two orders of magnitude without significant loss of accuracy. Apparently, over-parametrization is beneficial for optimization, but not necessary for accurate prediction. This observation has opened the door for a number of highly successful compression algorithms, which either train the network from scratch (Hinton et al., 2015; Iandola et al., 2016; Courbariaux & Bengio, 2016; Courbariaux et al., 2016) or apply compression post-optimization (Han et al., 2015b;a; Guo et al., 2016; Chen et al., 2015; Wen et al., 2016). ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
173,
|
| 76 |
+
547,
|
| 77 |
+
825,
|
| 78 |
+
714
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "It has been long known that compression is directly related to (variational) Bayesian inference and the minimum description principle (Hinton & Van Camp, 1993). One can show that good compression can be achieved by encoding the parameters of a model using a good prior and specifying the parameters up to an uncertainty given, optimally, by the posterior distribution. An ingenious bitsback argument can then be used to get a refund for using these noisy weights. A number of papers have appeared that encode the weights of a neural network with limited precision (say 8 bits per weight), effectively cashing in on this ”bits-back” argument (Gupta et al., 2015; Courbariaux et al., 2014; Venkatesh et al., 2016). Some authors go so far of arguing that even a single bit per weight can be used without much loss of accuracy (Courbariaux et al., 2015; Courbariaux & Bengio, 2016). ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
722,
|
| 88 |
+
825,
|
| 89 |
+
847
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "In this work we follow a different but related direction, namely to learn the prior that we use to encode the parameters. In Bayesian statistics this is known as empirical Bayes. To encourage compression of the weights to $K$ clusters, we fit a mixture of Gaussians prior model over the weights. This idea originates from the nineties, known as soft weight-sharing (Nowlan & Hinton, 1992) where it was used to regularize a neural network. Here our primary goal is network compression, but as was shown in Hinton & Van Camp (1993) these two objectives are almost perfectly aligned. By fitting the mixture components alongside the weights, the weights tend to concentrate very tightly around a number of cluster components, while the cluster centers optimize themselves to give the network high predictive accuracy. Compression is achieved because we only need to encode $K$ cluster means (in full precision) in addition to the assignment of each weight to one of these $J$ values (using $\\log ( J )$ bits per weight). We find that competitive compression rates can be achieved by this simple idea. ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
854,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
103,
|
| 110 |
+
825,
|
| 111 |
+
188
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "2 MDL VIEW ON VARIATIONAL LEARNING ",
|
| 118 |
+
"text_level": 1,
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
208,
|
| 122 |
+
550,
|
| 123 |
+
224
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 1
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "text",
|
| 129 |
+
"text": "Model compression was first discussed in the context of information theory. The minimum description length (MDL) principle identifies the best hypothesis to be the one that best compresses the data. More specifically, it minimizes the cost to describe the model (complexity cost $\\mathcal { L } ^ { C }$ ) and the misfit between model and data (error cost $\\mathcal { L } ^ { E }$ ) (Rissanen, 1978; 1986). It has been shown that variational learning can be reinterpreted as an MDL problem (Wallace, 1990; Hinton & Van Camp, 1993; Honkela & Valpola, 2004; Graves, 2011). In particular, given data $\\mathcal D = \\left\\{ \\mathbf X = \\{ \\mathbf x _ { n } \\} _ { n = 1 } ^ { N } , \\mathbf T = \\{ \\mathbf t _ { n } \\} _ { n = 1 } ^ { N } \\right\\}$ , a set of parameters $\\mathbf { w } = \\{ w _ { i } \\} _ { i = 1 } ^ { I }$ that describes the model and an approximation $q ( \\mathbf { w } )$ of the posterior $p ( \\mathbf { w } | \\mathcal { D } )$ , the variational lower bound, also known as negative variational free energy, $\\mathcal { L } ( q ( \\mathbf { w } ) , \\mathbf { w } )$ can be decomposed in terms of error and complexity losses ",
|
| 130 |
+
"bbox": [
|
| 131 |
+
173,
|
| 132 |
+
239,
|
| 133 |
+
825,
|
| 134 |
+
381
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "equation",
|
| 140 |
+
"img_path": "images/b112d11a965f1ee3f1fc4ef0da7f96e1777bf7c1ead3d05427c98d31a27a0298.jpg",
|
| 141 |
+
"text": "$$\n{ \\mathcal { L } } ( q ( \\mathbf { w } ) , \\mathbf { w } ) = - \\mathbb { E } _ { q ( \\mathbf { w } ) } \\left[ \\log \\left( { \\frac { p ( { \\mathcal { D } } | \\mathbf { w } ) p ( \\mathbf { w } ) } { q ( \\mathbf { w } ) } } \\right) \\right] = \\underbrace { \\mathbb { E } _ { q ( \\mathbf { w } ) } \\left[ - \\log p ( { \\mathcal { D } } | \\mathbf { w } ) \\right] } _ { { \\mathcal { L } } ^ { E } } + \\underbrace { \\mathrm { K L } ( q ( \\mathbf { w } ) | | p ( \\mathbf { w } ) ) } _ { { \\mathcal { L } } ^ { C } }\n$$",
|
| 142 |
+
"text_format": "latex",
|
| 143 |
+
"bbox": [
|
| 144 |
+
192,
|
| 145 |
+
385,
|
| 146 |
+
787,
|
| 147 |
+
431
|
| 148 |
+
],
|
| 149 |
+
"page_idx": 1
|
| 150 |
+
},
|
| 151 |
+
{
|
| 152 |
+
"type": "text",
|
| 153 |
+
"text": "where $p ( \\mathbf { w } )$ is the prior over $\\mathbf { w }$ and $p ( \\mathcal { D } | \\mathbf { w } )$ is the model likelihood. According to Shannon’s source coding theorem, $\\mathring { \\mathcal { L } } ^ { E }$ lower bounds the expected amount of information needed to communicate the targets $\\mathbf { T }$ , given the receiver knows the inputs $\\mathbf { X }$ and the model w. The functional form of the likelihood term is conditioned by the target distribution. For example, in case of regression the predictions of the model are assumed be normally distributed around the targets $\\mathbf { T }$ . ",
|
| 154 |
+
"bbox": [
|
| 155 |
+
174,
|
| 156 |
+
438,
|
| 157 |
+
825,
|
| 158 |
+
507
|
| 159 |
+
],
|
| 160 |
+
"page_idx": 1
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"type": "equation",
|
| 164 |
+
"img_path": "images/cb04039f84fdfcf36c07b191440e742db645ad96d8b96972ef4dd6266f34054c.jpg",
|
| 165 |
+
"text": "$$\np ( \\mathcal { D } | \\mathbf { w } ) = p ( \\mathbf { T } | \\mathbf { X } , \\mathbf { w } ) = \\prod _ { n = 1 } ^ { N } \\mathcal { N } ( \\mathbf { t } _ { n } | \\mathbf { x } _ { n } , \\mathbf { w } )\n$$",
|
| 166 |
+
"text_format": "latex",
|
| 167 |
+
"bbox": [
|
| 168 |
+
361,
|
| 169 |
+
515,
|
| 170 |
+
637,
|
| 171 |
+
559
|
| 172 |
+
],
|
| 173 |
+
"page_idx": 1
|
| 174 |
+
},
|
| 175 |
+
{
|
| 176 |
+
"type": "text",
|
| 177 |
+
"text": "where $\\mathcal { N } ( \\mathbf { t } _ { n } , \\mathbf { x } _ { n } , \\mathbf { w } )$ is a normal distribution. Another typical example is classification where the conditional distribution of targets given data is assumed to be Bernoulli distributed1. These assumptions eventually lead to the well known error functions, namely cross-entropy error and squared error for classification and regression, respectively. ",
|
| 178 |
+
"bbox": [
|
| 179 |
+
174,
|
| 180 |
+
565,
|
| 181 |
+
825,
|
| 182 |
+
621
|
| 183 |
+
],
|
| 184 |
+
"page_idx": 1
|
| 185 |
+
},
|
| 186 |
+
{
|
| 187 |
+
"type": "text",
|
| 188 |
+
"text": "Before however we can communicate the data we first seek to communicate the model. Similarly to $\\mathcal { L } ^ { E } , \\mathcal { L } ^ { C }$ is a lower bound for transmitting the model. More specifically, if sender and receiver agree on a prior, $\\mathcal { L } ^ { C }$ is the expected cost of communicating the parameters w. This cost is again twofold, ",
|
| 189 |
+
"bbox": [
|
| 190 |
+
174,
|
| 191 |
+
622,
|
| 192 |
+
823,
|
| 193 |
+
664
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "equation",
|
| 199 |
+
"img_path": "images/18ee03870e21cc1c81eb70e090efba5bfb856f7b80e79736f464b310e8cfbfba.jpg",
|
| 200 |
+
"text": "$$\n\\mathrm { K L } ( q ( \\mathbf { w } ) | | p ( \\mathbf { w } ) ) = \\mathbb { E } _ { q ( \\mathbf { w } ) } \\left[ - \\log p ( \\mathbf { w } ) \\right] - H ( q ( \\mathbf { w } ) )\n$$",
|
| 201 |
+
"text_format": "latex",
|
| 202 |
+
"bbox": [
|
| 203 |
+
331,
|
| 204 |
+
670,
|
| 205 |
+
666,
|
| 206 |
+
689
|
| 207 |
+
],
|
| 208 |
+
"page_idx": 1
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"type": "text",
|
| 212 |
+
"text": "where $H ( \\cdot )$ denotes the entropy. In Wallace (1990) and Hinton & Van Camp (1993) it was shown that noisy encoding of the weights can be beneficial due to the bits-back argument if the uncertainty does not harm the error loss too much. The number of bits to get refunded by an uncertain weight distribution $q ( \\mathbf { w } )$ is given by its entropy. Further, it can be shown that the optimal distribution for $q ( \\mathbf { w } )$ is the Bayesian posterior distribution. While bits-back is proven to be an optimal coding scheme (Honkela $\\&$ Valpola, 2004), it is often not practical in real world settings. A practical way to cash in on noisy weights (or bits-back) is to only encode a weight value up to a limited number of bits. To see this, assume a factorized variational posteriors $q ( \\mathbf { w } ) { \\bar { \\mathbf { \\Gamma } } } = \\prod q ( w _ { i } )$ . Each posterior $q ( w _ { i } )$ is associated with a Dirac distribution up to machine precision, for example, a Gaussian distribution with variance $\\sigma$ , for small values of $\\sigma$ . This implies that we formally incur a very small refund per weight, ",
|
| 213 |
+
"bbox": [
|
| 214 |
+
173,
|
| 215 |
+
695,
|
| 216 |
+
825,
|
| 217 |
+
851
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "equation",
|
| 223 |
+
"img_path": "images/c42cfc8f3c50834def4e1ec05772c00ad46723d9d3b588d698c7c2022bbae25e.jpg",
|
| 224 |
+
"text": "$$\nH ( q ( \\mathbf { w } ) ) = - \\intop _ { \\Omega } q ( \\mathbf { w } ) \\log q ( \\mathbf { w } ) \\mathrm { d } \\mathbf { w } = - \\intop _ { \\mathbb { R } ^ { I } } \\mathcal { N } ( \\mathbf { w } | \\mathbf { 0 } , \\sigma \\mathbf { I } ) \\log \\mathcal { N } ( \\mathbf { w } | \\mathbf { 0 } , \\sigma \\mathbf { I } ) = [ \\log ( 2 \\pi e \\sigma ^ { 2 } ) ] ^ { I } .\n$$",
|
| 225 |
+
"text_format": "latex",
|
| 226 |
+
"bbox": [
|
| 227 |
+
192,
|
| 228 |
+
856,
|
| 229 |
+
785,
|
| 230 |
+
898
|
| 231 |
+
],
|
| 232 |
+
"page_idx": 1
|
| 233 |
+
},
|
| 234 |
+
{
|
| 235 |
+
"type": "text",
|
| 236 |
+
"text": "Note that the more coarse the quantization of weights the more compressible the model. The bitsback scheme makes three assumptions: (i) weights are being transmitted independently, (ii) weights are independent of each other (no mutual information), and (iii) the receiver knows the prior. Han et al. (2015a) show that one can successfully exploit (i) and (ii) by using a form of arithmetic coding (Witten et al., 1987). In particular, they employ range coding schemes such as the Sparse Matrix Format (discussed in Appendix A). This is beneficial because the weight distribution has low entropy. Note that the cost of transmitting the prior should be negligible. Thus a factorized prior with different parameters for each factor is not desirable. ",
|
| 237 |
+
"bbox": [
|
| 238 |
+
173,
|
| 239 |
+
103,
|
| 240 |
+
825,
|
| 241 |
+
215
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "The main objective of this work is to find a suitable prior for optimizing the cross-entropy between a delta posterior $q ( \\mathbf { w } )$ and the prior $p ( \\mathbf { w } )$ while at the same time keeping a practical coding scheme in mind. Recall that the cross entropy is a lower bound on the average number of bits required to encode the weights of the neural network (given infinite precision). Following Nowlan & Hinton (1992) we will model the prior $p ( \\mathbf { w } )$ as a mixture of Gaussians, ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
222,
|
| 251 |
+
825,
|
| 252 |
+
291
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "equation",
|
| 258 |
+
"img_path": "images/7bff6ca94c4e314c8596c390101763b0ca01a109ed8c31b9e9d476ec76e7e09f.jpg",
|
| 259 |
+
"text": "$$\np ( \\mathbf { w } ) = \\prod _ { i = 1 } ^ { I } \\sum _ { j = 0 } ^ { J } \\pi _ { j } \\mathcal { N } ( w _ { i } | \\mu _ { j } , \\sigma _ { j } ^ { 2 } ) .\n$$",
|
| 260 |
+
"text_format": "latex",
|
| 261 |
+
"bbox": [
|
| 262 |
+
388,
|
| 263 |
+
292,
|
| 264 |
+
609,
|
| 265 |
+
338
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 2
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "We learn the mixture parameters $\\mu _ { j } , \\sigma _ { j } ,$ $\\pi _ { j }$ via maximum likelihood simultaneously with the network weights. This is equivalent to an empirical Bayes approach in Bayesian statistics. For stateof-the-art compression schemes pruning plays a major role. By enforcing an arbitrary “zero” component to have fixed $\\mu _ { 0 } = 0$ location and $\\pi _ { 0 }$ to be close to 1, a desired weight pruning rate can be enforced. In this scenario $\\pi _ { 0 }$ may be fixed or trainable. In the latter case a Beta distribution as hyperprior might be helpful. The approach naturally encourages quantization because in order to optimize the cross-entropy the weights will cluster tightly around the cluster means, while the cluster means themselves move to some optimal location driven by $\\mathcal { L } ^ { E }$ . The effect might even be so strong that it is beneficial to have a Gamma hyper-prior on the variances of the mixture components to prevent the components from collapsing. Furthermore, note that, mixture components merge when there is not enough pressure from the error loss to keep them separated because weights are attracted by means and means are attracted by weights hence means also attract each other. In that way the network learns how many quantization intervals are necessary. We demonstrate that behaviour in Figure 3. ",
|
| 272 |
+
"bbox": [
|
| 273 |
+
173,
|
| 274 |
+
339,
|
| 275 |
+
825,
|
| 276 |
+
518
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "3 RELATED WORK ",
|
| 283 |
+
"text_level": 1,
|
| 284 |
+
"bbox": [
|
| 285 |
+
176,
|
| 286 |
+
539,
|
| 287 |
+
343,
|
| 288 |
+
555
|
| 289 |
+
],
|
| 290 |
+
"page_idx": 2
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"type": "text",
|
| 294 |
+
"text": "There has been a recent surge in interest in compression in the deep neural network community. Denil et al. (2013) showed that by predicting parameters of neural networks there is great redundancy in the amount of parameters being used. This suggests that pruning, originally introduced to reduce structure in neural networks and hence improve generalization, can be applied to the problem of compression and speed-up (LeCun et al., 1989). In fact, (Han et al., 2015b; Guo et al., 2016) show that neural network survive severe weight pruning (up to $9 9 \\%$ ) without significant loss of accuracy. A variational version is is proposed by Molchanov et al. (2017), the authors learn the dropout rate for each weight in the network separately. Some parameters will effectively be pruned when the dropout rate is very high. In an approach slightly orthogonal to weight pruning, (Wen et al., 2016) applied structural regularization to prune entire sets of weights from the neural network. Such extreme weight pruning can lead to entire structures being obsolete, which for the case of convolutional filters, can greatly speed up prediction. Most importantly for compression, however, is that in conjunction with Compressed Sparse Column (CSC) format, weight pruning is a highly effective way to store and transfer weights. In Appendix A we discuss CSC format in more detail. ",
|
| 295 |
+
"bbox": [
|
| 296 |
+
174,
|
| 297 |
+
569,
|
| 298 |
+
825,
|
| 299 |
+
763
|
| 300 |
+
],
|
| 301 |
+
"page_idx": 2
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"type": "text",
|
| 305 |
+
"text": "Reducing the bit size per stored weight is another approach to model compression. For example, reducing 32 bit floats to 1 bit leads to a $3 2 \\times$ storage improvement. Gong et al. (2014) proposed and experimented with a number of quantization approaches: binary quantization, $\\mathbf { k }$ -means quantization, product quantization and residual quantization. Other work finds optimal fixed points (Lin et al., 2015), applies hashing (Chen et al., 2015) or minimizes the estimation error (Wu et al., 2015). Merolla et al. (2016) demonstrates that neural networks are robust against certain amounts of low precision; indeed several groups have exploited this and showed that decreasing the weight encoding precision has little to no effect on the accuracy loss (Gupta et al., 2015; Courbariaux et al., 2014; Venkatesh et al., 2016). Pushing the idea of extreme quantization, (Courbariaux et al., 2015) and Courbariaux & Bengio (2016) trained networks from scratch that use only 1bit weights with floating point gradients; to achieve competitive results, however, they require many more of these weights. ",
|
| 306 |
+
"bbox": [
|
| 307 |
+
174,
|
| 308 |
+
770,
|
| 309 |
+
825,
|
| 310 |
+
924
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "Han et al. (2015a) elaborate on combining these ideas. They introduce an multi-step algorithm that compresses CNNS up to $4 9 \\times$ . First, weights are pruned (giving $9 - 1 3 \\times$ compression); second they quantize the weights (increasing compression to $2 7 - 3 1 \\times )$ ; and last, they apply Huffman Encoding (giving a final compression of $3 5 - 4 9 \\times )$ . The quantization step is trainable in that after each weight is assigned to a cluster centroid, the centroids get trained with respect to the original loss function. Note that this approach has several restrictions: the number of weights set to zero is fixed after the pruning step, as is the assignment of a weight to a given cluster in the second step. Our approach overcomes all these restrictions. ",
|
| 317 |
+
"bbox": [
|
| 318 |
+
174,
|
| 319 |
+
103,
|
| 320 |
+
825,
|
| 321 |
+
214
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 3
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "text",
|
| 327 |
+
"text": "A final approach to compressing information is to apply low rank matrix decomposition. First introduced by (Denton et al., 2014) and Jaderberg et al. (2014), and elaborated on by using low rank filters (Ioannou et al., 2015), low rank regularization (Tai et al., 2015) or combining low rank decomposition with sparsity (Liu et al., 2015). ",
|
| 328 |
+
"bbox": [
|
| 329 |
+
174,
|
| 330 |
+
222,
|
| 331 |
+
823,
|
| 332 |
+
279
|
| 333 |
+
],
|
| 334 |
+
"page_idx": 3
|
| 335 |
+
},
|
| 336 |
+
{
|
| 337 |
+
"type": "text",
|
| 338 |
+
"text": "4 METHOD ",
|
| 339 |
+
"text_level": 1,
|
| 340 |
+
"bbox": [
|
| 341 |
+
174,
|
| 342 |
+
299,
|
| 343 |
+
281,
|
| 344 |
+
315
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 3
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "This section presents the procedure of network compression as applied in the experiment section. A summary can be found in Algorithm 1. ",
|
| 351 |
+
"bbox": [
|
| 352 |
+
174,
|
| 353 |
+
330,
|
| 354 |
+
823,
|
| 355 |
+
359
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 3
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "text",
|
| 361 |
+
"text": "4.1 GENERAL SET-UP ",
|
| 362 |
+
"text_level": 1,
|
| 363 |
+
"bbox": [
|
| 364 |
+
176,
|
| 365 |
+
377,
|
| 366 |
+
336,
|
| 367 |
+
391
|
| 368 |
+
],
|
| 369 |
+
"page_idx": 3
|
| 370 |
+
},
|
| 371 |
+
{
|
| 372 |
+
"type": "text",
|
| 373 |
+
"text": "We retrain pre-trained neural networks with soft weight-sharing and factorized Dirac posteriors. Hence we optimize ",
|
| 374 |
+
"bbox": [
|
| 375 |
+
171,
|
| 376 |
+
404,
|
| 377 |
+
823,
|
| 378 |
+
433
|
| 379 |
+
],
|
| 380 |
+
"page_idx": 3
|
| 381 |
+
},
|
| 382 |
+
{
|
| 383 |
+
"type": "equation",
|
| 384 |
+
"img_path": "images/f54c4f37c640bebc2e736dcf09bf8f4432fc830442f2f6402b940039773d5652.jpg",
|
| 385 |
+
"text": "$$\n\\begin{array} { r l } & { \\mathcal { L } ( \\mathbf { w } , \\{ \\mu _ { j } , \\sigma _ { j } , \\pi _ { j } \\} _ { j = 0 } ^ { J } ) = \\mathcal { L } ^ { E } + \\tau \\mathcal { L } ^ { C } } \\\\ & { \\qquad = - \\log p ( \\mathbf { T } | \\mathbf { X } , \\mathbf { w } ) - \\tau \\log p ( \\mathbf { w } , \\{ \\mu _ { j } , \\sigma _ { j } , \\pi _ { j } \\} _ { j = 0 } ^ { J } ) , } \\end{array}\n$$",
|
| 386 |
+
"text_format": "latex",
|
| 387 |
+
"bbox": [
|
| 388 |
+
258,
|
| 389 |
+
438,
|
| 390 |
+
738,
|
| 391 |
+
481
|
| 392 |
+
],
|
| 393 |
+
"page_idx": 3
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"type": "text",
|
| 397 |
+
"text": "via gradient descent, specifically using Adam (Kingma & Ba, 2014). The KL divergence reduces to the prior because the entropy term does not depend on any trainable parameters. Note that, similar to (Nowlan & Hinton, 1992) we weigh the log-prior contribution to the gradient by a factor of $\\tau = 0 . 0 0 5$ . In the process of retraining the weights, the variances, means, and mixing proportions of all but one component are learned. For one component, we fix $\\mu _ { j = 0 } = 0$ and $\\pi _ { j = 0 } = 0 . 9 9 9$ . Alternatively we can train $\\pi _ { j = 0 }$ as well but restrict it by a Beta distribution hyper-prior. Our Gaussian MM prior is initialized with $2 ^ { 4 } + 1 = 1 7$ components. We initialize the learning rate for the weights and means, log-variances and log-mixing proportions separately. The weights should be trained with approximately the same learning rate used for pre-training. The remaining learning rates are set to $5 \\cdot 1 0 ^ { - 4 }$ . Note that this is a very sensitive parameter. The Gaussian mixtures will collapse very fast as long as the error loss does not object. However if it collapses too fast weights might be left behind, thus it is important to set the learning rate such that the mixture does collapse too soon. If the learning rate is too small the mixture will converge too slowly. Another option to keep the mixture components from collapsing is to apply an Inverse-Gamma hyperprior on the mixture variances. ",
|
| 398 |
+
"bbox": [
|
| 399 |
+
173,
|
| 400 |
+
486,
|
| 401 |
+
825,
|
| 402 |
+
695
|
| 403 |
+
],
|
| 404 |
+
"page_idx": 3
|
| 405 |
+
},
|
| 406 |
+
{
|
| 407 |
+
"type": "text",
|
| 408 |
+
"text": "4.2 INITIALIZATION OF MIXTURE MODEL COMPONENTS ",
|
| 409 |
+
"text_level": 1,
|
| 410 |
+
"bbox": [
|
| 411 |
+
174,
|
| 412 |
+
713,
|
| 413 |
+
581,
|
| 414 |
+
728
|
| 415 |
+
],
|
| 416 |
+
"page_idx": 3
|
| 417 |
+
},
|
| 418 |
+
{
|
| 419 |
+
"type": "text",
|
| 420 |
+
"text": "In principle, we follow the method proposed by Nowlan & Hinton (1992). We distribute the means of the 16 non-fixed components evenly over the range of the pre-trained weights. The variances will be initialized such that each Gaussian has significant probability mass in its region. A good orientation for setting a good initial variance is weight decay rate the original network has been trained on. The trainable mixing proportions are initialized evenly $\\pi _ { j } = ( 1 - \\pi _ { j = 0 } ) / J$ . We also experimented with other approaches such as distributing the means such that each component assumes an equal amount of probability. We did not observe any significant improvement over the simpler initialization procedure. ",
|
| 421 |
+
"bbox": [
|
| 422 |
+
173,
|
| 423 |
+
739,
|
| 424 |
+
825,
|
| 425 |
+
852
|
| 426 |
+
],
|
| 427 |
+
"page_idx": 3
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"type": "text",
|
| 431 |
+
"text": "4.3 POST-PROCESSING ",
|
| 432 |
+
"text_level": 1,
|
| 433 |
+
"bbox": [
|
| 434 |
+
176,
|
| 435 |
+
869,
|
| 436 |
+
346,
|
| 437 |
+
882
|
| 438 |
+
],
|
| 439 |
+
"page_idx": 3
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"type": "text",
|
| 443 |
+
"text": "After re-training we set each weight to the mean of the component that takes most responsibility for it i.e. we quantize the weights. Before quantizing, however, there might be redundant components ",
|
| 444 |
+
"bbox": [
|
| 445 |
+
174,
|
| 446 |
+
895,
|
| 447 |
+
823,
|
| 448 |
+
924
|
| 449 |
+
],
|
| 450 |
+
"page_idx": 3
|
| 451 |
+
},
|
| 452 |
+
{
|
| 453 |
+
"type": "text",
|
| 454 |
+
"text": "as explained in section 2. To eliminate those we follow Adhikari & Hollmen (2012) by computing ´ the KL divergence between all components. For a KL divergence smaller than a threshold, we merge two components as follows ",
|
| 455 |
+
"bbox": [
|
| 456 |
+
174,
|
| 457 |
+
103,
|
| 458 |
+
825,
|
| 459 |
+
146
|
| 460 |
+
],
|
| 461 |
+
"page_idx": 4
|
| 462 |
+
},
|
| 463 |
+
{
|
| 464 |
+
"type": "equation",
|
| 465 |
+
"img_path": "images/1264e049926202d9c0027def791c68aaff3e71cf394e884505f40687fc4f6793.jpg",
|
| 466 |
+
"text": "$$\n\\pi _ { \\mathrm { n e w } } = \\pi _ { i } + \\pi _ { j } , \\mu _ { \\mathrm { n e w } } = \\frac { \\pi _ { i } \\mu _ { i } + \\pi _ { j } \\mu _ { j } } { \\pi _ { i } + \\pi _ { j } } , \\sigma _ { \\mathrm { n e w } } ^ { 2 } = \\frac { \\pi _ { i } \\sigma _ { i } ^ { 2 } + \\pi _ { j } \\sigma _ { j } ^ { 2 } } { \\pi _ { i } + \\pi _ { j } }\n$$",
|
| 467 |
+
"text_format": "latex",
|
| 468 |
+
"bbox": [
|
| 469 |
+
272,
|
| 470 |
+
152,
|
| 471 |
+
723,
|
| 472 |
+
190
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 4
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "text",
|
| 478 |
+
"text": "for two components with indices $i$ and $j$ . ",
|
| 479 |
+
"bbox": [
|
| 480 |
+
176,
|
| 481 |
+
196,
|
| 482 |
+
442,
|
| 483 |
+
210
|
| 484 |
+
],
|
| 485 |
+
"page_idx": 4
|
| 486 |
+
},
|
| 487 |
+
{
|
| 488 |
+
"type": "text",
|
| 489 |
+
"text": "Finally, for practical compression we use the storage format used in Han et al. (2015a) (see Appendix A). ",
|
| 490 |
+
"bbox": [
|
| 491 |
+
173,
|
| 492 |
+
212,
|
| 493 |
+
823,
|
| 494 |
+
238
|
| 495 |
+
],
|
| 496 |
+
"page_idx": 4
|
| 497 |
+
},
|
| 498 |
+
{
|
| 499 |
+
"type": "text",
|
| 500 |
+
"text": "Algorithm 1 Soft weight-sharing for compression, our proposed algorithm for neural network model compression. It is divided into two main steps: network re-training and post-processing. ",
|
| 501 |
+
"bbox": [
|
| 502 |
+
169,
|
| 503 |
+
253,
|
| 504 |
+
825,
|
| 505 |
+
284
|
| 506 |
+
],
|
| 507 |
+
"page_idx": 4
|
| 508 |
+
},
|
| 509 |
+
{
|
| 510 |
+
"type": "text",
|
| 511 |
+
"text": "Require: $\\tau \\mathrm { s e t }$ the trade-off between error and complexity loss \nRequire: $\\Theta $ set parameters for gradient decent scheme such as learning rate or momentum \nRequire: $\\alpha , \\beta \\gets { \\sf s e t }$ gamma hyper-prior parameter (optional) $\\mathbf { w } \\gets$ initialize network weights with pre-trained network weights $\\theta = \\{ \\mu _ { j } , \\sigma _ { j } , \\pi _ { j } \\} _ { j = 1 } ^ { J } $ initialize mixture parameters (see Sec. 4.2) while $\\mathbf { w } , \\theta$ not converged do $\\mathbf { w } , \\theta \\gets \\nabla _ { \\mathbf { w } , \\theta } \\mathcal { L } ^ { E } + \\overline { { \\tau } } \\mathcal { L } ^ { C }$ update $\\mathbf { w }$ and $\\theta$ with the gradient decent scheme of choice end while $\\mathbf { w } \\gets \\mathop { \\mathrm { a r g m a x } } _ { \\mu _ { k } } \\frac { \\pi _ { k } \\mathcal { N } ( \\mathbf { w } | \\mu _ { k } , \\sigma _ { k } ) } { \\sum \\pi _ { j } \\mathcal { N } ( \\mathbf { w } | \\mu _ { j } , \\sigma _ { j } ) }$ compute final weight by setting it to the mean that takes most responsibility (for details see Sec. 4.3) ",
|
| 512 |
+
"bbox": [
|
| 513 |
+
173,
|
| 514 |
+
285,
|
| 515 |
+
820,
|
| 516 |
+
441
|
| 517 |
+
],
|
| 518 |
+
"page_idx": 4
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"type": "text",
|
| 522 |
+
"text": "5 MODELS ",
|
| 523 |
+
"text_level": 1,
|
| 524 |
+
"bbox": [
|
| 525 |
+
174,
|
| 526 |
+
473,
|
| 527 |
+
279,
|
| 528 |
+
489
|
| 529 |
+
],
|
| 530 |
+
"page_idx": 4
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"type": "text",
|
| 534 |
+
"text": "We test our compression procedure on two neural network models used in previous work we compare against in our experiments: ",
|
| 535 |
+
"bbox": [
|
| 536 |
+
173,
|
| 537 |
+
506,
|
| 538 |
+
823,
|
| 539 |
+
534
|
| 540 |
+
],
|
| 541 |
+
"page_idx": 4
|
| 542 |
+
},
|
| 543 |
+
{
|
| 544 |
+
"type": "text",
|
| 545 |
+
"text": "(a) LeNet-300-100 an MNIST model described in LeCun et al. (1998). As no pre-trained model is available, we train our own, resulting in an error rate of $1 . 8 9 \\%$ . \n(b) LeNet-5-Caffe a modified version of the LeNet-5 MNIST model in LeCun et al. (1998). The model specification can be downloaded from the Caffe MNIST tutorial page 2. As no pre-trained model is available, we train our own, resulting in an error rate of $0 . 8 8 \\%$ . \n(c) ResNets have been invented by He et al. (2015) and further developed by He et al. (2016) and Zagoruyko & Komodakis (2016). We choose a model version of the latter authors. In accordance with their notation, we choose a network with depth 16, width $k = 4$ and no dropout. This model has $2 . 7 \\mathbf { M }$ parameters. In our experiments, we follow the authors by using only light augmentation, i.e., horizontal flips and random shifts by up to 4 pixels. Furthermore the data is normalized. The authors report error rates of $5 . 0 2 \\%$ and $2 4 . 0 3 \\%$ for CIFAR-10 and CIFAR-100 respectively. By reimplementing their model we trained models that achieve errors $6 . 4 8 \\%$ and $2 8 . 2 3 \\%$ . ",
|
| 546 |
+
"bbox": [
|
| 547 |
+
173,
|
| 548 |
+
545,
|
| 549 |
+
826,
|
| 550 |
+
737
|
| 551 |
+
],
|
| 552 |
+
"page_idx": 4
|
| 553 |
+
},
|
| 554 |
+
{
|
| 555 |
+
"type": "text",
|
| 556 |
+
"text": "6 EXPERIMENTS ",
|
| 557 |
+
"text_level": 1,
|
| 558 |
+
"bbox": [
|
| 559 |
+
176,
|
| 560 |
+
758,
|
| 561 |
+
326,
|
| 562 |
+
775
|
| 563 |
+
],
|
| 564 |
+
"page_idx": 4
|
| 565 |
+
},
|
| 566 |
+
{
|
| 567 |
+
"type": "text",
|
| 568 |
+
"text": "6.1 INITIAL EXPERIMENT ",
|
| 569 |
+
"text_level": 1,
|
| 570 |
+
"bbox": [
|
| 571 |
+
174,
|
| 572 |
+
790,
|
| 573 |
+
364,
|
| 574 |
+
804
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 4
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "First, we run our algorithm without any hyper-priors, an experiment on LeNet-300-100. In Figure 1 we visualise the original distribution over weights, the final distribution over weight and how each weight changed its position in the training process. After retraining, the distribution is sharply peaked around zero. Note that with our procedure the optimization process automatically determines how many weights per layer are pruned. Specifically in this experiment, $96 \\%$ of the first layer (235K parameter), $90 \\%$ of the second (30K) and only $18 \\%$ of the final layer (10K) are pruned. From observations of this and other experiments, we conclude that the amount of pruned weights depends mainly on the number of parameters in the layer rather than its position or type (convolutional or fully connected). ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
816,
|
| 584 |
+
823,
|
| 585 |
+
887
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 4
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "",
|
| 592 |
+
"bbox": [
|
| 593 |
+
174,
|
| 594 |
+
103,
|
| 595 |
+
823,
|
| 596 |
+
159
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 5
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "text",
|
| 602 |
+
"text": "Evaluating the model reveals a compression rate of 64.2. The accuracy of the model does not drop significantly from 0.9811 to 0.9806. However, we do observe that the mixture components eventually collapse, i.e., the variances go to zero. This makes the prior inflexible and the optimization can easily get stuck because the prior is accumulating probability mass around the mixture means. For a weight, escaping from those high probability plateaus is impossible. This motivates the use hyper-priors such as an Inverse-Gamma prior on the variances to essentially lower bound them. ",
|
| 603 |
+
"bbox": [
|
| 604 |
+
173,
|
| 605 |
+
166,
|
| 606 |
+
825,
|
| 607 |
+
251
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 5
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "image",
|
| 613 |
+
"img_path": "images/366fcfb9d4f32f72391a0724ed8b6315b098dcac6186c9ceaf7a26d458a50213.jpg",
|
| 614 |
+
"image_caption": [
|
| 615 |
+
"Figure 1: On top we show the distribution of a pretrained network. On the right the same distribution after retraining. The change in value of each weight is illustrated by a scatter plot. "
|
| 616 |
+
],
|
| 617 |
+
"image_footnote": [],
|
| 618 |
+
"bbox": [
|
| 619 |
+
184,
|
| 620 |
+
284,
|
| 621 |
+
807,
|
| 622 |
+
565
|
| 623 |
+
],
|
| 624 |
+
"page_idx": 5
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"type": "text",
|
| 628 |
+
"text": "6.2 HYPER-PARAMETER TUNING USING BAYESIAN OPTIMIZATION ",
|
| 629 |
+
"bbox": [
|
| 630 |
+
176,
|
| 631 |
+
657,
|
| 632 |
+
643,
|
| 633 |
+
671
|
| 634 |
+
],
|
| 635 |
+
"page_idx": 5
|
| 636 |
+
},
|
| 637 |
+
{
|
| 638 |
+
"type": "text",
|
| 639 |
+
"text": "The proposed procedure offers various freedoms: there are many hyper-parameters to optimize, one may use hyper-priors as motivated in the previous section or even go as far as using other distributions as mixture components. ",
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
686,
|
| 643 |
+
825,
|
| 644 |
+
728
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 5
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "To cope with the variety of choices, we optimize 13 hyper-parameters using the Bayesian optimization tool Spearmint Snoek et al. (2012). These include the learning rates of the weight and mixing components, the number of components, and $\\tau$ . Furthermore, we assume an Inverse-Gamma prior over the variances separately for the zero component and the other components and a Beta prior over the zero mixing components. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
734,
|
| 654 |
+
825,
|
| 655 |
+
805
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 5
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "In these experiments, we optimize re-training hyperparameters for LeNet-300-100 and LeNet-5- Caffe. Due to computational restrictions, we set the number of training epochs to 40 (previously 100), knowing that this may lead to solutions that have not fully converged. Spearmint acts on an objective that balances accuracy loss vs compression rate. The accuracy loss in this case is measured over the training data. The results are shown in Figure 2. In the illustration we use the accuracy loss as given by the test data. The best results predicted by our spearmint objective are colored in dark blue. Note that we achieve competitive results in this experiment despite the restricted optimization time of 40 epochs, i.e. 18K updates. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
811,
|
| 665 |
+
825,
|
| 666 |
+
924
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 5
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "image",
|
| 672 |
+
"img_path": "images/62da5f3a931a29608a1c8683b52053a43dbe573da65df1fe113163626c3d12b3.jpg",
|
| 673 |
+
"image_caption": [
|
| 674 |
+
"Figure 2: We show the results of optimizing hyper-parameters with spearmint. Specifically, we plot the accuracy loss of a re-trained network against the compression rate. Each point represents one hyper-parameter setting. The guesses of the optimizer improve over time. We also present the results of other methods for comparison. Left: LeNet-300-100 Right: LeNet-5-Caffe. "
|
| 675 |
+
],
|
| 676 |
+
"image_footnote": [],
|
| 677 |
+
"bbox": [
|
| 678 |
+
178,
|
| 679 |
+
102,
|
| 680 |
+
813,
|
| 681 |
+
279
|
| 682 |
+
],
|
| 683 |
+
"page_idx": 6
|
| 684 |
+
},
|
| 685 |
+
{
|
| 686 |
+
"type": "image",
|
| 687 |
+
"img_path": "images/b0bf8e6826b727729b43ba5975e9440a88a49d3cdb787f100f770c3392a0e2f2.jpg",
|
| 688 |
+
"image_caption": [
|
| 689 |
+
"Figure 3: Illustration of our mixture model compression procedure on LeNet-5-Caffe. Left: Dynamics of Gaussian mixture components during the learning procedure. Initially there are $1 7 \\mathrm { \\ c o m { - } }$ ponents, including the zero component. During learning components are absorbed into other components, resulting in roughly 6 significant components. Right: A scatter plot of initial versus final weights, along with the Gaussian components’ uncertainties. The initial weight distribution is roughly one broad Gaussian, whereas the final weight distribution matches closely the final, learned prior which has become very peaked, resulting in good quantization properties. "
|
| 690 |
+
],
|
| 691 |
+
"image_footnote": [],
|
| 692 |
+
"bbox": [
|
| 693 |
+
186,
|
| 694 |
+
385,
|
| 695 |
+
789,
|
| 696 |
+
606
|
| 697 |
+
],
|
| 698 |
+
"page_idx": 6
|
| 699 |
+
},
|
| 700 |
+
{
|
| 701 |
+
"type": "text",
|
| 702 |
+
"text": "The conclusions from this experiment are a bit unclear, on the one hand we do achieve state-ofthe-art results for LeNet-5-Caffe, on the other hand there seems to be little connection between the parameter settings of best results. One wonders if a 13 dimensional parameter space can be searched efficiently with the amount of runs we were conducting. It may be more reasonable to get more inside in the optimization process and tune parameters according to those. ",
|
| 703 |
+
"bbox": [
|
| 704 |
+
174,
|
| 705 |
+
752,
|
| 706 |
+
825,
|
| 707 |
+
823
|
| 708 |
+
],
|
| 709 |
+
"page_idx": 6
|
| 710 |
+
},
|
| 711 |
+
{
|
| 712 |
+
"type": "text",
|
| 713 |
+
"text": "6.3 COMPRESSION RESULTS ",
|
| 714 |
+
"text_level": 1,
|
| 715 |
+
"bbox": [
|
| 716 |
+
174,
|
| 717 |
+
842,
|
| 718 |
+
383,
|
| 719 |
+
856
|
| 720 |
+
],
|
| 721 |
+
"page_idx": 6
|
| 722 |
+
},
|
| 723 |
+
{
|
| 724 |
+
"type": "text",
|
| 725 |
+
"text": "We compare our compression scheme with Han et al. (2015a) and Guo et al. (2016) in Table 1. The results on MNIST networks are very promising. We achieve state-of-the-art compression rates in both examples. We can furthermore show results for a light version of ResNet with 2.7M parameters to illustrate that our method does scale to modern architectures. We used more components (64) ",
|
| 726 |
+
"bbox": [
|
| 727 |
+
174,
|
| 728 |
+
867,
|
| 729 |
+
823,
|
| 730 |
+
922
|
| 731 |
+
],
|
| 732 |
+
"page_idx": 6
|
| 733 |
+
},
|
| 734 |
+
{
|
| 735 |
+
"type": "table",
|
| 736 |
+
"img_path": "images/eb6f67da7e4c9bb727a35971ca1f1c5c6925a4669a8bfc3835b80fe21689ddb0.jpg",
|
| 737 |
+
"table_caption": [
|
| 738 |
+
"Table 1: Compression Results. We compare methods based on the post-processing error (we also indicate the starting error), the accuracy loss $\\Delta$ , the number of non zero weights $| \\mathbf { W } _ { \\neq 0 } |$ and the final compression rate CR based on the method proposed by Han et al. (2015a). "
|
| 739 |
+
],
|
| 740 |
+
"table_footnote": [],
|
| 741 |
+
"table_body": "<table><tr><td>Model</td><td>Method</td><td>Top-1 Error[%]</td><td>△[%]</td><td>[W|[106]</td><td>W0 [%] W</td><td>CR</td></tr><tr><td rowspan=\"3\">LeNet-300-100</td><td>Han et al. (2015a)</td><td>1.64 → 1.58</td><td>0.06</td><td>0.2</td><td>8.0</td><td>40</td></tr><tr><td>Guo et al. (2016)</td><td>2.28→ 1.99</td><td>-0.29</td><td></td><td>1.8</td><td>56</td></tr><tr><td>Ours</td><td>1.89 →1.94</td><td>-0.05</td><td></td><td>4.3</td><td>64</td></tr><tr><td rowspan=\"3\">LeNet-5-Caffe</td><td>Han et al. (2015a)</td><td>0.80 →0.74</td><td>-0.06</td><td>0.4</td><td>8.0</td><td>39</td></tr><tr><td>Guo et al. (2016)</td><td>0.91 →0.91</td><td>0.00</td><td></td><td>0.9</td><td>108</td></tr><tr><td>Ours</td><td>0.88 →0.97</td><td>0.09</td><td></td><td>0.5</td><td>162</td></tr><tr><td>ResNet (light)</td><td>Ours</td><td>6.48 →8.50</td><td>2.02</td><td>2.7</td><td>6.6</td><td>45</td></tr></table>",
|
| 742 |
+
"bbox": [
|
| 743 |
+
173,
|
| 744 |
+
160,
|
| 745 |
+
825,
|
| 746 |
+
285
|
| 747 |
+
],
|
| 748 |
+
"page_idx": 7
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"type": "text",
|
| 752 |
+
"text": "here to cover the large regime of weights. However, for large networks such as VGG with 138M parameters the algorithm is too slow to get usable results. We propose a solution for this problem in Appendix C; however, we do not have any experimental results yet. ",
|
| 753 |
+
"bbox": [
|
| 754 |
+
176,
|
| 755 |
+
315,
|
| 756 |
+
823,
|
| 757 |
+
358
|
| 758 |
+
],
|
| 759 |
+
"page_idx": 7
|
| 760 |
+
},
|
| 761 |
+
{
|
| 762 |
+
"type": "text",
|
| 763 |
+
"text": "7 DISCUSSION AND FUTURE WORK ",
|
| 764 |
+
"text_level": 1,
|
| 765 |
+
"bbox": [
|
| 766 |
+
176,
|
| 767 |
+
377,
|
| 768 |
+
485,
|
| 769 |
+
393
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 7
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "text",
|
| 775 |
+
"text": "In this work we revived a simple and principled regularization method based on soft weight-sharing and applied it directly to the problem of model compression. On the one hand we showed that we can optimize the MDL complexity lower bound, while on the other hand we showed that our method works well in practice when being applied to different models. A short-coming of the method at the moment is its computational cost and the ease of implementation. For the first, we provide a proposal that will be tested in future work. The latter is an open question at the moment. Note that our method—since it is optimizing the lower bound directly—will most likely also work when applied to other storage formats, such as those proposed originally by Hinton & Van Camp (1993). In the future we would like to extend beyond Dirac posteriors as done in Graves (2011) by extending the weight sharing prior to more general priors. For example, from a compression point of view, we could learn to prune entire structures from the network by placing Bernoulli priors over structures such as convolutional filters or ResNet units. Furthermore, it could be interesting to train models from scratch or in a student-teacher setting. ",
|
| 776 |
+
"bbox": [
|
| 777 |
+
174,
|
| 778 |
+
409,
|
| 779 |
+
825,
|
| 780 |
+
590
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 7
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "ACKNOWLEDGEMENTS ",
|
| 787 |
+
"text_level": 1,
|
| 788 |
+
"bbox": [
|
| 789 |
+
176,
|
| 790 |
+
611,
|
| 791 |
+
366,
|
| 792 |
+
626
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 7
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "We would like to thank Louis Smit, Christos Louizos, Thomas Kipf, Rianne van den Berg and Peter O’Connor for helpful discussions on the paper and the public code3. ",
|
| 799 |
+
"bbox": [
|
| 800 |
+
174,
|
| 801 |
+
641,
|
| 802 |
+
823,
|
| 803 |
+
670
|
| 804 |
+
],
|
| 805 |
+
"page_idx": 7
|
| 806 |
+
},
|
| 807 |
+
{
|
| 808 |
+
"type": "text",
|
| 809 |
+
"text": "This research has been supported by Google. ",
|
| 810 |
+
"bbox": [
|
| 811 |
+
176,
|
| 812 |
+
676,
|
| 813 |
+
467,
|
| 814 |
+
690
|
| 815 |
+
],
|
| 816 |
+
"page_idx": 7
|
| 817 |
+
},
|
| 818 |
+
{
|
| 819 |
+
"type": "text",
|
| 820 |
+
"text": "REFERENCES ",
|
| 821 |
+
"text_level": 1,
|
| 822 |
+
"bbox": [
|
| 823 |
+
176,
|
| 824 |
+
712,
|
| 825 |
+
287,
|
| 826 |
+
728
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 7
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Prem Raj Adhikari and Jaakko Hollmen. Multiresolution mixture modeling using merging of mix- ´ ture components. 2012. ",
|
| 833 |
+
"bbox": [
|
| 834 |
+
173,
|
| 835 |
+
736,
|
| 836 |
+
823,
|
| 837 |
+
763
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 7
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Christopher M Bishop. Pattern recognition. Machine Learning, 2006. ",
|
| 844 |
+
"bbox": [
|
| 845 |
+
174,
|
| 846 |
+
772,
|
| 847 |
+
632,
|
| 848 |
+
787
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 7
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "text",
|
| 854 |
+
"text": "Wenlin Chen, James T Wilson, Stephen Tyree, Kilian Q Weinberger, and Yixin Chen. Compressing convolutional neural networks. arXiv preprint arXiv:1506.04449, 2015. ",
|
| 855 |
+
"bbox": [
|
| 856 |
+
173,
|
| 857 |
+
795,
|
| 858 |
+
823,
|
| 859 |
+
825
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 7
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "text",
|
| 865 |
+
"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. ",
|
| 866 |
+
"bbox": [
|
| 867 |
+
174,
|
| 868 |
+
833,
|
| 869 |
+
823,
|
| 870 |
+
863
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 7
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "text",
|
| 876 |
+
"text": "Matthieu Courbariaux, Jean-Pierre David, and Yoshua Bengio. Training deep neural networks with low precision multiplications. arXiv preprint arXiv:1412.7024, 2014. ",
|
| 877 |
+
"bbox": [
|
| 878 |
+
178,
|
| 879 |
+
871,
|
| 880 |
+
825,
|
| 881 |
+
900
|
| 882 |
+
],
|
| 883 |
+
"page_idx": 7
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"type": "text",
|
| 887 |
+
"text": "Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In Advances in Neural Information Processing Systems, pp. 3123–3131, 2015. ",
|
| 888 |
+
"bbox": [
|
| 889 |
+
176,
|
| 890 |
+
103,
|
| 891 |
+
823,
|
| 892 |
+
146
|
| 893 |
+
],
|
| 894 |
+
"page_idx": 8
|
| 895 |
+
},
|
| 896 |
+
{
|
| 897 |
+
"type": "text",
|
| 898 |
+
"text": "Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training neural networks with weights and activations constrained to $+ 1$ or $- 1$ 2016. ",
|
| 899 |
+
"bbox": [
|
| 900 |
+
174,
|
| 901 |
+
155,
|
| 902 |
+
821,
|
| 903 |
+
196
|
| 904 |
+
],
|
| 905 |
+
"page_idx": 8
|
| 906 |
+
},
|
| 907 |
+
{
|
| 908 |
+
"type": "text",
|
| 909 |
+
"text": "Misha Denil, Babak Shakibi, Laurent Dinh, Nando de Freitas, et al. Predicting parameters in deep learning. In Advances in Neural Information Processing Systems, pp. 2148–2156, 2013. ",
|
| 910 |
+
"bbox": [
|
| 911 |
+
173,
|
| 912 |
+
205,
|
| 913 |
+
821,
|
| 914 |
+
236
|
| 915 |
+
],
|
| 916 |
+
"page_idx": 8
|
| 917 |
+
},
|
| 918 |
+
{
|
| 919 |
+
"type": "text",
|
| 920 |
+
"text": "Emily L Denton, Wojciech Zaremba, Joan Bruna, Yann LeCun, and Rob Fergus. Exploiting linear structure within convolutional networks for efficient evaluation. In Advances in Neural Information Processing Systems, pp. 1269–1277, 2014. ",
|
| 921 |
+
"bbox": [
|
| 922 |
+
171,
|
| 923 |
+
244,
|
| 924 |
+
823,
|
| 925 |
+
287
|
| 926 |
+
],
|
| 927 |
+
"page_idx": 8
|
| 928 |
+
},
|
| 929 |
+
{
|
| 930 |
+
"type": "text",
|
| 931 |
+
"text": "Yunchao Gong, Liu Liu, Ming Yang, and Lubomir Bourdev. Compressing deep convolutional networks using vector quantization. arXiv preprint arXiv:1412.6115, 2014. ",
|
| 932 |
+
"bbox": [
|
| 933 |
+
173,
|
| 934 |
+
296,
|
| 935 |
+
823,
|
| 936 |
+
325
|
| 937 |
+
],
|
| 938 |
+
"page_idx": 8
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"type": "text",
|
| 942 |
+
"text": "Alex Graves. Practical variational inference for neural networks. In Advances in Neural Information Processing Systems, pp. 2348–2356, 2011. ",
|
| 943 |
+
"bbox": [
|
| 944 |
+
174,
|
| 945 |
+
334,
|
| 946 |
+
823,
|
| 947 |
+
363
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 8
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "Yiwen Guo, Anbang Yao, and Yurong Chen. Dynamic network surgery for efficient dnns. In Advances In Neural Information Processing Systems, pp. 1379–1387, 2016. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
174,
|
| 956 |
+
371,
|
| 957 |
+
823,
|
| 958 |
+
401
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 8
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. CoRR, abs/1502.02551, 392, 2015. ",
|
| 965 |
+
"bbox": [
|
| 966 |
+
173,
|
| 967 |
+
409,
|
| 968 |
+
823,
|
| 969 |
+
439
|
| 970 |
+
],
|
| 971 |
+
"page_idx": 8
|
| 972 |
+
},
|
| 973 |
+
{
|
| 974 |
+
"type": "text",
|
| 975 |
+
"text": "Song Han, Huizi Mao, and William J Dally. Deep compression: Compressing deep neural network with pruning, trained quantization and huffman coding. CoRR, abs/1510.00149, 2, 2015a. ",
|
| 976 |
+
"bbox": [
|
| 977 |
+
173,
|
| 978 |
+
446,
|
| 979 |
+
825,
|
| 980 |
+
477
|
| 981 |
+
],
|
| 982 |
+
"page_idx": 8
|
| 983 |
+
},
|
| 984 |
+
{
|
| 985 |
+
"type": "text",
|
| 986 |
+
"text": "Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural networks. In Advances in Neural Information Processing Systems, pp. 1135– 1143, 2015b. ",
|
| 987 |
+
"bbox": [
|
| 988 |
+
173,
|
| 989 |
+
484,
|
| 990 |
+
825,
|
| 991 |
+
527
|
| 992 |
+
],
|
| 993 |
+
"page_idx": 8
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"type": "text",
|
| 997 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. arXiv preprint arXiv:1512.03385, 2015. ",
|
| 998 |
+
"bbox": [
|
| 999 |
+
173,
|
| 1000 |
+
536,
|
| 1001 |
+
823,
|
| 1002 |
+
566
|
| 1003 |
+
],
|
| 1004 |
+
"page_idx": 8
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"type": "text",
|
| 1008 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Identity mappings in deep residual networks. arXiv preprint arXiv:1603.05027, 2016. ",
|
| 1009 |
+
"bbox": [
|
| 1010 |
+
174,
|
| 1011 |
+
574,
|
| 1012 |
+
823,
|
| 1013 |
+
604
|
| 1014 |
+
],
|
| 1015 |
+
"page_idx": 8
|
| 1016 |
+
},
|
| 1017 |
+
{
|
| 1018 |
+
"type": "text",
|
| 1019 |
+
"text": "Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015. ",
|
| 1020 |
+
"bbox": [
|
| 1021 |
+
174,
|
| 1022 |
+
612,
|
| 1023 |
+
823,
|
| 1024 |
+
642
|
| 1025 |
+
],
|
| 1026 |
+
"page_idx": 8
|
| 1027 |
+
},
|
| 1028 |
+
{
|
| 1029 |
+
"type": "text",
|
| 1030 |
+
"text": "Geoffrey E Hinton and Drew Van Camp. Keeping the neural networks simple by minimizing the description length of the weights. In Proceedings of the sixth annual conference on Computational learning theory, pp. 5–13. ACM, 1993. ",
|
| 1031 |
+
"bbox": [
|
| 1032 |
+
174,
|
| 1033 |
+
650,
|
| 1034 |
+
823,
|
| 1035 |
+
694
|
| 1036 |
+
],
|
| 1037 |
+
"page_idx": 8
|
| 1038 |
+
},
|
| 1039 |
+
{
|
| 1040 |
+
"type": "text",
|
| 1041 |
+
"text": "Antti Honkela and Harri Valpola. Variational learning and bits-back coding: an informationtheoretic view to bayesian learning. IEEE Transactions on Neural Networks, 15(4):800–810, 2004. ",
|
| 1042 |
+
"bbox": [
|
| 1043 |
+
174,
|
| 1044 |
+
702,
|
| 1045 |
+
823,
|
| 1046 |
+
744
|
| 1047 |
+
],
|
| 1048 |
+
"page_idx": 8
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"type": "text",
|
| 1052 |
+
"text": "Forrest N Iandola, Matthew W Moskewicz, Khalid Ashraf, Song Han, William J Dally, and Kurt Keutzer. Squeezenet: Alexnet-level accuracy with 50x fewer parameters and¡ 1mb model size. arXiv preprint arXiv:1602.07360, 2016. ",
|
| 1053 |
+
"bbox": [
|
| 1054 |
+
176,
|
| 1055 |
+
753,
|
| 1056 |
+
823,
|
| 1057 |
+
796
|
| 1058 |
+
],
|
| 1059 |
+
"page_idx": 8
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"type": "text",
|
| 1063 |
+
"text": "Yani Ioannou, Duncan Robertson, Jamie Shotton, Roberto Cipolla, and Antonio Criminisi. Training cnns with low-rank filters for efficient image classification. arXiv preprint arXiv:1511.06744, 2015. ",
|
| 1064 |
+
"bbox": [
|
| 1065 |
+
176,
|
| 1066 |
+
805,
|
| 1067 |
+
823,
|
| 1068 |
+
848
|
| 1069 |
+
],
|
| 1070 |
+
"page_idx": 8
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"type": "text",
|
| 1074 |
+
"text": "Max Jaderberg, Andrea Vedaldi, and Andrew Zisserman. Speeding up convolutional neural networks with low rank expansions. arXiv preprint arXiv:1405.3866, 2014. ",
|
| 1075 |
+
"bbox": [
|
| 1076 |
+
173,
|
| 1077 |
+
857,
|
| 1078 |
+
821,
|
| 1079 |
+
886
|
| 1080 |
+
],
|
| 1081 |
+
"page_idx": 8
|
| 1082 |
+
},
|
| 1083 |
+
{
|
| 1084 |
+
"type": "text",
|
| 1085 |
+
"text": "Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
|
| 1086 |
+
"bbox": [
|
| 1087 |
+
174,
|
| 1088 |
+
895,
|
| 1089 |
+
821,
|
| 1090 |
+
924
|
| 1091 |
+
],
|
| 1092 |
+
"page_idx": 8
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"type": "text",
|
| 1096 |
+
"text": "Yann LeCun, John S Denker, Sara A Solla, Richard E Howard, and Lawrence D Jackel. Optimal brain damage. In NIPs, volume 2, pp. 598–605, 1989. \nYann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. \nDarryl D Lin, Sachin S Talathi, and V Sreekanth Annapureddy. Fixed point quantization of deep convolutional networks. arXiv preprint arXiv:1511.06393, 2015. \nBaoyuan Liu, Min Wang, Hassan Foroosh, Marshall Tappen, and Marianna Pensky. Sparse convolutional neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 806–814, 2015. \nPaul Merolla, Rathinakumar Appuswamy, John Arthur, Steve K Esser, and Dharmendra Modha. Deep neural networks are robust to weight binarization and other non-linear distortions. arXiv preprint arXiv:1606.01981, 2016. \nDmitry Molchanov, Arsenii Ashukha, and Dmitry Vetrov. Variational dropout sparsifies deep neural networks. arXiv preprint arXiv:1701.05369, 2017. \nSteven J Nowlan and Geoffrey E Hinton. Simplifying neural networks by soft weight-sharing. Neural computation, 4(4):473–493, 1992. \nJorma Rissanen. Modeling by shortest data description. Automatica, 14(5):465–471, 1978. \nJorma Rissanen. Stochastic complexity and modeling. The annals of statistics, pp. 1080–1100, 1986. \nHerbert Robbins and Sutton Monro. A stochastic approximation method. The annals of mathematical statistics, pp. 400–407, 1951. \nJasper Snoek, Hugo Larochelle, and Ryan P Adams. Practical bayesian optimization of machine learning algorithms. In Advances in neural information processing systems, pp. 2951–2959, 2012. \nCheng Tai, Tong Xiao, Xiaogang Wang, et al. Convolutional neural networks with low-rank regularization. arXiv preprint arXiv:1511.06067, 2015. \nGanesh Venkatesh, Eriko Nurvitadhi, and Debbie Marr. Accelerating deep convolutional networks using low-precision and sparsity. arXiv preprint arXiv:1610.00324, 2016. \nChris S Wallace. Classification by minimum-message-length inference. In International Conference on Computing and Information, pp. 72–81. Springer, 1990. \nWei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances In Neural Information Processing Systems, pp. 2074–2082, 2016. \nIan H Witten, Radford M Neal, and John G Cleary. Arithmetic coding for data compression. Communications of the ACM, 30(6):520–540, 1987. \nJiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. arXiv preprint arXiv:1512.06473, 2015. \nSergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016. ",
|
| 1097 |
+
"bbox": [
|
| 1098 |
+
171,
|
| 1099 |
+
85,
|
| 1100 |
+
828,
|
| 1101 |
+
809
|
| 1102 |
+
],
|
| 1103 |
+
"page_idx": 9
|
| 1104 |
+
},
|
| 1105 |
+
{
|
| 1106 |
+
"type": "text",
|
| 1107 |
+
"text": "APPENDIX ",
|
| 1108 |
+
"text_level": 1,
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
176,
|
| 1111 |
+
101,
|
| 1112 |
+
279,
|
| 1113 |
+
118
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 10
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "text",
|
| 1119 |
+
"text": "A REVIEW OF STATE-OF-THE-ART NEURAL NETWORK COMPRESSION ",
|
| 1120 |
+
"text_level": 1,
|
| 1121 |
+
"bbox": [
|
| 1122 |
+
171,
|
| 1123 |
+
136,
|
| 1124 |
+
769,
|
| 1125 |
+
152
|
| 1126 |
+
],
|
| 1127 |
+
"page_idx": 10
|
| 1128 |
+
},
|
| 1129 |
+
{
|
| 1130 |
+
"type": "text",
|
| 1131 |
+
"text": "We apply the compression scheme proposed by Han et al. (2015b;a) that highly optimizes the storage utilized by the weights. First of all, the authors store the weights in regular compressed sparse-row (CSR) format. Instead of storing $| W ^ { ( l ) } |$ parameters with a bit length of (commonly) $p _ { \\mathrm { o r i g } } = 3 2 $ bit, CSR format stores three vectors (A, IR, IC). ",
|
| 1132 |
+
"bbox": [
|
| 1133 |
+
176,
|
| 1134 |
+
167,
|
| 1135 |
+
825,
|
| 1136 |
+
226
|
| 1137 |
+
],
|
| 1138 |
+
"page_idx": 10
|
| 1139 |
+
},
|
| 1140 |
+
{
|
| 1141 |
+
"type": "text",
|
| 1142 |
+
"text": "• A stores all non-zero entries. It is thus of size $| W ^ { ( l ) } | _ { \\neq 0 } \\times p _ { \\mathrm { o r i g } }$ , where $\\vert W ^ { ( l ) } \\vert _ { \\neq 0 }$ is the number of non-zero entries in $W ^ { ( l ) }$ . \n• IR Is defined recursively: $\\mathrm { { I R } _ { 0 } ~ = ~ 0 }$ , $\\mathrm { I R } _ { k } \\ = \\mathrm { I R } _ { k - 1 } +$ (number of non-zero entries in the $( k - 1 )$ -th row of $W ^ { ( l ) }$ ). It got $K + 1$ entries each of size $p _ { \\mathrm { o r i g } }$ . \n• IC contains the column index in $W ^ { ( l ) }$ of each element of A. The size is hence, $| W ^ { ( l ) } | _ { \\neq 0 } \\times$ $p _ { \\mathrm { o r i g } }$ . ",
|
| 1143 |
+
"bbox": [
|
| 1144 |
+
215,
|
| 1145 |
+
236,
|
| 1146 |
+
825,
|
| 1147 |
+
342
|
| 1148 |
+
],
|
| 1149 |
+
"page_idx": 10
|
| 1150 |
+
},
|
| 1151 |
+
{
|
| 1152 |
+
"type": "text",
|
| 1153 |
+
"text": "An example shall illustrate the format, let ",
|
| 1154 |
+
"bbox": [
|
| 1155 |
+
176,
|
| 1156 |
+
352,
|
| 1157 |
+
447,
|
| 1158 |
+
367
|
| 1159 |
+
],
|
| 1160 |
+
"page_idx": 10
|
| 1161 |
+
},
|
| 1162 |
+
{
|
| 1163 |
+
"type": "equation",
|
| 1164 |
+
"img_path": "images/bfbcb93475b8e9cda37b2306194481bb25e92db3d92308748697e55fadd78b30.jpg",
|
| 1165 |
+
"text": "$$\nW ^ { ( l ) } = \\left( \\begin{array} { c c c c } { { 0 } } & { { 0 } } & { { 0 } } & { { 1 } } \\\\ { { 0 } } & { { 2 } } & { { 0 } } & { { 0 } } \\\\ { { 0 } } & { { 0 } } & { { 0 } } & { { 0 } } \\\\ { { 2 } } & { { 5 } } & { { 0 } } & { { 0 } } \\\\ { { 0 } } & { { 0 } } & { { 0 } } & { { 1 } } \\end{array} \\right)\n$$",
|
| 1166 |
+
"text_format": "latex",
|
| 1167 |
+
"bbox": [
|
| 1168 |
+
413,
|
| 1169 |
+
375,
|
| 1170 |
+
584,
|
| 1171 |
+
448
|
| 1172 |
+
],
|
| 1173 |
+
"page_idx": 10
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"type": "text",
|
| 1177 |
+
"text": "than ",
|
| 1178 |
+
"bbox": [
|
| 1179 |
+
173,
|
| 1180 |
+
455,
|
| 1181 |
+
205,
|
| 1182 |
+
469
|
| 1183 |
+
],
|
| 1184 |
+
"page_idx": 10
|
| 1185 |
+
},
|
| 1186 |
+
{
|
| 1187 |
+
"type": "equation",
|
| 1188 |
+
"img_path": "images/8790499479588c28a0dc528565a5d5941bbc03478cbd3966eca7c5f06f5a1b28.jpg",
|
| 1189 |
+
"text": "$$\n\\begin{array} { r } { \\mathbf { A } = [ 1 , 2 , 2 , 5 , 1 ] } \\\\ { \\mathbf { I R } = [ 0 , 1 , 2 , 2 , 4 , 5 ] } \\\\ { \\mathbf { I C } = [ 3 , 1 , 0 , 1 , 3 ] } \\end{array}\n$$",
|
| 1190 |
+
"text_format": "latex",
|
| 1191 |
+
"bbox": [
|
| 1192 |
+
429,
|
| 1193 |
+
476,
|
| 1194 |
+
566,
|
| 1195 |
+
531
|
| 1196 |
+
],
|
| 1197 |
+
"page_idx": 10
|
| 1198 |
+
},
|
| 1199 |
+
{
|
| 1200 |
+
"type": "text",
|
| 1201 |
+
"text": "The compression rate achieved by applying the CSC format naively is ",
|
| 1202 |
+
"bbox": [
|
| 1203 |
+
173,
|
| 1204 |
+
554,
|
| 1205 |
+
632,
|
| 1206 |
+
570
|
| 1207 |
+
],
|
| 1208 |
+
"page_idx": 10
|
| 1209 |
+
},
|
| 1210 |
+
{
|
| 1211 |
+
"type": "equation",
|
| 1212 |
+
"img_path": "images/a21c8320c6f71acbb77b503c76cc8a0ed49481bc91ef5b1e5a7b2f2283151e2e.jpg",
|
| 1213 |
+
"text": "$$\nr _ { p } = \\frac { | W ^ { ( l ) } | } { 2 | W ^ { ( l ) } | \\neq 0 + ( K + 1 ) }\n$$",
|
| 1214 |
+
"text_format": "latex",
|
| 1215 |
+
"bbox": [
|
| 1216 |
+
405,
|
| 1217 |
+
575,
|
| 1218 |
+
593,
|
| 1219 |
+
613
|
| 1220 |
+
],
|
| 1221 |
+
"page_idx": 10
|
| 1222 |
+
},
|
| 1223 |
+
{
|
| 1224 |
+
"type": "text",
|
| 1225 |
+
"text": "However, this result can be significantly improved by optimizing each of the three arrays. ",
|
| 1226 |
+
"bbox": [
|
| 1227 |
+
171,
|
| 1228 |
+
619,
|
| 1229 |
+
758,
|
| 1230 |
+
636
|
| 1231 |
+
],
|
| 1232 |
+
"page_idx": 10
|
| 1233 |
+
},
|
| 1234 |
+
{
|
| 1235 |
+
"type": "text",
|
| 1236 |
+
"text": "A.1 STORING THE INDEX ARRAY IR ",
|
| 1237 |
+
"text_level": 1,
|
| 1238 |
+
"bbox": [
|
| 1239 |
+
176,
|
| 1240 |
+
651,
|
| 1241 |
+
436,
|
| 1242 |
+
666
|
| 1243 |
+
],
|
| 1244 |
+
"page_idx": 10
|
| 1245 |
+
},
|
| 1246 |
+
{
|
| 1247 |
+
"type": "text",
|
| 1248 |
+
"text": "To optimize IR, note that the biggest number in IR is $\\vert W ^ { ( l ) } \\vert _ { \\neq 0 }$ . This number will be much smaller than $2 ^ { p _ { \\mathrm { o r i g } } }$ . Thus one could try to find $p \\in \\mathbf { Z } _ { + }$ such that $| W ^ { ( l ) } | _ { \\neq 0 } < 2 ^ { p _ { \\mathrm { p r u n } } }$ . A codebook would not be necessary. Thus instead of storing $( K + 1 )$ values with $p _ { \\mathrm { o r i g } }$ , we store them with $p _ { \\mathrm { p r u n } }$ depth. ",
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
174,
|
| 1251 |
+
678,
|
| 1252 |
+
825,
|
| 1253 |
+
724
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 10
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "text",
|
| 1259 |
+
"text": "A.2 STORING THE INDEX ARRAY IC ",
|
| 1260 |
+
"text_level": 1,
|
| 1261 |
+
"bbox": [
|
| 1262 |
+
176,
|
| 1263 |
+
741,
|
| 1264 |
+
436,
|
| 1265 |
+
755
|
| 1266 |
+
],
|
| 1267 |
+
"page_idx": 10
|
| 1268 |
+
},
|
| 1269 |
+
{
|
| 1270 |
+
"type": "text",
|
| 1271 |
+
"text": "Instead of storing the indexes, we store the differences between indexes. Thus there is a smaller range of values being used. We further shrink the range of utilized values by filling A with zeros whenever the distance between two non-zero weights extends the span of $2 _ { \\mathrm { p r u n } } ^ { p ^ { \\mathrm { - } } }$ . Han et al. (2015a) propose $\\mathrm { p } = 5$ for fully connected layers and $\\mathtt { p } = 8$ for convolutional layers. An illustration of the process can is shown in Fig. 4. Furthermore, the indexes will be compressed Hoffman encoding. ",
|
| 1272 |
+
"bbox": [
|
| 1273 |
+
174,
|
| 1274 |
+
767,
|
| 1275 |
+
825,
|
| 1276 |
+
838
|
| 1277 |
+
],
|
| 1278 |
+
"page_idx": 10
|
| 1279 |
+
},
|
| 1280 |
+
{
|
| 1281 |
+
"type": "text",
|
| 1282 |
+
"text": "A.3 STORING THE WEIGHT ARRAY A ",
|
| 1283 |
+
"text_level": 1,
|
| 1284 |
+
"bbox": [
|
| 1285 |
+
176,
|
| 1286 |
+
854,
|
| 1287 |
+
442,
|
| 1288 |
+
869
|
| 1289 |
+
],
|
| 1290 |
+
"page_idx": 10
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"type": "text",
|
| 1294 |
+
"text": "In order to minimize the storage occupied by A. We quantize the values of A. Storing indexes in A and a consecutive codebook. Indexing can be improved further by again applying Huffman encoding. ",
|
| 1295 |
+
"bbox": [
|
| 1296 |
+
174,
|
| 1297 |
+
881,
|
| 1298 |
+
823,
|
| 1299 |
+
924
|
| 1300 |
+
],
|
| 1301 |
+
"page_idx": 10
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"type": "image",
|
| 1305 |
+
"img_path": "images/967d05c1ee545bf31e180b6cf4b3b53db00615e1a558cc6d8dbde06265e37d8f.jpg",
|
| 1306 |
+
"image_caption": [
|
| 1307 |
+
"Figure 4: Illustration of the process described in A.2. IC is represented by relative indexes(diff). If the a relative index is larger than $8 ( = 2 ^ { \\bar { 3 } } )$ , A will be filled with an additional zero. Figure from Han et al. (2015a). "
|
| 1308 |
+
],
|
| 1309 |
+
"image_footnote": [],
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
258,
|
| 1312 |
+
103,
|
| 1313 |
+
736,
|
| 1314 |
+
199
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 11
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "text",
|
| 1320 |
+
"text": "B CONFIGURING THE HYPER-PRIORS ",
|
| 1321 |
+
"text_level": 1,
|
| 1322 |
+
"bbox": [
|
| 1323 |
+
173,
|
| 1324 |
+
301,
|
| 1325 |
+
500,
|
| 1326 |
+
319
|
| 1327 |
+
],
|
| 1328 |
+
"page_idx": 11
|
| 1329 |
+
},
|
| 1330 |
+
{
|
| 1331 |
+
"type": "text",
|
| 1332 |
+
"text": "B.1 GAMMA DISTRIBUTION ",
|
| 1333 |
+
"text_level": 1,
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
174,
|
| 1336 |
+
340,
|
| 1337 |
+
383,
|
| 1338 |
+
356
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 11
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "text",
|
| 1344 |
+
"text": "The Gamma distribution is the conjugate prior for the precision of a univariate Gaussian distribution. \nIt is defined for positive random variables $\\lambda > 0$ . ",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
171,
|
| 1347 |
+
372,
|
| 1348 |
+
823,
|
| 1349 |
+
401
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 11
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"type": "equation",
|
| 1355 |
+
"img_path": "images/35f452aa166244032383c71043b272ea6b78cfb5e84bdad053bc49ded8c36c12.jpg",
|
| 1356 |
+
"text": "$$\n\\Gamma ( \\lambda | \\alpha , \\beta ) = \\frac { \\beta ^ { \\alpha } } { \\Gamma ( \\alpha ) } \\lambda ^ { \\alpha - 1 } e ^ { - \\beta \\lambda }\n$$",
|
| 1357 |
+
"text_format": "latex",
|
| 1358 |
+
"bbox": [
|
| 1359 |
+
400,
|
| 1360 |
+
417,
|
| 1361 |
+
598,
|
| 1362 |
+
452
|
| 1363 |
+
],
|
| 1364 |
+
"page_idx": 11
|
| 1365 |
+
},
|
| 1366 |
+
{
|
| 1367 |
+
"type": "text",
|
| 1368 |
+
"text": "For our purposes it is best characterised by its mode $\\lambda ^ { * } = \\frac { \\alpha - 1 } { \\beta }$ and its variance $\\operatorname { v a r } _ { \\gamma } = { \\frac { \\alpha } { \\beta ^ { 2 } } }$ I n our experiments we set the desired variance of the mixture components to 0.05. This corresponds to $\\lambda ^ { * } \\stackrel { - } { = } 1 / ( 0 . 0 5 ) ^ { 2 } = 4 0 0$ . We show the effect of different choices for the variance of the Gamma distribution in Figure 5. ",
|
| 1369 |
+
"bbox": [
|
| 1370 |
+
173,
|
| 1371 |
+
477,
|
| 1372 |
+
826,
|
| 1373 |
+
547
|
| 1374 |
+
],
|
| 1375 |
+
"page_idx": 11
|
| 1376 |
+
},
|
| 1377 |
+
{
|
| 1378 |
+
"type": "image",
|
| 1379 |
+
"img_path": "images/2fedb28eefbd0883b40013cbd6042a6a9179fd6fe06521759b16e872c3976948.jpg",
|
| 1380 |
+
"image_caption": [
|
| 1381 |
+
"Figure 5: Gamma distribution with $\\lambda ^ { * } ~ = ~ 1 0 0$ . $\\alpha$ and $\\beta$ correspond to different choices for the variance of the distribution. "
|
| 1382 |
+
],
|
| 1383 |
+
"image_footnote": [],
|
| 1384 |
+
"bbox": [
|
| 1385 |
+
174,
|
| 1386 |
+
571,
|
| 1387 |
+
821,
|
| 1388 |
+
845
|
| 1389 |
+
],
|
| 1390 |
+
"page_idx": 11
|
| 1391 |
+
},
|
| 1392 |
+
{
|
| 1393 |
+
"type": "text",
|
| 1394 |
+
"text": "B.2 BETA DISTRIBUTION ",
|
| 1395 |
+
"text_level": 1,
|
| 1396 |
+
"bbox": [
|
| 1397 |
+
174,
|
| 1398 |
+
103,
|
| 1399 |
+
362,
|
| 1400 |
+
118
|
| 1401 |
+
],
|
| 1402 |
+
"page_idx": 12
|
| 1403 |
+
},
|
| 1404 |
+
{
|
| 1405 |
+
"type": "text",
|
| 1406 |
+
"text": "The Beta distribution is the conjugate prior for the Bernoulli distribution, thus is often used to represent the probability for a binary event. It is defined for some random variable $\\pi _ { j = 0 } \\in [ 0 , 1 ]$ ",
|
| 1407 |
+
"bbox": [
|
| 1408 |
+
169,
|
| 1409 |
+
131,
|
| 1410 |
+
825,
|
| 1411 |
+
160
|
| 1412 |
+
],
|
| 1413 |
+
"page_idx": 12
|
| 1414 |
+
},
|
| 1415 |
+
{
|
| 1416 |
+
"type": "equation",
|
| 1417 |
+
"img_path": "images/2f3a4c41d5fd42d5491db87b51802adc87f933d5c8c0fbc17a77da1e7df84692.jpg",
|
| 1418 |
+
"text": "$$\n\\mathcal { B } ( \\pi _ { j = 0 } | \\alpha , \\beta ) = \\frac { \\Gamma ( \\alpha + \\beta ) } { \\Gamma ( \\alpha ) \\Gamma ( \\beta ) } ( \\pi _ { j = 0 } ) ^ { \\alpha - 1 } ( 1 - \\pi _ { j = 0 } ) ^ { \\beta - 1 }\n$$",
|
| 1419 |
+
"text_format": "latex",
|
| 1420 |
+
"bbox": [
|
| 1421 |
+
320,
|
| 1422 |
+
169,
|
| 1423 |
+
676,
|
| 1424 |
+
204
|
| 1425 |
+
],
|
| 1426 |
+
"page_idx": 12
|
| 1427 |
+
},
|
| 1428 |
+
{
|
| 1429 |
+
"type": "text",
|
| 1430 |
+
"text": "with $\\alpha , \\beta \\ > \\ 0$ . $\\alpha$ and $\\beta$ can be interpreted as the effective number of observations prior to an experiment, of $\\pi _ { j = 0 } = 1$ and $\\pi _ { j = 0 } = 0$ , respectively. In the literature, $\\alpha + \\beta$ is defined as the pseudo-count. The higher the pseudo-count the stronger the prior. In Figure 6, we show the Beta distribution at constant mode $\\pi _ { j = 0 } ^ { * } = \\frac { \\alpha - 1 } { \\alpha + \\beta - 2 } = 0 . 9$ . Note, that, the beta distribution is a special case of the Dirichlet distribution in a different problem setting it might be better to rely on this distribution to control all $\\pi _ { j }$ . ",
|
| 1431 |
+
"bbox": [
|
| 1432 |
+
173,
|
| 1433 |
+
212,
|
| 1434 |
+
826,
|
| 1435 |
+
311
|
| 1436 |
+
],
|
| 1437 |
+
"page_idx": 12
|
| 1438 |
+
},
|
| 1439 |
+
{
|
| 1440 |
+
"type": "image",
|
| 1441 |
+
"img_path": "images/fb22eba7ee7a7216b148cabc5af0ccbc7462a7dbb5d9204749c1581c7c945cfb.jpg",
|
| 1442 |
+
"image_caption": [
|
| 1443 |
+
"Figure 6: Beta distribution with $\\pi _ { j = 0 } ^ { * } = 0 . 9$ . $\\alpha$ and $\\beta$ correspond to different choices for the pseudocount. "
|
| 1444 |
+
],
|
| 1445 |
+
"image_footnote": [],
|
| 1446 |
+
"bbox": [
|
| 1447 |
+
176,
|
| 1448 |
+
332,
|
| 1449 |
+
818,
|
| 1450 |
+
606
|
| 1451 |
+
],
|
| 1452 |
+
"page_idx": 12
|
| 1453 |
+
},
|
| 1454 |
+
{
|
| 1455 |
+
"type": "text",
|
| 1456 |
+
"text": "C SCALABILITY ",
|
| 1457 |
+
"text_level": 1,
|
| 1458 |
+
"bbox": [
|
| 1459 |
+
174,
|
| 1460 |
+
695,
|
| 1461 |
+
325,
|
| 1462 |
+
712
|
| 1463 |
+
],
|
| 1464 |
+
"page_idx": 12
|
| 1465 |
+
},
|
| 1466 |
+
{
|
| 1467 |
+
"type": "text",
|
| 1468 |
+
"text": "Neural Networks are usually trained with a form of batch gradient decent (GD) algorithm. These methods fall into the umbrella of stochastic optimization (Robbins $\\&$ Monro, 1951). Here the model parameters $\\mathbf { W }$ are updated iteratively. At each iteration $t$ , a set of $B$ data instances is used to compute a noisy approximation of the posterior derivative with respect to $\\mathbf { W }$ given all data instances $N$ . ",
|
| 1469 |
+
"bbox": [
|
| 1470 |
+
174,
|
| 1471 |
+
728,
|
| 1472 |
+
825,
|
| 1473 |
+
785
|
| 1474 |
+
],
|
| 1475 |
+
"page_idx": 12
|
| 1476 |
+
},
|
| 1477 |
+
{
|
| 1478 |
+
"type": "equation",
|
| 1479 |
+
"img_path": "images/1737f741406d56d4c9c8db69a30deb743d7c9b7331c66ddaf6678cc83f185512.jpg",
|
| 1480 |
+
"text": "$$\n\\nabla _ { \\mathbf { W } } \\log p ( \\mathbf { W } | \\mathcal { D } ) = \\frac { N } { B } \\sum _ { n = 1 } ^ { B } \\nabla _ { \\mathbf { W } } \\log p ( \\mathbf { t } _ { n } | \\mathbf { x } _ { n } , \\mathbf { w } ) + \\sum _ { i = 1 } ^ { I } \\nabla _ { \\mathbf { W } } \\log p ( w _ { i } )\n$$",
|
| 1481 |
+
"text_format": "latex",
|
| 1482 |
+
"bbox": [
|
| 1483 |
+
276,
|
| 1484 |
+
794,
|
| 1485 |
+
722,
|
| 1486 |
+
838
|
| 1487 |
+
],
|
| 1488 |
+
"page_idx": 12
|
| 1489 |
+
},
|
| 1490 |
+
{
|
| 1491 |
+
"type": "text",
|
| 1492 |
+
"text": "This gradient approximation can subsequently be used in various update schemes such as simple GD. ",
|
| 1493 |
+
"bbox": [
|
| 1494 |
+
174,
|
| 1495 |
+
845,
|
| 1496 |
+
821,
|
| 1497 |
+
875
|
| 1498 |
+
],
|
| 1499 |
+
"page_idx": 12
|
| 1500 |
+
},
|
| 1501 |
+
{
|
| 1502 |
+
"type": "text",
|
| 1503 |
+
"text": "For large models estimating the prior gradient can be an expensive operation. This is why we propose to apply similar measures for the gradient estimation of the prior as we did for the likelihood term. To do so, we sample $\\mathbf { K }$ weights randomly. The noisy approximation of the posterior derivative is ",
|
| 1504 |
+
"bbox": [
|
| 1505 |
+
174,
|
| 1506 |
+
881,
|
| 1507 |
+
825,
|
| 1508 |
+
924
|
| 1509 |
+
],
|
| 1510 |
+
"page_idx": 12
|
| 1511 |
+
},
|
| 1512 |
+
{
|
| 1513 |
+
"type": "text",
|
| 1514 |
+
"text": "now: ",
|
| 1515 |
+
"bbox": [
|
| 1516 |
+
173,
|
| 1517 |
+
104,
|
| 1518 |
+
209,
|
| 1519 |
+
117
|
| 1520 |
+
],
|
| 1521 |
+
"page_idx": 13
|
| 1522 |
+
},
|
| 1523 |
+
{
|
| 1524 |
+
"type": "equation",
|
| 1525 |
+
"img_path": "images/2b54f177608dd44d454b2d4cca223adeb4466cd15c6907b8ad33741ea0e04c7b.jpg",
|
| 1526 |
+
"text": "$$\n\\nabla _ { \\mathbf { W } } \\log p ( \\mathbf { W } | \\mathcal { D } ) = \\frac { N } { B } \\sum _ { n = 1 } ^ { B } \\nabla _ { \\mathbf { w } } \\log p ( \\mathbf { t } _ { n } | \\mathbf { x } _ { n } , \\mathbf { w } ) + \\frac { I } { K } \\sum _ { i = 1 } ^ { K } \\nabla _ { \\mathbf { w } } \\log p ( w _ { i } )\n$$",
|
| 1527 |
+
"text_format": "latex",
|
| 1528 |
+
"bbox": [
|
| 1529 |
+
264,
|
| 1530 |
+
122,
|
| 1531 |
+
733,
|
| 1532 |
+
166
|
| 1533 |
+
],
|
| 1534 |
+
"page_idx": 13
|
| 1535 |
+
},
|
| 1536 |
+
{
|
| 1537 |
+
"type": "text",
|
| 1538 |
+
"text": "D FILTER VISUALISATION ",
|
| 1539 |
+
"text_level": 1,
|
| 1540 |
+
"bbox": [
|
| 1541 |
+
174,
|
| 1542 |
+
181,
|
| 1543 |
+
408,
|
| 1544 |
+
198
|
| 1545 |
+
],
|
| 1546 |
+
"page_idx": 13
|
| 1547 |
+
},
|
| 1548 |
+
{
|
| 1549 |
+
"type": "text",
|
| 1550 |
+
"text": "In Figure D we show the pre-trained and compressed filters for the first and second layers of LeNet5-Caffe. For some of the feature maps from layer 2 seem to be redundant hence the almost empty columns. In Figure D we show the pre-trained and compressed filters for the first and second layers of LeNet-300-100. ",
|
| 1551 |
+
"bbox": [
|
| 1552 |
+
173,
|
| 1553 |
+
213,
|
| 1554 |
+
823,
|
| 1555 |
+
268
|
| 1556 |
+
],
|
| 1557 |
+
"page_idx": 13
|
| 1558 |
+
},
|
| 1559 |
+
{
|
| 1560 |
+
"type": "image",
|
| 1561 |
+
"img_path": "images/2d79616dc4994d71c20571be67f8d8cf0e2083ec9b4c242efabdf8774c606032.jpg",
|
| 1562 |
+
"image_caption": [
|
| 1563 |
+
"Figure 7: Convolution filters from LeNet-5-Caffe. Left: Pre-trained filters. Right: Compressed filters. The top filters are the 20 first layer convolution weights; the bottom filters are the 20 by 50 convolution weights of the second layer. "
|
| 1564 |
+
],
|
| 1565 |
+
"image_footnote": [],
|
| 1566 |
+
"bbox": [
|
| 1567 |
+
186,
|
| 1568 |
+
196,
|
| 1569 |
+
797,
|
| 1570 |
+
776
|
| 1571 |
+
],
|
| 1572 |
+
"page_idx": 14
|
| 1573 |
+
},
|
| 1574 |
+
{
|
| 1575 |
+
"type": "image",
|
| 1576 |
+
"img_path": "images/d76996240a46681f55f0e1b612c41b39ea04f303b875a74effbeff5ef9fd1f26.jpg",
|
| 1577 |
+
"image_caption": [
|
| 1578 |
+
"Figure 8: Feature filters for LeNet-300-100. Left: Pre-trained filters. Right: Compressed filters. "
|
| 1579 |
+
],
|
| 1580 |
+
"image_footnote": [],
|
| 1581 |
+
"bbox": [
|
| 1582 |
+
230,
|
| 1583 |
+
193,
|
| 1584 |
+
485,
|
| 1585 |
+
794
|
| 1586 |
+
],
|
| 1587 |
+
"page_idx": 15
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"type": "image",
|
| 1591 |
+
"img_path": "images/7ecb0ba3ec00310a1cdf97893c7d3ec5e1e886c75fb0891f197f03a357b0b852.jpg",
|
| 1592 |
+
"image_caption": [],
|
| 1593 |
+
"image_footnote": [],
|
| 1594 |
+
"bbox": [
|
| 1595 |
+
547,
|
| 1596 |
+
193,
|
| 1597 |
+
802,
|
| 1598 |
+
787
|
| 1599 |
+
],
|
| 1600 |
+
"page_idx": 15
|
| 1601 |
+
}
|
| 1602 |
+
]
|
parse/train/HJGwcKclx/HJGwcKclx_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HJGwcKclx/HJGwcKclx_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HkuVu3ige/HkuVu3ige.md
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ON ORTHOGONALITY AND LEARNING RECURRENTNETWORKS WITH LONG TERM DEPENDENCIES
|
| 2 |
+
|
| 3 |
+
Eugene Vorontsov 1,2, Chiheb Trabelsi 1,2, Samuel Kadoury 1,3, Chris Pal 1,2
|
| 4 |
+
|
| 5 |
+
1 Ecole Polytechnique de Montr ´ eal, Montr ´ eal, Canada ´ 2 Montreal Institute for Learning Algorithms, Montreal, Canada ´ 3 CHUM Research Center, Montreal, Canada ´ {eugene.vorontsov, chiheb.trabelsi, samuel.kadoury, christopher.pal}@polymtl.ca
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
It is well known that it is challenging to train deep neural networks and recurrent neural networks for tasks that exhibit long term dependencies. The vanishing or exploding gradient problem is a well known issue associated with these challenges. One approach to addressing vanishing and exploding gradients is to use either soft or hard constraints on weight matrices so as to encourage or enforce orthogonality. Orthogonal matrices preserve gradient norm during backpropagation and can therefore be a desirable property; however, we find that hard constraints on orthogonality can negatively affect the speed of convergence and model performance. This paper explores the issues of optimization convergence, speed and gradient stability using a variety of different methods for encouraging or enforcing orthogonality. In particular we propose a weight matrix factorization and parameterization strategy through which we can bound matrix norms and therein control the degree of expansivity induced during backpropagation.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
The depth of deep neural networks confers representational power, but also makes model optimization more challenging. Training deep networks with gradient descent based methods is known to be difficult as a consequence of the vanishing and exploding gradient problem (Hochreiter & Schmidhuber, 1997). Typically, exploding gradients are avoided by clipping large gradients (Pascanu et al., 2013) or introducing an $L _ { 2 }$ or $L _ { 1 }$ weight norm penalty. The latter has the effect of bounding the spectral radius of the linear transformations, thus limiting the maximal gain across the transformation. Krueger & Memisevic (2015) attempt to stabilize the norm of propagating signals directly by penalizing differences in successive norm pairs in the forward pass and Pascanu et al. (2013) propose to penalize successive gradient norm pairs in the backward pass. These regularizers affect the network parameterization with respect to the data instead of penalizing weights directly.
|
| 14 |
+
|
| 15 |
+
Both expansivity and contractivity of linear transformations can also be limited by more tightly bounding their spectra. By limiting the transformations to be orthogonal, their singular spectra are limited to unitary gain causing the transformations to be norm-preserving. Le et al. (2015) and Henaff et al. (2016) have respectively shown that identity initialization and orthogonal initialization can be beneficial. Arjovsky et al. (2015) have gone beyond initialization, building unitary recurrent neural network (RNN) models with transformations that are unitary by construction which they achieved by composing multiple basic unitary transformations. The resulting transformations, for some n-dimensional input, cover only some subset of possible $n \times n$ unitary matrices but appear to perform well on simple tasks and have the benefit of having low complexity in memory and computation.
|
| 16 |
+
|
| 17 |
+
The entire set of possible unitary or orthogonal parameterizations forms the Stiefel manifold. At a much higher computational cost, gradient descent optimization directly along this manifold can be done via geodesic steps (Nishimori, 2005; Tagare, 2011). Recent work (Wisdom et al., 2016) has proposed the optimization of unitary matrices along the Stiefel manifold using geodesic gradient descent. To produce a full-capacity parameterization for unitary matrices they use some insights from Tagare (2011), combining the use of a canonical inner products and Cayley transformations. Their experimental work indicates that full capacity unitary RNN models can solve the copy memory problem whereas both LSTM networks and restricted capacity unitary RNN models having similar complexity appear unable to solve the task for a longer sequence length ( $T = 2 0 0 0$ ).
|
| 18 |
+
|
| 19 |
+
In contrast, here we explore the optimization of real valued matrices within a configurable margin about the Stiefel manifold. We suspect that a strong constraint of orthogonality limits the model’s representational power, hindering its performance, and may make optimization more difficult. We explore this hypothesis empirically by employing a factorization technique that allows us to limit the degree of deviation from the Stiefel manifold. While we use geodesic gradient descent, we simultaneously update the singular spectra of our matrices along Euclidean steps, allowing optimization to step away from the manifold while still curving about it.
|
| 20 |
+
|
| 21 |
+
# 1.1 VANISHING AND EXPLODING GRADIENTS
|
| 22 |
+
|
| 23 |
+
The issue of vanishing and exploding gradients as it pertains to the parameterization of neural networks can be illuminated by looking at the gradient back-propagation chain through a network.
|
| 24 |
+
|
| 25 |
+
A neural network with $n$ hidden layers has pre-activations
|
| 26 |
+
|
| 27 |
+
$$
|
| 28 |
+
\mathbf { a } _ { i } ( \mathbf { h } _ { i - 1 } ) = \mathbf { W } _ { i } \mathbf { \ h } _ { i - 1 } + \mathbf { \ b } _ { i } , \ i \in \{ 2 , \cdots , n \}
|
| 29 |
+
$$
|
| 30 |
+
|
| 31 |
+
For notational convenience, we combine parameters $\mathbf { W } _ { i }$ and $\mathbf { b } _ { i }$ to form an affine matrix θ. We can see that for some loss function $L$ at layer $n$ , the derivative with respect to parameters $\theta _ { i }$ is:
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
\frac { \partial { \cal L } } { \partial \Theta _ { i } } = \frac { \partial { \bf a } _ { n + 1 } } { \partial \Theta _ { i } } \frac { \partial { \cal L } } { \partial { \bf a } _ { n + 1 } }
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
The partial derivatives for the pre-activations can be decomposed as follows:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array} { r l r } { { \frac { \partial \mathbf { a } _ { i + 1 } } { \partial \mathbf { \boldsymbol { \Theta } } _ { i } } = \frac { \partial \mathbf { a } _ { i } } { \partial \mathbf { \boldsymbol { \Theta } } _ { i } } \frac { \partial \mathbf { h } _ { i } } { \partial \mathbf { a } _ { i } } \frac { \partial \mathbf { a } _ { i + 1 } } { \partial \mathbf { h } _ { i } } } } \\ & { } & { = \frac { \partial \mathbf { a } _ { i } } { \partial \mathbf { \boldsymbol { \Theta } } _ { i } } \mathbf { \boldsymbol { D } } _ { i } \mathbf { \boldsymbol { W } } _ { i + 1 } \to \frac { \partial \mathbf { a } _ { i + 1 } } { \partial \mathbf { a } _ { i } } = \mathbf { \boldsymbol { D } } _ { i } \mathbf { \boldsymbol { W } } _ { i + 1 } , } \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+
where $\mathbf { D _ { i } }$ is the Jacobian corresponding to the activation function, containing partial derivatives of the hidden units at layer $i + 1$ with respect to the pre-activation inputs. Typically, $\mathbf { D }$ is diagonal. Following the above, the gradient in equation 2 can be fully decomposed into a recursive chain of matrix products:
|
| 44 |
+
|
| 45 |
+
$$
|
| 46 |
+
\frac { \partial L } { \partial \pmb { \theta } _ { i } } = \frac { \partial \mathbf { a } _ { i } } { \partial \pmb { \theta } _ { i } } \prod _ { j = i } ^ { n } ( \mathbf { D } _ { j } \mathbf { W } _ { j + 1 } ) \frac { \partial L } { \partial \mathbf { a } _ { n + 1 } }
|
| 47 |
+
$$
|
| 48 |
+
|
| 49 |
+
In (Pascanu et al., 2013), it is shown that the 2-norm of $\frac { \partial \mathbf { a } _ { i + 1 } } { \partial \mathbf { a } _ { i } }$ is bounded by the product of the norms of the non-linearity’s Jacobian and transition matrix at time $t$ (layer $i$ ), as follows:
|
| 50 |
+
|
| 51 |
+
$$
|
| 52 |
+
\left\| \frac { \partial \mathbf { a } _ { t + 1 } } { \partial \mathbf { a } _ { t } } \right\| \leq \left\| \mathbf { D } _ { t } \right\| \left\| \mathbf { W } _ { t } \right\| \leq \lambda _ { \mathbf { D } _ { t } } \lambda _ { \mathbf { W } _ { t } } = \eta _ { t } ,
|
| 53 |
+
$$
|
| 54 |
+
|
| 55 |
+
where $\lambda _ { \mathbf { D } _ { t } }$ and $\lambda _ { \mathbf { W } _ { t } }$ are the largest singular values of the non-linearity’s Jacobian $\mathbf { D } _ { t }$ and the transition matrix $\mathbf { W } _ { t }$ . In RNNs, $\mathbf { W } _ { t }$ is shared across time and can be simply denoted as $\mathbf { W }$ .
|
| 56 |
+
|
| 57 |
+
Equation 5 shows that the gradient can grow or shrink at each layer depending on the gain of each layer’s linear transformation $\mathbf { W }$ and the gain of the Jacobian $\mathbf { D }$ . The gain caused by each layer is magnified across all time steps or layers. It is easy to have extreme amplification in a recurrent neural network where $\mathbf { W }$ is shared across time steps and a non-unitary gain in W is amplified exponentially. The phenomena of extreme growth or contraction of the gradient across time steps or layers are known as the exploding and the vanishing gradient problems, respectively. It is sufficient for RNNs to have $\eta _ { t } \leq 1$ at each time $t$ to enable the possibility of vanishing gradients, typically for some large number of time steps $T$ . The rate at which a gradient (or forward signal) vanishes depends on both the parameterization of the model and on the input data. The parameterization may be conditioned by placing appropriate constraints on W. It is worth keeping in mind that the Jacobian $\mathbf { D }$ is typically contractive, thus tending to be norm-reducing) and is also data-dependent, whereas W can vary from being contractive to norm-preserving, to expansive and applies the same gain on the forward signal as on the back-propagated gradient signal.
|
| 58 |
+
|
| 59 |
+
# 2 OUR APPROACH
|
| 60 |
+
|
| 61 |
+
Vanishing and exploding gradients can be controlled to a large extent by controlling the maximum and minimum gain of $\mathbf { W }$ . The maximum gain of a matrix $\mathbf { W }$ is given by the spectral norm which is given by
|
| 62 |
+
|
| 63 |
+
$$
|
| 64 |
+
| | \mathbf { W } | | _ { 2 } = \operatorname* { m a x } \left[ \frac { | | \mathbf { W } \mathbf { x } | | } { | | \mathbf { x } | | } \right] .
|
| 65 |
+
$$
|
| 66 |
+
|
| 67 |
+
By keeping our weight matrix W close to orthogonal, one can ensure that it is close to a normpreserving transformation (where the spectral norm is equal to one, but the minimum gain is also one). One way to achieve this is via a simple soft constraint or regularization term of the form:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
\lambda \sum _ { i } | | \mathbf { W } _ { i } ^ { T } \mathbf { W } _ { i } - \mathbf { I } | | ^ { 2 } .
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
However, it is possible to formulate a more direct parameterization or factorization for W which permits hard bounds on the amount of expansion and contraction induced by W. This can be achieved by simply parameterizing $\mathbf { W }$ according to its singular value decomposition, which consists of the composition of orthogonal basis matrices $\mathbf { U }$ and $\mathbf { V }$ with a diagonal spectral matrix S containing the singular values which are real and positive by definition. We have
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\mathbf { W } = \mathbf { U } \mathbf { S } \mathbf { V } ^ { T } .
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
Since the spectral norm or maximum gain of a matrix is equal to its largest singular value, this decomposition allows us to control the maximum gain or expansivity of the weight matrix by controlling the magnitude of the largest singular value. Similarly, the minimum gain or contractivity of a matrix can be obtained from the minimum singular value.
|
| 80 |
+
|
| 81 |
+
We can keep the bases $\mathbf { U }$ and $\mathbf { V }$ orthogonal via geodesic gradient descent along the set of weights that satisfy $\mathbf { \dot { U } } ^ { T } \mathbf { U } = \mathbf { I }$ and $\mathbf { V } ^ { T } \mathbf { V } = \mathbf { I }$ respectively. The submanifolds that satisfy these constraints are called Stiefel manifolds. We discuss how this is achieved in more detail below, then discuss our construction for bounding the singular values.
|
| 82 |
+
|
| 83 |
+
During optimization, in order to maintain the orthogonality of an orthogonally-initialized matrix M, i.e. where $\mathbf { M } = \mathbf { U }$ , $\mathbf { M } = \mathbf { V }$ or $\mathbf { M } = \mathbf { W }$ if so desired, we employ a Cayley transformation of the update step onto the Stiefel manifold of (semi-)orthogonal matrices, as in Nishimori (2005) and Tagare (2011). Given an orthogonally-initialized parameter matrix $\mathbf { M }$ and its Jacobian, $\mathbf { G }$ with respect to the objective function, an update is performed as follows:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\begin{array} { l } { \mathbf { A } = \mathbf { G } \mathbf { M } ^ { T } - \mathbf { M } \mathbf { G } ^ { T } } \\ { \mathbf { M } _ { n e w } = \mathbf { M } + ( \mathbf { I } + \frac { \eta } { 2 } \mathbf { A } ) ^ { - 1 } ( \mathbf { I } - \frac { \eta } { 2 } \mathbf { A } ) , } \end{array}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where $\mathbf { A }$ is a skew-symmetric matrix (that depends on the Jacobian and on the parameter matrix) which is mapped to an orthogonal matrix via a Cayley transform and $\eta$ is the learning rate.
|
| 90 |
+
|
| 91 |
+
While the update rule in (9) allows us to maintain an orthogonal hidden to hidden transition matrix W if desired, we are interested in exploring the effect of stepping away from the Stiefel manifold. As such, we parameterize the transition matrix W in factorized form, as a singular value decomposition with orthogonal bases $\mathbf { U }$ and $\mathbf { V }$ updated by geodesic gradient descent using the Cayley transform approach above.
|
| 92 |
+
|
| 93 |
+
If W is an orthogonal matrix, the singular values in the diagonal matrix S are all equal to one. However, in our formulation we allow these singular values to deviate from one and employ a sigmoidal parameterization to apply a hard constraint on the maximum and minimum amount of deviation. Specifically, we define a margin $m$ around 1 within which the singular values must lie. This is achieved with the parameterization
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
s _ { i } = 2 m ( \sigma ( p _ { i } ) - 0 . 5 ) + 1 , \qquad s _ { i } \in \{ \mathrm { d i a g } ( \mathbf { S } ) \} , \ m \in [ 0 , \ 1 ] .
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
The singular values are thus restricted to the range $[ 1 - m , 1 + m ]$ and the underlying parameters $p _ { i }$ are updated freely via stochastic gradient descent. Note that this parameterization strategy also has implications on the step sizes that gradient descent based optimization will take when updating the singular values – they tend to be smaller compared to models with no margin constraining their values. Specifically, a singular value’s progression toward a margin is slowed the closer it is to the margin. The sigmoidal parameterization can also impart another effect on the step size along the spectrum which needs to be accounted for. Considering 10, the gradient backpropagation of some loss $L$ toward parameters $p _ { i }$ is found as
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\frac { d L } { d p _ { i } } = \frac { d s _ { i } } { d p _ { i } } \frac { d L } { d s _ { i } } = 2 m \frac { d \sigma ( p _ { i } ) } { d p _ { i } } \frac { d L } { d s _ { i } } .
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
From (11), it can be seen that the magnitude of the update step for $p _ { i }$ is scaled by the margin hyperparameter $m$ . This means for example that for margins less than one, the effective learning rate for the spectrum is reduced in proportion to the margin. Consequently, we adjust the learning rate along the spectrum to be independent of the margin by renormalizing it by ${ \it 2 m }$ .
|
| 106 |
+
|
| 107 |
+
This margin formulation both guarantees singular values lie within a well defined range and slows deviation from orthogonality. Alternatively, one could enforce the orthogonality of $\mathbf { U }$ and $\mathbf { V }$ and impose a regularization term corresponding to a mean one Gaussian prior on these singular values. This encourages the weight matrix W to be norm preserving with a controllable strength equivalent to the variance of the Gaussian. We also explore this approach further below.
|
| 108 |
+
|
| 109 |
+
# 3 EXPERIMENTS
|
| 110 |
+
|
| 111 |
+
In this section, we explore hard and soft orthogonality constraints on factorized weight matrices for recurrent neural network hidden to hidden transitions. With hard orthogonality constraints on $\mathbf { U }$ and $\mathbf { V }$ , we investigate the effect of widening the spectral margin or bounds on convergence and performance. Loosening these bounds allows increasingly larger margins within which the transition matrix W can deviate from orthogonality. We confirm that orthogonal initialization is useful as noted in Henaff et al. (2016), and we show that although strict orthogonality guarantees stable gradient norm, loosening orthogonality constraints can increase the rate of gradient descent convergence. We begin our analyses on tasks that are designed to stress memory: a sequence copying task and a basic addition task (Hochreiter & Schmidhuber, 1997). We then move on to tasks on real data that require models to capture long-range dependencies: digit classification based on sequential and permuted MNIST vectors (Le et al., 2015; LeCun et al., 1998). Finally, we look at a basic language modeling task using the Penn Treebank dataset (Marcus et al., 1993).
|
| 112 |
+
|
| 113 |
+
The copy and adding tasks, introduced by Hochreiter & Schmidhuber (1997), are synthetic benchmarks with pathologically hard long distance dependencies that require long-term memory in models. The copy task consists of an input sequence that must be remembered by the network, followed by a series of blank inputs terminated by a delimiter that denotes the point at which the network must begin to output a copy of the initial sequence. We use an input sequence of $T + 2 0$ elements that begins with a sub-sequence of 10 elements to copy, each containing a symbol $a _ { i } \in \{ a _ { 1 } , . . . , a _ { p } \}$ out of $p = \delta$ possible symbols. This sub-sequence is followed by $T - 1$ elements of the blank category $a _ { \theta }$ which is terminated at step $T$ by a delimiter symbol $a _ { p + 1 }$ and 10 more elements of the blank category. The network must learn to remember the initial 10 element sequence for $T$ time steps and output it after receiving the delimiter symbol.
|
| 114 |
+
|
| 115 |
+
The goal of the adding task is to add two numbers together after a long delay. Each number is randomly picked at a unique position in a sequence of length $T$ . The sequence is composed of $T$ values sampled from a uniform distribution in the range $[ 0 , 1 )$ , with each value paired with an indicator value that identifies the value as one of the two numbers to remember (marked 1) or as a value to ignore (marked 0). The two numbers are positioned randomly in the sequence, the first in the range $[ 0 , \frac { T } { 2 } - 1 ]$ and the second in the range $\begin{array} { r l r } { { [ \frac { T } { 2 } , T - 1 ] } } \end{array}$ , where 0 marks the first element. The network must learn to identify and remember the two numbers and output their sum.
|
| 116 |
+
|
| 117 |
+
The sequential MNIST task from Le et al. (2015), MNIST digits are flattened into vectors that can be traversed sequentially by a recurrent neural network. The goal is to classify the digit based on the sequential input of pixels. The simple variant of this task is with a simple flattening of the image matrices; the harder variant of this task includes a random permutation of the pixels in the input vector that is determined once for an experiment. The latter formulation introduces longer distance dependencies between pixels that must be interpreted by the classification model.
|
| 118 |
+
|
| 119 |
+
The English Penn Treebank (PTB) dataset from Marcus et al. (1993) is an annotated corpus of English sentences, commonly used for benchmarking language models. We employ a sequential character prediction task: given a sentence, a recurrent neural network must predict the next character at each step, from left to right. We use input sequences of variable length, with each sequence containing one sentence. We model 49 characters including lowercase letters (all strings are in lowercase), numbers, common punctuation, and an unknown character placeholder. In our experiments on two subsets of the data: in the first, we first use $23 \%$ of the data with strings with up to 75 characters and in the second we include over $9 9 \%$ of the dataset, picking strings with up to 300 characters.
|
| 120 |
+
|
| 121 |
+
# 3.1 LOOSENING HARD ORTHOGONALITY CONSTRAINTS
|
| 122 |
+
|
| 123 |
+
In this section, we experimentally explore the effect of loosening hard orthogonality constraints through loosening the spectral margin defined above for the hidden to hidden transition matrix.
|
| 124 |
+
|
| 125 |
+
In all experiments, we employed RMSprop (Tieleman & Hinton, 2012) when not using geodesic gradient descent. We used minibatches of size 50 and for generated data (the copy and adding tasks), we assumed an epoch length of 100 minibatches. We cautiously introduced gradient clipping at magnitude 100 (unless stated otherwise) in all of our RNN experiments although it may not be required and we consistently applied a small weight decay of 0.0001. Unless otherwise specified, we trained all simple recurrent neural networks with the hidden to hidden matrix factorization as in (8) using geodesic gradient descent on the bases (learning rate $1 0 ^ { - 6 }$ ) and RMSprop on the other parameters (learning rate 0.0001), using a tanh transition nonlinearity, and clipping gradients of 100 magnitude. The neural network code was built on the Theano framework (Theano Development Team, 2016). When parameterizing a matrix in factorized form, we apply the weight decay on the composite matrix rather than on the factors in order to be consistent across experiments. For MNIST and PTB, test set metrics were computed based on the parameterization that gave the best validation set accuracy.
|
| 126 |
+
|
| 127 |
+
# 3.1.1 CONVERGENCE ON SYNTHETIC MEMORY TASKS
|
| 128 |
+
|
| 129 |
+
For different sequence lengths $T$ of the copy and adding tasks, we trained a factorized RNN with 128 hidden units and various spectral margins $m$ . For the copy task, we used Elman networks without a transition non-linearity as in Henaff et al. (2016). We discuss our investigations into the use of a non-linearity on the copy task in the Appendix.
|
| 130 |
+
|
| 131 |
+
As shown in Figure 1 we see an increase in the rate of convergence as we increase the spectral margin. This observation generally holds across the tested sequence lengths ( $T = 2 0 0$ , $T \stackrel { = } { = } 5 0 0$ , $T = 1 0 0 0 , \ T = 1 0 0 0 0 )$ ; however, large spectral margins hinder convergence on extremely long sequence lengths. At sequence length $T = 1 0 0 0 0$ , parameterizations with spectral margins larger than 0.001 converge slower than when using a margin of 0.001. In addition, the experiment without a margin failed to converge on the longest sequence length. This follows the expected pattern where stepping away from the Stiefel manifold may help with gradient descent optimization but loosening orthogonality constraints can reduce the stability of signal propagation through the network.
|
| 132 |
+
|
| 133 |
+
For the adding task, we trained a factorized RNN on $T = 1 0 0 0$ length sequences, using a ReLU activation function on the hidden to hidden transition matrix. The mean squared error (MSE) is shown for different spectral margins in Figure 5 in the Appendix. Testing spectral margins $m = 0$ , $m = 1 , \ m = 1 0 , \ m = 1 0 0$ , and no margin, we find that the models with the purely orthogonal ( $\mathrm { ~ m ~ } = 0$ ) and the unconstrained (no margin) transition matrices failed to begin converging beyond baseline MSE within 2000 epochs.
|
| 134 |
+
|
| 135 |
+

|
| 136 |
+
Figure 1: Accuracy curves on the copy task for sequence lengths of (from left to right) ${ \mathrm { T } } { = } 2 0 0$ , $\mathrm { T } { = } 5 0 0$ , $\scriptstyle \mathrm { T = 1 0 0 0 }$ , $\scriptstyle \mathrm { T = 1 0 0 0 0 }$ given different spectral margins. Convergence speed increases with margin size; however, large margin sizes are ineffective at longer sequence lengths $\mathrm { { T } = 1 0 0 0 0 }$ , right).
|
| 137 |
+
|
| 138 |
+
Table 1: Ordered sequential MNIST classification with different margin sizes and an LSTM.
|
| 139 |
+
|
| 140 |
+
<table><tr><td>margin</td><td>initialization</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal</td><td>77.18</td></tr><tr><td>0.001</td><td>orthogonal</td><td>79.26</td></tr><tr><td>0.01</td><td>orthogonal</td><td>85.47</td></tr><tr><td>0.1</td><td>orthogonal</td><td>94.10</td></tr><tr><td>1</td><td>orthogonal</td><td>93.84</td></tr><tr><td>none</td><td>orthogonal</td><td>93.24</td></tr><tr><td>none</td><td>Glorot normal</td><td>66.71</td></tr><tr><td>none</td><td>identity</td><td>53.53</td></tr><tr><td></td><td>LSTM</td><td>97.30</td></tr></table>
|
| 141 |
+
|
| 142 |
+
Table 2: Permuted sequential MNIST classification with different margin sizes and an LSTM.
|
| 143 |
+
|
| 144 |
+
<table><tr><td>margin</td><td>initialization</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal</td><td>83.56</td></tr><tr><td>0.001 0.01</td><td>orthogonal</td><td>84.59 89.63</td></tr><tr><td>0.1</td><td>orthogonal orthogonal</td><td>91.44</td></tr><tr><td>1</td><td>orthogonal</td><td>90.83</td></tr><tr><td>none</td><td>orthogonal</td><td>90.51</td></tr><tr><td>none</td><td>Glorot normal</td><td>79.33</td></tr><tr><td>none</td><td>identity</td><td></td></tr><tr><td></td><td>LSTM</td><td>42.72 92.62</td></tr></table>
|
| 145 |
+
|
| 146 |
+
# 3.1.2 PERFORMANCE ON REAL DATA
|
| 147 |
+
|
| 148 |
+
Having confirmed that an orthogonality constraint can negatively impact convergence rate, we seek to investigate the effect on model performance for tasks on real data. We show the results of experiments on permuted sequential MNIST in Table 2 and ordered sequential MNIST in Table 1. The loss curves are shown in Figure 6 in the Appendix and reveal an increased convergence rate for larger spectral margins. We trained the factorized RNN models with 128 hidden units for 120 epochs. We also trained an LSTM with 128 hidden units on both tasks for 150 epochs, configured with peephole connections, orthogonally initialized (and forget gate bias initialized to one), and trained with RMSprop (learning rate 0.0001, clipping gradients of magnitude 1).
|
| 149 |
+
|
| 150 |
+
We show the results of experiments on PTB character prediction, in terms of bits per character (bpc) and prediction accuracy, for a subset of short sequences (up to 75 characters; $23 \%$ of data) in Table 3 and for a subset of long sequences (up to 300 characters; $9 9 \%$ of data) in Table 4. We trained factorized RNN models with 512 hidden units for 200 epochs with geodesic gradient descent on the bases (learning rate $1 0 ^ { - 6 }$ ) and RMSprop on the other parameters (learning rate 0.001), using a tanh transition nonlinearity, and clipping gradients of 30 magnitude.
|
| 151 |
+
|
| 152 |
+
Interestingly, for both the ordered and permuted sequential MNIST tasks, models with a non-zero margin significantly outperform those that are constrained to have purely orthogonal transition matrices (margin of zero). The best results on both the ordered and sequential MNIST tasks were yielded by models with a spectral margin of 0.1, at $9 4 . 1 0 \%$ accuracy and $9 1 . 4 4 \%$ accuracy, respectively. An LSTM outperformed the RNNs in both tasks; nevertheless, RNNs with hidden to hidden transitions initialized as orthogonal matrices performed admirably without a memory component and without all of the additional parameters associated with gates. Indeed, orthogonally initialized RNNs performed almost on par with the LSTM in the permuted sequential MNIST task which presents longer distance dependencies than the ordered task. Although the optimal margin appears to be 0.1, RNNs with large margins perform almost identically to an RNN without a margin, as long as the transition matrix is initialized as orthogonal. On these tasks, orthogonal initialization appears to significantly outperform Glorot normal initialization (Glorot & Bengio, 2010) or initializing the matrix as identity. It is interesting to note that for the MNIST tasks, orthogonal initialization appears useful while orthogonality constraints appear mainly detrimental. This suggests that while orthogonality helps early training by stabilizing gradient flow across many time steps, orthogonality constraints may need to be loosened on some tasks so as not to over-constrain the model’s representational ability.
|
| 153 |
+
|
| 154 |
+
Table 3: Character prediction on PTB sentences of to 75 characters, using different margins.
|
| 155 |
+
|
| 156 |
+
<table><tr><td>margin</td><td>initialization</td><td>bpc</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal</td><td>2.16</td><td>55.31</td></tr><tr><td>0.01</td><td>orthogonal</td><td>2.16</td><td>55.33</td></tr><tr><td>0.1</td><td>orthogonal</td><td>2.12</td><td>55.37</td></tr><tr><td>1</td><td>orthogonal</td><td>2.06</td><td>57.07</td></tr><tr><td>100</td><td>orthogonal</td><td>2.04</td><td>57.51</td></tr><tr><td>none</td><td>orthogonal</td><td>2.06</td><td>57.38</td></tr><tr><td>none</td><td>Glorot normal</td><td>2.08</td><td>57.37</td></tr><tr><td>none</td><td>identity</td><td>2.25</td><td>53.83</td></tr></table>
|
| 157 |
+
|
| 158 |
+
Table 4: Character prediction on PTB sentences of up to 300 characters, using different margins.
|
| 159 |
+
|
| 160 |
+
<table><tr><td>margin</td><td>initialization bpc</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal 2.20</td><td>54.88</td></tr><tr><td>0.01</td><td>orthogonal 2.20</td><td>54.83</td></tr><tr><td>0.1</td><td>orthogonal 2.24</td><td>54.10</td></tr><tr><td>1</td><td>orthogonal 2.36</td><td>51.12</td></tr><tr><td>100</td><td>orthogonal 2.36</td><td>51.20</td></tr><tr><td>none</td><td>orthogonal 2.34</td><td>51.30</td></tr><tr><td>none</td><td>Glorot normal 2.34</td><td>51.04</td></tr><tr><td>none</td><td>identity 2.68</td><td>45.35</td></tr></table>
|
| 161 |
+
|
| 162 |
+
Curiously, larger margins and even models without sigmoidal constraints on the spectrum (no margin) performed well as long as they were initialized to be orthogonal, suggesting that evolution away from orthogonality is not a serious problem on MNIST. It is not surprising that orthogonality is useful for the MNIST tasks since they depend on long distance signal propagation with a single output at the end of the input sequence. On the other hand, character prediction with PTB produces an output at every time step. Constraining deviation from orthogonality proved detrimental for short sentences (Table 3) and beneficial when long sentences were included (Table 4). Furthermore, Glorot normal initialization did not perform worse than orthogonal initialization for PTB. Since an output is generated for every character in a sentence, short distance signal propagation is possible. Thus it is possible that the RNN is first learning very local dependencies between neighbouring characters and that given enough context, constraining deviation from orthogonality can help force the network to learn longer distance dependencies.
|
| 163 |
+
|
| 164 |
+
# 3.1.3 SPECTRAL AND GRADIENT EVOLUTION
|
| 165 |
+
|
| 166 |
+
It is interesting to note that even long sequence lengths $( \mathrm { T } { = } 1 0 0 0 )$ ) in the copy task can be solved efficiently with rather large margins on the spectrum. In Figure 2 we look at the gradient propagation of the loss from the last time step in the network with respect to the hidden activations. We can see that for a purely orthogonal parameterization of the transition matrix (when the margin is zero), the gradient norm is preserved across time steps, as expected. We further observe that with increasing margin size, the number of update steps over which this norm preservation survives decreases, though surprisingly not as quickly as expected.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 2: The norm of the gradient of the loss from the last time step with respect to the hidden units at a given time step for a length 220 RNN over 1000 update iterations for different margins. Iterations are along the abscissa and time steps are denoted along the ordinate. The first column margins are: 0, 0.001, 0.01. The second column margins are: 0.1, 1, no margin. Gradient norms are normalized across the time dimension.
|
| 170 |
+
|
| 171 |
+
Although the deviation of singular values from one should be slowed by the sigmoidal parameterizations, even parameterizations without a sigmoid (no margin) can be effectively trained for all but the longest sequence lengths. This suggests that the spectrum is not deviating far from orthogonality and that inputs to the hidden to hidden transitions are mostly not aligned along the dimensions of greatest expansion or contraction. We evaluated the spread of the spectrum in all of our experiments and found that indeed, singular values tend to stay well within their prescribed bounds and only reach the margin when using a very large learning rate that does not permit convergence. Furthermore, when transition matrices are initialized as orthogonal, singular values remain near one throughout training even without a sigmoidal margin for tasks that require long term memory (copy, adding, sequential MNIST). On the other hand, singular value distributions tend to drift away from one for PTB character prediction which may help explain why enforcing an orthogonality constraint can be helpful for this task, when modeling long sequences. Interestingly, singular values spread out less for longer sequence lengths (nevertheless, the $\scriptstyle \mathrm { T = 1 0 0 0 0 }$ copy task could not be solved with no sigmoid on the spectrum).
|
| 172 |
+
|
| 173 |
+
We visualize the spread of singular values for different model parameterizations on the permuted sequential MNIST task in Figure 3. Curiously, we find that the distribution of singular values tends to shift upward to a mean of approximately 1.05 on both the ordered and permuted sequential MNIST tasks. We note that in those experiments, a tanh transition nonlinearity was used which is contractive in both the forward signal pass and the gradient backward pass. An upward shift in the distribution of singular values of the transition matrix would help compensate for that contraction. Indeed, (Saxe et al., 2013) describe this as a possibly good regime for learning in deep neural networks. That the model appears to evolve toward this regime suggests that deviating from it may incur a cost. This is interesting because the cost function cannot take into account numerical issues such as vanishing or exploding gradients (or forward signals); we do not know what could make this deviation costly. That the transition matrix may be compensating for the contraction of the tanh is supported by further experiments: applying a 1.05 pre-activation gain appears to allow a model with a margin of 0 to nearly match the top performance reached on both of the MNIST tasks. Furthermore, when using the OPLU norm-preserving activation function (Chernodub & Nowicki, 2016), we found that orthogonally initialized models performed equally well with all margins, achieving over $90 \%$ accuracy on the permuted sequential MNIST task. Unlike orthgonally initialized models, the RNN on the bottom right of Figure 3 with Glorot normal initialized transition matrices, begins and ends with a wide singular spectrum. While there is no clear positive shift in the distribution of singular values, the mean value appears to very gradually increase for both the ordered and permuted sequential MNIST tasks. If the model is to be expected to positively shift singular values to compensate for the contractivity of the tanh nonlinearity, it is not doing so well for the Glorot-initialized case; however, this may be due to the inefficiency of training as a result of vanishing gradients, given that initialization.
|
| 174 |
+
|
| 175 |
+

|
| 176 |
+
Figure 3: Singular value evolution on the permuted sequential MNIST task for factorized RNNs with different margin sizes. Margins are, from left to right: top row: 0.001, 0.01, 0.1; bottom row: 1, no margin, no margin. The singular value distributions are summarized with the mean (green line, center) and standard deviation (green shading about mean), minimum (red, bottom) and maximum (blue, top) values. All models are initialized with orthogonal hidden to hidden transition matrices except for the model on the bottom right where Glorot normal initialization is used.
|
| 177 |
+
|
| 178 |
+
# 3.2 EXPLORING SOFT ORTHOGONALITY CONSTRAINTS
|
| 179 |
+
|
| 180 |
+
Having established that it may indeed be useful to step away from orthogonality, here we explore two forms of soft constraints (rather than hard bounds as above) on hidden to hidden transition matrix orthogonality. The first is a simple penalty that directly encourages a transition matrix W to be orthogonal, of the form $\lambda | | \mathbf { W } ^ { T } \mathbf { W } \bar { \mathbf { \Lambda } } - \mathbf { I } | | _ { 2 } ^ { 2 }$ . This is similar to the orthogonality penalty introduced by Henaff et al. (2016). In the first two subfigures on the left of Figure 4, we explore the effect of weakening this form of regularization. We trained both a regular non-factorized RNN on the $T = 2 0 0$ copy task and a factorized RNN with orthogonal bases on the $T = 5 0 0$ copy task. For the regular RNN, we had to reduce the learning rate to $\mathrm { \bar { 1 0 } ^ { - 5 } }$ . Here again we see that weakening the strength of the orthogonality-encouraging penalty can increase convergence speed.
|
| 181 |
+
|
| 182 |
+

|
| 183 |
+
Figure 4: Accuracy curves on the copy task for different strengths of soft orthogonality constraints. A soft orthogonality constraint is applied to the transition matrix W for a regular RNN on $T = 2 0 0$ (Left) and the same is applied on a factorized RNN on $T = 5 0 0$ (Left center). Another constraint in the form of a mean one Gaussian prior on the singular values is applied to a factorized RNN on $T = 2 0 0$ (Right center); the same is applied to a factorized RNN with a sigmoidal parameterization of the spectrum, using a large margin of 1 (Right). Loosening orthogonality speeds convergence.
|
| 184 |
+
|
| 185 |
+
The second approach we explore replaces the sigmoidal margin parameterization with a mean one Gaussian prior on the singular values. In the two right subfigures of Figure 4, we visualize the accuracy on the length 200 copy task, using geoSGD (learning rate $1 0 ^ { - 6 }$ ) to keep $\mathbf { U }$ and $\mathbf { V }$ orthogonal and different strengths of a Gaussian prior with mean one on the singular values. We trained these experiments with regular SGD on the spectrum and other non-orthogonal parameter matrices, using a $\mathrm { i 0 ^ { - 5 } }$ learning rate. We see that priors which are too strong lead to slow convergence. Loosening the strength of the prior makes the optimization more efficient. Furthermore, we compare a direct parameterization of the spectrum (no sigmoid) in Figure 4 with a sigmoidal parameterization, using a large margin of 1. Without the sigmoidal parameterization, optimization quickly becomes unstable; on the other hand, the optimization also becomes unstable if the prior is removed completely in the sigmoidal formulation (margin 1). These results further motivate the idea that parameterizations that deviate from orthogonality may perform better than purely orthogonal ones, as long as they are sufficiently constrained to avoid instability during training.
|
| 186 |
+
|
| 187 |
+
# 4 CONCLUSIONS
|
| 188 |
+
|
| 189 |
+
We have explored a number of methods for controlling the expansivity of gradients during backpropagation based learning in RNNs through manipulating orthogonality constraints and regularization on matrices. Our experiments indicate that while orthogonal initialization may be beneficial, maintaining constraints on orthogonality can be detrimental. Indeed, moving away from hard constraints on matrix orthogonality can help improve optimization convergence rate and model performance. However, we also observe with synthetic tasks that relaxing regularization which encourages the spectral norms of weight matrices to be close to one, or allowing bounds on the spectral norms of weight matrices to be too wide, can reverse these gains and may lead to unstable optimization.
|
| 190 |
+
|
| 191 |
+
# ACKNOWLEDGMENTS
|
| 192 |
+
|
| 193 |
+
We thank the Natural Sciences and Engineeering Research Council (NSERC) of Canada and Samsung for supporting this research.
|
| 194 |
+
|
| 195 |
+
# REFERENCES
|
| 196 |
+
|
| 197 |
+
Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. arXiv preprint arXiv:1511.06464, 2015.
|
| 198 |
+
|
| 199 |
+
Artem Chernodub and Dimitri Nowicki. Norm-preserving orthogonal permutation linear unit activation functions (oplu). arXiv preprint arXiv:1604.02313, 2016.
|
| 200 |
+
|
| 201 |
+
Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Aistats, volume 9, pp. 249–256, 2010.
|
| 202 |
+
|
| 203 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015.
|
| 204 |
+
|
| 205 |
+
Mikael Henaff, Arthur Szlam, and Yann LeCun. Orthogonal rnns and long-memory tasks. arXiv preprint arXiv:1602.06662, 2016.
|
| 206 |
+
|
| 207 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
|
| 208 |
+
|
| 209 |
+
David Krueger and Roland Memisevic. Regularizing rnns by stabilizing activations. arXiv preprint arXiv:1511.08400, 2015.
|
| 210 |
+
|
| 211 |
+
Quoc V Le, Navdeep Jaitly, and Geoffrey E Hinton. A simple way to initialize recurrent networks of rectified linear units. arXiv preprint arXiv:1504.00941, 2015.
|
| 212 |
+
|
| 213 |
+
Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
|
| 214 |
+
|
| 215 |
+
Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993.
|
| 216 |
+
|
| 217 |
+
Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 807–814, 2010.
|
| 218 |
+
|
| 219 |
+
Yasunori Nishimori. A note on riemannian optimization methods on the stiefel and the grassmann manifolds. dim, 1:2, 2005.
|
| 220 |
+
|
| 221 |
+
Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. ICML (3), 28:1310–1318, 2013.
|
| 222 |
+
|
| 223 |
+
Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013.
|
| 224 |
+
|
| 225 |
+
Hemant D Tagare. Notes on optimization on stiefel manifolds. Technical report, Tech. Rep., Yale University, 2011.
|
| 226 |
+
|
| 227 |
+
Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688.
|
| 228 |
+
|
| 229 |
+
T. Tieleman and G. Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012.
|
| 230 |
+
|
| 231 |
+
Scott Wisdom, Thomas Powers, John R. Hershey, Jonathan Le Roux, and Les Atlas. Full-capacity unitary recurrent neural networks. To appear in NIPS, 2016.
|
| 232 |
+
|
| 233 |
+
# 5 APPENDIX
|
| 234 |
+
|
| 235 |
+
# 5.1 ADDITIONAL FIGURES
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
Figure 5: Mean squared error (MSE) curves on the adding task for different spectral margins $m$ . For a trivial baseline solution of always outputting the same number, the expected baseline MSE is 0.167.
|
| 239 |
+
|
| 240 |
+

|
| 241 |
+
Figure 6: Loss curves for different factorized RNN parameterizations on the sequential MNIST task (left) and the permuted sequential MNIST task (right). The spectral margin is denoted by m; models with no margin have singular values that are directly optimized with no constraints; Glorot refers to a factorized RNN with no margin that is initialized with Glorot normal initialization.
|
| 242 |
+
|
| 243 |
+
# 5.2 COPY TASK NONLINEARITY
|
| 244 |
+
|
| 245 |
+
We found that nonlinearities such as a rectified linear unit (ReLU) (Nair & Hinton, 2010) or hyperbolic tangent (tanh) made the copy task far more difficult to solve. Using tanh, a short sequence length ( $T = 1 0 0$ ) copy task required both a soft constraint that encourages orthogonality and thousands of epochs for training. It is worth noting that in the unitary evolution recurrent neural network of Arjovsky et al. (2015), the non-linearity (referred to as the ”modReLU”) is actually initialized as an identity operation that is free to deviate from identity during training. Furthermore, Henaff et al. (2016) derive a solution mechanism for the copy task that drops the non-linearity from an RNN. To explore this further, we experimented with a parametric leaky ReLU activation function (PReLU) which introduces a trainable slope $\alpha$ for negative valued inputs $x$ , producing $f ( x ) = m a x ( x , 0 ) + \alpha m i n ( x , 0 )$ (He et al., 2015). Setting the slope $\alpha$ to one would make the PReLU equivalent to an identity function. We experimented with clamping $\alpha$ to 0.5, 0.7 or 1 in a factorized RNN with a spectral margin of 0.3 and found that only the model with $\alpha = 1$ solved the $T = 1 0 0 0$ length copy task. We also experimented with a trainable slope $\alpha$ , initialized to 0.7 and found that it converges to 0.96, further suggesting the optimal solution for the copy task is without a transition nonlinearity. Since the copy task is purely a memory task, one may imagine that a transition nonlinearity such as a tanh or ReLU may be detrimental to the task as it can lose information. Thus, we also tried a recent activation function that preserves information, called an orthogonal permutation linear unit (OPLU) (Chernodub & Nowicki, 2016). The OPLU preserves norm, making a fully norm-preserving RNN possible. Interestingly, this activation function allowed us to recover identical results on the copy task to those without a nonlinearity for different spectral margins.
|
| 246 |
+
|
| 247 |
+
# 5.3 METHOD RUNNING TIME
|
| 248 |
+
|
| 249 |
+
Although the method proposed in section 2 relies on a matrix inversion, an operation with $O ( n ^ { 3 } )$ complexity for an $\textbf { n } \times \textbf { n }$ matrix, the running time of an RNN factorized in such a way actually remains reasonable. This running time is summarized in Table 5 and includes all computations in the graph, together with the matrix inversion. As this method is meant to be used only for the analysis in this work, we find the running times acceptable for that purpose. Models were run on an Nvidia GTX-770 GPU and were run against the $\mathrm { T } { = } 1 0 0$ length copy task.
|
| 250 |
+
|
| 251 |
+
Table 5: Run time in seconds for 1000 iterations on a $\mathrm { T } { = } 1 0 0$ copy task of a regular RNN trained with stochastic gradient descent (SGD) compared against a factorized RNN trained with geodesic SGD on the bases (geoSGD) and regular SGD for other parameters.
|
| 252 |
+
|
| 253 |
+
<table><tr><td>hidden units</td><td>SGD</td><td>geoSGD</td></tr><tr><td>128</td><td>21.9 ± 0.2</td><td>40.4 ± 0.1</td></tr><tr><td>500</td><td>46.7 ± 0.2</td><td>161.4 ± 0.2</td></tr><tr><td>1000</td><td>95.4 ± 0.3</td><td>711.2 ± 0.8</td></tr></table>
|
parse/train/HkuVu3ige/HkuVu3ige_content_list.json
ADDED
|
@@ -0,0 +1,1334 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "ON ORTHOGONALITY AND LEARNING RECURRENTNETWORKS WITH LONG TERM DEPENDENCIES",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
174,
|
| 8 |
+
101,
|
| 9 |
+
821,
|
| 10 |
+
146
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Eugene Vorontsov 1,2, Chiheb Trabelsi 1,2, Samuel Kadoury 1,3, Chris Pal 1,2 ",
|
| 17 |
+
"bbox": [
|
| 18 |
+
186,
|
| 19 |
+
167,
|
| 20 |
+
709,
|
| 21 |
+
185
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "1 Ecole Polytechnique de Montr ´ eal, Montr ´ eal, Canada ´ 2 Montreal Institute for Learning Algorithms, Montreal, Canada ´ 3 CHUM Research Center, Montreal, Canada ´ {eugene.vorontsov, chiheb.trabelsi, samuel.kadoury, christopher.pal}@polymtl.ca ",
|
| 28 |
+
"bbox": [
|
| 29 |
+
184,
|
| 30 |
+
186,
|
| 31 |
+
604,
|
| 32 |
+
257
|
| 33 |
+
],
|
| 34 |
+
"page_idx": 0
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"type": "text",
|
| 38 |
+
"text": "ABSTRACT ",
|
| 39 |
+
"text_level": 1,
|
| 40 |
+
"bbox": [
|
| 41 |
+
454,
|
| 42 |
+
294,
|
| 43 |
+
544,
|
| 44 |
+
309
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "It is well known that it is challenging to train deep neural networks and recurrent neural networks for tasks that exhibit long term dependencies. The vanishing or exploding gradient problem is a well known issue associated with these challenges. One approach to addressing vanishing and exploding gradients is to use either soft or hard constraints on weight matrices so as to encourage or enforce orthogonality. Orthogonal matrices preserve gradient norm during backpropagation and can therefore be a desirable property; however, we find that hard constraints on orthogonality can negatively affect the speed of convergence and model performance. This paper explores the issues of optimization convergence, speed and gradient stability using a variety of different methods for encouraging or enforcing orthogonality. In particular we propose a weight matrix factorization and parameterization strategy through which we can bound matrix norms and therein control the degree of expansivity induced during backpropagation. ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
233,
|
| 53 |
+
324,
|
| 54 |
+
764,
|
| 55 |
+
505
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "1 INTRODUCTION ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
176,
|
| 65 |
+
530,
|
| 66 |
+
336,
|
| 67 |
+
546
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "The depth of deep neural networks confers representational power, but also makes model optimization more challenging. Training deep networks with gradient descent based methods is known to be difficult as a consequence of the vanishing and exploding gradient problem (Hochreiter & Schmidhuber, 1997). Typically, exploding gradients are avoided by clipping large gradients (Pascanu et al., 2013) or introducing an $L _ { 2 }$ or $L _ { 1 }$ weight norm penalty. The latter has the effect of bounding the spectral radius of the linear transformations, thus limiting the maximal gain across the transformation. Krueger & Memisevic (2015) attempt to stabilize the norm of propagating signals directly by penalizing differences in successive norm pairs in the forward pass and Pascanu et al. (2013) propose to penalize successive gradient norm pairs in the backward pass. These regularizers affect the network parameterization with respect to the data instead of penalizing weights directly. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
174,
|
| 76 |
+
563,
|
| 77 |
+
825,
|
| 78 |
+
700
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Both expansivity and contractivity of linear transformations can also be limited by more tightly bounding their spectra. By limiting the transformations to be orthogonal, their singular spectra are limited to unitary gain causing the transformations to be norm-preserving. Le et al. (2015) and Henaff et al. (2016) have respectively shown that identity initialization and orthogonal initialization can be beneficial. Arjovsky et al. (2015) have gone beyond initialization, building unitary recurrent neural network (RNN) models with transformations that are unitary by construction which they achieved by composing multiple basic unitary transformations. The resulting transformations, for some n-dimensional input, cover only some subset of possible $n \\times n$ unitary matrices but appear to perform well on simple tasks and have the benefit of having low complexity in memory and computation. ",
|
| 85 |
+
"bbox": [
|
| 86 |
+
174,
|
| 87 |
+
708,
|
| 88 |
+
825,
|
| 89 |
+
847
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "text",
|
| 95 |
+
"text": "The entire set of possible unitary or orthogonal parameterizations forms the Stiefel manifold. At a much higher computational cost, gradient descent optimization directly along this manifold can be done via geodesic steps (Nishimori, 2005; Tagare, 2011). Recent work (Wisdom et al., 2016) has proposed the optimization of unitary matrices along the Stiefel manifold using geodesic gradient descent. To produce a full-capacity parameterization for unitary matrices they use some insights from Tagare (2011), combining the use of a canonical inner products and Cayley transformations. Their experimental work indicates that full capacity unitary RNN models can solve the copy memory problem whereas both LSTM networks and restricted capacity unitary RNN models having similar complexity appear unable to solve the task for a longer sequence length ( $T = 2 0 0 0$ ). ",
|
| 96 |
+
"bbox": [
|
| 97 |
+
174,
|
| 98 |
+
854,
|
| 99 |
+
823,
|
| 100 |
+
924
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "text",
|
| 106 |
+
"text": "",
|
| 107 |
+
"bbox": [
|
| 108 |
+
174,
|
| 109 |
+
103,
|
| 110 |
+
823,
|
| 111 |
+
160
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 1
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "text",
|
| 117 |
+
"text": "In contrast, here we explore the optimization of real valued matrices within a configurable margin about the Stiefel manifold. We suspect that a strong constraint of orthogonality limits the model’s representational power, hindering its performance, and may make optimization more difficult. We explore this hypothesis empirically by employing a factorization technique that allows us to limit the degree of deviation from the Stiefel manifold. While we use geodesic gradient descent, we simultaneously update the singular spectra of our matrices along Euclidean steps, allowing optimization to step away from the manifold while still curving about it. ",
|
| 118 |
+
"bbox": [
|
| 119 |
+
173,
|
| 120 |
+
166,
|
| 121 |
+
825,
|
| 122 |
+
265
|
| 123 |
+
],
|
| 124 |
+
"page_idx": 1
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"type": "text",
|
| 128 |
+
"text": "1.1 VANISHING AND EXPLODING GRADIENTS ",
|
| 129 |
+
"text_level": 1,
|
| 130 |
+
"bbox": [
|
| 131 |
+
178,
|
| 132 |
+
281,
|
| 133 |
+
501,
|
| 134 |
+
295
|
| 135 |
+
],
|
| 136 |
+
"page_idx": 1
|
| 137 |
+
},
|
| 138 |
+
{
|
| 139 |
+
"type": "text",
|
| 140 |
+
"text": "The issue of vanishing and exploding gradients as it pertains to the parameterization of neural networks can be illuminated by looking at the gradient back-propagation chain through a network. ",
|
| 141 |
+
"bbox": [
|
| 142 |
+
176,
|
| 143 |
+
306,
|
| 144 |
+
823,
|
| 145 |
+
335
|
| 146 |
+
],
|
| 147 |
+
"page_idx": 1
|
| 148 |
+
},
|
| 149 |
+
{
|
| 150 |
+
"type": "text",
|
| 151 |
+
"text": "A neural network with $n$ hidden layers has pre-activations ",
|
| 152 |
+
"bbox": [
|
| 153 |
+
174,
|
| 154 |
+
342,
|
| 155 |
+
557,
|
| 156 |
+
357
|
| 157 |
+
],
|
| 158 |
+
"page_idx": 1
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"type": "equation",
|
| 162 |
+
"img_path": "images/a78b85fbae00cb68c544b470e1c91f25b9d5d44a3ce3c59fd4a254e466493006.jpg",
|
| 163 |
+
"text": "$$\n\\mathbf { a } _ { i } ( \\mathbf { h } _ { i - 1 } ) = \\mathbf { W } _ { i } \\mathbf { \\ h } _ { i - 1 } + \\mathbf { \\ b } _ { i } , \\ i \\in \\{ 2 , \\cdots , n \\}\n$$",
|
| 164 |
+
"text_format": "latex",
|
| 165 |
+
"bbox": [
|
| 166 |
+
348,
|
| 167 |
+
363,
|
| 168 |
+
650,
|
| 169 |
+
381
|
| 170 |
+
],
|
| 171 |
+
"page_idx": 1
|
| 172 |
+
},
|
| 173 |
+
{
|
| 174 |
+
"type": "text",
|
| 175 |
+
"text": "For notational convenience, we combine parameters $\\mathbf { W } _ { i }$ and $\\mathbf { b } _ { i }$ to form an affine matrix θ. We can see that for some loss function $L$ at layer $n$ , the derivative with respect to parameters $\\theta _ { i }$ is: ",
|
| 176 |
+
"bbox": [
|
| 177 |
+
173,
|
| 178 |
+
386,
|
| 179 |
+
828,
|
| 180 |
+
415
|
| 181 |
+
],
|
| 182 |
+
"page_idx": 1
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"type": "equation",
|
| 186 |
+
"img_path": "images/0c4ee2f4e2cbd43027d300cf8f7be076eee1c4e756802d71c3b7e577173a31d5.jpg",
|
| 187 |
+
"text": "$$\n\\frac { \\partial { \\cal L } } { \\partial \\Theta _ { i } } = \\frac { \\partial { \\bf a } _ { n + 1 } } { \\partial \\Theta _ { i } } \\frac { \\partial { \\cal L } } { \\partial { \\bf a } _ { n + 1 } }\n$$",
|
| 188 |
+
"text_format": "latex",
|
| 189 |
+
"bbox": [
|
| 190 |
+
423,
|
| 191 |
+
429,
|
| 192 |
+
575,
|
| 193 |
+
464
|
| 194 |
+
],
|
| 195 |
+
"page_idx": 1
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"type": "text",
|
| 199 |
+
"text": "The partial derivatives for the pre-activations can be decomposed as follows: ",
|
| 200 |
+
"bbox": [
|
| 201 |
+
174,
|
| 202 |
+
472,
|
| 203 |
+
674,
|
| 204 |
+
488
|
| 205 |
+
],
|
| 206 |
+
"page_idx": 1
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"type": "equation",
|
| 210 |
+
"img_path": "images/76383e751a5f8f99383e8822b5566f459b22330779718cfe7e6792a52446f95a.jpg",
|
| 211 |
+
"text": "$$\n\\begin{array} { r l r } { { \\frac { \\partial \\mathbf { a } _ { i + 1 } } { \\partial \\mathbf { \\boldsymbol { \\Theta } } _ { i } } = \\frac { \\partial \\mathbf { a } _ { i } } { \\partial \\mathbf { \\boldsymbol { \\Theta } } _ { i } } \\frac { \\partial \\mathbf { h } _ { i } } { \\partial \\mathbf { a } _ { i } } \\frac { \\partial \\mathbf { a } _ { i + 1 } } { \\partial \\mathbf { h } _ { i } } } } \\\\ & { } & { = \\frac { \\partial \\mathbf { a } _ { i } } { \\partial \\mathbf { \\boldsymbol { \\Theta } } _ { i } } \\mathbf { \\boldsymbol { D } } _ { i } \\mathbf { \\boldsymbol { W } } _ { i + 1 } \\to \\frac { \\partial \\mathbf { a } _ { i + 1 } } { \\partial \\mathbf { a } _ { i } } = \\mathbf { \\boldsymbol { D } } _ { i } \\mathbf { \\boldsymbol { W } } _ { i + 1 } , } \\end{array}\n$$",
|
| 212 |
+
"text_format": "latex",
|
| 213 |
+
"bbox": [
|
| 214 |
+
334,
|
| 215 |
+
492,
|
| 216 |
+
665,
|
| 217 |
+
560
|
| 218 |
+
],
|
| 219 |
+
"page_idx": 1
|
| 220 |
+
},
|
| 221 |
+
{
|
| 222 |
+
"type": "text",
|
| 223 |
+
"text": "where $\\mathbf { D _ { i } }$ is the Jacobian corresponding to the activation function, containing partial derivatives of the hidden units at layer $i + 1$ with respect to the pre-activation inputs. Typically, $\\mathbf { D }$ is diagonal. Following the above, the gradient in equation 2 can be fully decomposed into a recursive chain of matrix products: ",
|
| 224 |
+
"bbox": [
|
| 225 |
+
174,
|
| 226 |
+
563,
|
| 227 |
+
825,
|
| 228 |
+
618
|
| 229 |
+
],
|
| 230 |
+
"page_idx": 1
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"type": "equation",
|
| 234 |
+
"img_path": "images/8a720fe48f9732ed98f40f078816e34b61cb04d25e43ee91e92aef926501fc02.jpg",
|
| 235 |
+
"text": "$$\n\\frac { \\partial L } { \\partial \\pmb { \\theta } _ { i } } = \\frac { \\partial \\mathbf { a } _ { i } } { \\partial \\pmb { \\theta } _ { i } } \\prod _ { j = i } ^ { n } ( \\mathbf { D } _ { j } \\mathbf { W } _ { j + 1 } ) \\frac { \\partial L } { \\partial \\mathbf { a } _ { n + 1 } }\n$$",
|
| 236 |
+
"text_format": "latex",
|
| 237 |
+
"bbox": [
|
| 238 |
+
382,
|
| 239 |
+
616,
|
| 240 |
+
616,
|
| 241 |
+
660
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 1
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "In (Pascanu et al., 2013), it is shown that the 2-norm of $\\frac { \\partial \\mathbf { a } _ { i + 1 } } { \\partial \\mathbf { a } _ { i } }$ is bounded by the product of the norms of the non-linearity’s Jacobian and transition matrix at time $t$ (layer $i$ ), as follows: ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
174,
|
| 250 |
+
671,
|
| 251 |
+
825,
|
| 252 |
+
713
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 1
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "equation",
|
| 258 |
+
"img_path": "images/3907a2de2262911234ff4f428177d337b5803a9826f80f1e4a89f9cbe5998b4e.jpg",
|
| 259 |
+
"text": "$$\n\\left\\| \\frac { \\partial \\mathbf { a } _ { t + 1 } } { \\partial \\mathbf { a } _ { t } } \\right\\| \\leq \\left\\| \\mathbf { D } _ { t } \\right\\| \\left\\| \\mathbf { W } _ { t } \\right\\| \\leq \\lambda _ { \\mathbf { D } _ { t } } \\lambda _ { \\mathbf { W } _ { t } } = \\eta _ { t } ,\n$$",
|
| 260 |
+
"text_format": "latex",
|
| 261 |
+
"bbox": [
|
| 262 |
+
348,
|
| 263 |
+
717,
|
| 264 |
+
651,
|
| 265 |
+
773
|
| 266 |
+
],
|
| 267 |
+
"page_idx": 1
|
| 268 |
+
},
|
| 269 |
+
{
|
| 270 |
+
"type": "text",
|
| 271 |
+
"text": "where $\\lambda _ { \\mathbf { D } _ { t } }$ and $\\lambda _ { \\mathbf { W } _ { t } }$ are the largest singular values of the non-linearity’s Jacobian $\\mathbf { D } _ { t }$ and the transition matrix $\\mathbf { W } _ { t }$ . In RNNs, $\\mathbf { W } _ { t }$ is shared across time and can be simply denoted as $\\mathbf { W }$ . ",
|
| 272 |
+
"bbox": [
|
| 273 |
+
169,
|
| 274 |
+
776,
|
| 275 |
+
821,
|
| 276 |
+
806
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 1
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "Equation 5 shows that the gradient can grow or shrink at each layer depending on the gain of each layer’s linear transformation $\\mathbf { W }$ and the gain of the Jacobian $\\mathbf { D }$ . The gain caused by each layer is magnified across all time steps or layers. It is easy to have extreme amplification in a recurrent neural network where $\\mathbf { W }$ is shared across time steps and a non-unitary gain in W is amplified exponentially. The phenomena of extreme growth or contraction of the gradient across time steps or layers are known as the exploding and the vanishing gradient problems, respectively. It is sufficient for RNNs to have $\\eta _ { t } \\leq 1$ at each time $t$ to enable the possibility of vanishing gradients, typically for some large number of time steps $T$ . The rate at which a gradient (or forward signal) vanishes depends on both the parameterization of the model and on the input data. The parameterization may be conditioned by placing appropriate constraints on W. It is worth keeping in mind that the Jacobian $\\mathbf { D }$ is typically contractive, thus tending to be norm-reducing) and is also data-dependent, whereas W can vary from being contractive to norm-preserving, to expansive and applies the same gain on the forward signal as on the back-propagated gradient signal. ",
|
| 283 |
+
"bbox": [
|
| 284 |
+
173,
|
| 285 |
+
811,
|
| 286 |
+
825,
|
| 287 |
+
924
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 1
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "",
|
| 294 |
+
"bbox": [
|
| 295 |
+
174,
|
| 296 |
+
103,
|
| 297 |
+
825,
|
| 298 |
+
174
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "2 OUR APPROACH",
|
| 305 |
+
"text_level": 1,
|
| 306 |
+
"bbox": [
|
| 307 |
+
176,
|
| 308 |
+
194,
|
| 309 |
+
339,
|
| 310 |
+
210
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "Vanishing and exploding gradients can be controlled to a large extent by controlling the maximum and minimum gain of $\\mathbf { W }$ . The maximum gain of a matrix $\\mathbf { W }$ is given by the spectral norm which is given by ",
|
| 317 |
+
"bbox": [
|
| 318 |
+
174,
|
| 319 |
+
226,
|
| 320 |
+
825,
|
| 321 |
+
268
|
| 322 |
+
],
|
| 323 |
+
"page_idx": 2
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"type": "equation",
|
| 327 |
+
"img_path": "images/bf28505f55b28fc2b71138665ea1b8ed42af76bea4fe6ea2ae3d4feaf516be2f.jpg",
|
| 328 |
+
"text": "$$\n| | \\mathbf { W } | | _ { 2 } = \\operatorname* { m a x } \\left[ \\frac { | | \\mathbf { W } \\mathbf { x } | | } { | | \\mathbf { x } | | } \\right] .\n$$",
|
| 329 |
+
"text_format": "latex",
|
| 330 |
+
"bbox": [
|
| 331 |
+
408,
|
| 332 |
+
267,
|
| 333 |
+
589,
|
| 334 |
+
310
|
| 335 |
+
],
|
| 336 |
+
"page_idx": 2
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"type": "text",
|
| 340 |
+
"text": "By keeping our weight matrix W close to orthogonal, one can ensure that it is close to a normpreserving transformation (where the spectral norm is equal to one, but the minimum gain is also one). One way to achieve this is via a simple soft constraint or regularization term of the form: ",
|
| 341 |
+
"bbox": [
|
| 342 |
+
174,
|
| 343 |
+
319,
|
| 344 |
+
825,
|
| 345 |
+
362
|
| 346 |
+
],
|
| 347 |
+
"page_idx": 2
|
| 348 |
+
},
|
| 349 |
+
{
|
| 350 |
+
"type": "equation",
|
| 351 |
+
"img_path": "images/763008042b3f7b473548bb3dcdbcc34cc4bbb3b08fd314705dbaa6f6619cb0a3.jpg",
|
| 352 |
+
"text": "$$\n\\lambda \\sum _ { i } | | \\mathbf { W } _ { i } ^ { T } \\mathbf { W } _ { i } - \\mathbf { I } | | ^ { 2 } .\n$$",
|
| 353 |
+
"text_format": "latex",
|
| 354 |
+
"bbox": [
|
| 355 |
+
421,
|
| 356 |
+
369,
|
| 357 |
+
576,
|
| 358 |
+
402
|
| 359 |
+
],
|
| 360 |
+
"page_idx": 2
|
| 361 |
+
},
|
| 362 |
+
{
|
| 363 |
+
"type": "text",
|
| 364 |
+
"text": "However, it is possible to formulate a more direct parameterization or factorization for W which permits hard bounds on the amount of expansion and contraction induced by W. This can be achieved by simply parameterizing $\\mathbf { W }$ according to its singular value decomposition, which consists of the composition of orthogonal basis matrices $\\mathbf { U }$ and $\\mathbf { V }$ with a diagonal spectral matrix S containing the singular values which are real and positive by definition. We have ",
|
| 365 |
+
"bbox": [
|
| 366 |
+
173,
|
| 367 |
+
409,
|
| 368 |
+
825,
|
| 369 |
+
479
|
| 370 |
+
],
|
| 371 |
+
"page_idx": 2
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"type": "equation",
|
| 375 |
+
"img_path": "images/5fca7fa842eb0c2303aa0842d14890288cefa5d99be3a2f9480f668972667c8c.jpg",
|
| 376 |
+
"text": "$$\n\\mathbf { W } = \\mathbf { U } \\mathbf { S } \\mathbf { V } ^ { T } .\n$$",
|
| 377 |
+
"text_format": "latex",
|
| 378 |
+
"bbox": [
|
| 379 |
+
447,
|
| 380 |
+
487,
|
| 381 |
+
549,
|
| 382 |
+
503
|
| 383 |
+
],
|
| 384 |
+
"page_idx": 2
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"type": "text",
|
| 388 |
+
"text": "Since the spectral norm or maximum gain of a matrix is equal to its largest singular value, this decomposition allows us to control the maximum gain or expansivity of the weight matrix by controlling the magnitude of the largest singular value. Similarly, the minimum gain or contractivity of a matrix can be obtained from the minimum singular value. ",
|
| 389 |
+
"bbox": [
|
| 390 |
+
174,
|
| 391 |
+
512,
|
| 392 |
+
825,
|
| 393 |
+
569
|
| 394 |
+
],
|
| 395 |
+
"page_idx": 2
|
| 396 |
+
},
|
| 397 |
+
{
|
| 398 |
+
"type": "text",
|
| 399 |
+
"text": "We can keep the bases $\\mathbf { U }$ and $\\mathbf { V }$ orthogonal via geodesic gradient descent along the set of weights that satisfy $\\mathbf { \\dot { U } } ^ { T } \\mathbf { U } = \\mathbf { I }$ and $\\mathbf { V } ^ { T } \\mathbf { V } = \\mathbf { I }$ respectively. The submanifolds that satisfy these constraints are called Stiefel manifolds. We discuss how this is achieved in more detail below, then discuss our construction for bounding the singular values. ",
|
| 400 |
+
"bbox": [
|
| 401 |
+
173,
|
| 402 |
+
575,
|
| 403 |
+
825,
|
| 404 |
+
632
|
| 405 |
+
],
|
| 406 |
+
"page_idx": 2
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"type": "text",
|
| 410 |
+
"text": "During optimization, in order to maintain the orthogonality of an orthogonally-initialized matrix M, i.e. where $\\mathbf { M } = \\mathbf { U }$ , $\\mathbf { M } = \\mathbf { V }$ or $\\mathbf { M } = \\mathbf { W }$ if so desired, we employ a Cayley transformation of the update step onto the Stiefel manifold of (semi-)orthogonal matrices, as in Nishimori (2005) and Tagare (2011). Given an orthogonally-initialized parameter matrix $\\mathbf { M }$ and its Jacobian, $\\mathbf { G }$ with respect to the objective function, an update is performed as follows: ",
|
| 411 |
+
"bbox": [
|
| 412 |
+
173,
|
| 413 |
+
638,
|
| 414 |
+
825,
|
| 415 |
+
709
|
| 416 |
+
],
|
| 417 |
+
"page_idx": 2
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"type": "equation",
|
| 421 |
+
"img_path": "images/d33fc2ed34277af2b8346b440b1290de020bd8f83b1ff6e645674e231df3cdbe.jpg",
|
| 422 |
+
"text": "$$\n\\begin{array} { l } { \\mathbf { A } = \\mathbf { G } \\mathbf { M } ^ { T } - \\mathbf { M } \\mathbf { G } ^ { T } } \\\\ { \\mathbf { M } _ { n e w } = \\mathbf { M } + ( \\mathbf { I } + \\frac { \\eta } { 2 } \\mathbf { A } ) ^ { - 1 } ( \\mathbf { I } - \\frac { \\eta } { 2 } \\mathbf { A } ) , } \\end{array}\n$$",
|
| 423 |
+
"text_format": "latex",
|
| 424 |
+
"bbox": [
|
| 425 |
+
367,
|
| 426 |
+
714,
|
| 427 |
+
630,
|
| 428 |
+
765
|
| 429 |
+
],
|
| 430 |
+
"page_idx": 2
|
| 431 |
+
},
|
| 432 |
+
{
|
| 433 |
+
"type": "text",
|
| 434 |
+
"text": "where $\\mathbf { A }$ is a skew-symmetric matrix (that depends on the Jacobian and on the parameter matrix) which is mapped to an orthogonal matrix via a Cayley transform and $\\eta$ is the learning rate. ",
|
| 435 |
+
"bbox": [
|
| 436 |
+
176,
|
| 437 |
+
770,
|
| 438 |
+
821,
|
| 439 |
+
799
|
| 440 |
+
],
|
| 441 |
+
"page_idx": 2
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"type": "text",
|
| 445 |
+
"text": "While the update rule in (9) allows us to maintain an orthogonal hidden to hidden transition matrix W if desired, we are interested in exploring the effect of stepping away from the Stiefel manifold. As such, we parameterize the transition matrix W in factorized form, as a singular value decomposition with orthogonal bases $\\mathbf { U }$ and $\\mathbf { V }$ updated by geodesic gradient descent using the Cayley transform approach above. ",
|
| 446 |
+
"bbox": [
|
| 447 |
+
174,
|
| 448 |
+
804,
|
| 449 |
+
825,
|
| 450 |
+
875
|
| 451 |
+
],
|
| 452 |
+
"page_idx": 2
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"type": "text",
|
| 456 |
+
"text": "If W is an orthogonal matrix, the singular values in the diagonal matrix S are all equal to one. However, in our formulation we allow these singular values to deviate from one and employ a sigmoidal parameterization to apply a hard constraint on the maximum and minimum amount of deviation. Specifically, we define a margin $m$ around 1 within which the singular values must lie. This is achieved with the parameterization ",
|
| 457 |
+
"bbox": [
|
| 458 |
+
174,
|
| 459 |
+
881,
|
| 460 |
+
823,
|
| 461 |
+
924
|
| 462 |
+
],
|
| 463 |
+
"page_idx": 2
|
| 464 |
+
},
|
| 465 |
+
{
|
| 466 |
+
"type": "text",
|
| 467 |
+
"text": "",
|
| 468 |
+
"bbox": [
|
| 469 |
+
171,
|
| 470 |
+
103,
|
| 471 |
+
823,
|
| 472 |
+
132
|
| 473 |
+
],
|
| 474 |
+
"page_idx": 3
|
| 475 |
+
},
|
| 476 |
+
{
|
| 477 |
+
"type": "equation",
|
| 478 |
+
"img_path": "images/f65096e05ae06cae23965c9cb6035bd41b466a16add33eb75efa8a1077d3134a.jpg",
|
| 479 |
+
"text": "$$\ns _ { i } = 2 m ( \\sigma ( p _ { i } ) - 0 . 5 ) + 1 , \\qquad s _ { i } \\in \\{ \\mathrm { d i a g } ( \\mathbf { S } ) \\} , \\ m \\in [ 0 , \\ 1 ] .\n$$",
|
| 480 |
+
"text_format": "latex",
|
| 481 |
+
"bbox": [
|
| 482 |
+
297,
|
| 483 |
+
138,
|
| 484 |
+
702,
|
| 485 |
+
156
|
| 486 |
+
],
|
| 487 |
+
"page_idx": 3
|
| 488 |
+
},
|
| 489 |
+
{
|
| 490 |
+
"type": "text",
|
| 491 |
+
"text": "The singular values are thus restricted to the range $[ 1 - m , 1 + m ]$ and the underlying parameters $p _ { i }$ are updated freely via stochastic gradient descent. Note that this parameterization strategy also has implications on the step sizes that gradient descent based optimization will take when updating the singular values – they tend to be smaller compared to models with no margin constraining their values. Specifically, a singular value’s progression toward a margin is slowed the closer it is to the margin. The sigmoidal parameterization can also impart another effect on the step size along the spectrum which needs to be accounted for. Considering 10, the gradient backpropagation of some loss $L$ toward parameters $p _ { i }$ is found as ",
|
| 492 |
+
"bbox": [
|
| 493 |
+
174,
|
| 494 |
+
162,
|
| 495 |
+
825,
|
| 496 |
+
275
|
| 497 |
+
],
|
| 498 |
+
"page_idx": 3
|
| 499 |
+
},
|
| 500 |
+
{
|
| 501 |
+
"type": "equation",
|
| 502 |
+
"img_path": "images/33635557f734e15be1f2ffc7afe5bf0846c3c5330bd3c43fda2810cb9556038c.jpg",
|
| 503 |
+
"text": "$$\n\\frac { d L } { d p _ { i } } = \\frac { d s _ { i } } { d p _ { i } } \\frac { d L } { d s _ { i } } = 2 m \\frac { d \\sigma ( p _ { i } ) } { d p _ { i } } \\frac { d L } { d s _ { i } } .\n$$",
|
| 504 |
+
"text_format": "latex",
|
| 505 |
+
"bbox": [
|
| 506 |
+
387,
|
| 507 |
+
281,
|
| 508 |
+
614,
|
| 509 |
+
315
|
| 510 |
+
],
|
| 511 |
+
"page_idx": 3
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"type": "text",
|
| 515 |
+
"text": "From (11), it can be seen that the magnitude of the update step for $p _ { i }$ is scaled by the margin hyperparameter $m$ . This means for example that for margins less than one, the effective learning rate for the spectrum is reduced in proportion to the margin. Consequently, we adjust the learning rate along the spectrum to be independent of the margin by renormalizing it by ${ \\it 2 m }$ . ",
|
| 516 |
+
"bbox": [
|
| 517 |
+
174,
|
| 518 |
+
321,
|
| 519 |
+
825,
|
| 520 |
+
378
|
| 521 |
+
],
|
| 522 |
+
"page_idx": 3
|
| 523 |
+
},
|
| 524 |
+
{
|
| 525 |
+
"type": "text",
|
| 526 |
+
"text": "This margin formulation both guarantees singular values lie within a well defined range and slows deviation from orthogonality. Alternatively, one could enforce the orthogonality of $\\mathbf { U }$ and $\\mathbf { V }$ and impose a regularization term corresponding to a mean one Gaussian prior on these singular values. This encourages the weight matrix W to be norm preserving with a controllable strength equivalent to the variance of the Gaussian. We also explore this approach further below. ",
|
| 527 |
+
"bbox": [
|
| 528 |
+
174,
|
| 529 |
+
383,
|
| 530 |
+
825,
|
| 531 |
+
454
|
| 532 |
+
],
|
| 533 |
+
"page_idx": 3
|
| 534 |
+
},
|
| 535 |
+
{
|
| 536 |
+
"type": "text",
|
| 537 |
+
"text": "3 EXPERIMENTS ",
|
| 538 |
+
"text_level": 1,
|
| 539 |
+
"bbox": [
|
| 540 |
+
176,
|
| 541 |
+
474,
|
| 542 |
+
326,
|
| 543 |
+
491
|
| 544 |
+
],
|
| 545 |
+
"page_idx": 3
|
| 546 |
+
},
|
| 547 |
+
{
|
| 548 |
+
"type": "text",
|
| 549 |
+
"text": "In this section, we explore hard and soft orthogonality constraints on factorized weight matrices for recurrent neural network hidden to hidden transitions. With hard orthogonality constraints on $\\mathbf { U }$ and $\\mathbf { V }$ , we investigate the effect of widening the spectral margin or bounds on convergence and performance. Loosening these bounds allows increasingly larger margins within which the transition matrix W can deviate from orthogonality. We confirm that orthogonal initialization is useful as noted in Henaff et al. (2016), and we show that although strict orthogonality guarantees stable gradient norm, loosening orthogonality constraints can increase the rate of gradient descent convergence. We begin our analyses on tasks that are designed to stress memory: a sequence copying task and a basic addition task (Hochreiter & Schmidhuber, 1997). We then move on to tasks on real data that require models to capture long-range dependencies: digit classification based on sequential and permuted MNIST vectors (Le et al., 2015; LeCun et al., 1998). Finally, we look at a basic language modeling task using the Penn Treebank dataset (Marcus et al., 1993). ",
|
| 550 |
+
"bbox": [
|
| 551 |
+
174,
|
| 552 |
+
506,
|
| 553 |
+
825,
|
| 554 |
+
674
|
| 555 |
+
],
|
| 556 |
+
"page_idx": 3
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"type": "text",
|
| 560 |
+
"text": "The copy and adding tasks, introduced by Hochreiter & Schmidhuber (1997), are synthetic benchmarks with pathologically hard long distance dependencies that require long-term memory in models. The copy task consists of an input sequence that must be remembered by the network, followed by a series of blank inputs terminated by a delimiter that denotes the point at which the network must begin to output a copy of the initial sequence. We use an input sequence of $T + 2 0$ elements that begins with a sub-sequence of 10 elements to copy, each containing a symbol $a _ { i } \\in \\{ a _ { 1 } , . . . , a _ { p } \\}$ out of $p = \\delta$ possible symbols. This sub-sequence is followed by $T - 1$ elements of the blank category $a _ { \\theta }$ which is terminated at step $T$ by a delimiter symbol $a _ { p + 1 }$ and 10 more elements of the blank category. The network must learn to remember the initial 10 element sequence for $T$ time steps and output it after receiving the delimiter symbol. ",
|
| 561 |
+
"bbox": [
|
| 562 |
+
173,
|
| 563 |
+
680,
|
| 564 |
+
825,
|
| 565 |
+
819
|
| 566 |
+
],
|
| 567 |
+
"page_idx": 3
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"type": "text",
|
| 571 |
+
"text": "The goal of the adding task is to add two numbers together after a long delay. Each number is randomly picked at a unique position in a sequence of length $T$ . The sequence is composed of $T$ values sampled from a uniform distribution in the range $[ 0 , 1 )$ , with each value paired with an indicator value that identifies the value as one of the two numbers to remember (marked 1) or as a value to ignore (marked 0). The two numbers are positioned randomly in the sequence, the first in the range $[ 0 , \\frac { T } { 2 } - 1 ]$ and the second in the range $\\begin{array} { r l r } { { [ \\frac { T } { 2 } , T - 1 ] } } \\end{array}$ , where 0 marks the first element. The network must learn to identify and remember the two numbers and output their sum. ",
|
| 572 |
+
"bbox": [
|
| 573 |
+
174,
|
| 574 |
+
825,
|
| 575 |
+
825,
|
| 576 |
+
924
|
| 577 |
+
],
|
| 578 |
+
"page_idx": 3
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"type": "text",
|
| 582 |
+
"text": "The sequential MNIST task from Le et al. (2015), MNIST digits are flattened into vectors that can be traversed sequentially by a recurrent neural network. The goal is to classify the digit based on the sequential input of pixels. The simple variant of this task is with a simple flattening of the image matrices; the harder variant of this task includes a random permutation of the pixels in the input vector that is determined once for an experiment. The latter formulation introduces longer distance dependencies between pixels that must be interpreted by the classification model. ",
|
| 583 |
+
"bbox": [
|
| 584 |
+
174,
|
| 585 |
+
103,
|
| 586 |
+
823,
|
| 587 |
+
186
|
| 588 |
+
],
|
| 589 |
+
"page_idx": 4
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"type": "text",
|
| 593 |
+
"text": "The English Penn Treebank (PTB) dataset from Marcus et al. (1993) is an annotated corpus of English sentences, commonly used for benchmarking language models. We employ a sequential character prediction task: given a sentence, a recurrent neural network must predict the next character at each step, from left to right. We use input sequences of variable length, with each sequence containing one sentence. We model 49 characters including lowercase letters (all strings are in lowercase), numbers, common punctuation, and an unknown character placeholder. In our experiments on two subsets of the data: in the first, we first use $23 \\%$ of the data with strings with up to 75 characters and in the second we include over $9 9 \\%$ of the dataset, picking strings with up to 300 characters. ",
|
| 594 |
+
"bbox": [
|
| 595 |
+
174,
|
| 596 |
+
194,
|
| 597 |
+
825,
|
| 598 |
+
305
|
| 599 |
+
],
|
| 600 |
+
"page_idx": 4
|
| 601 |
+
},
|
| 602 |
+
{
|
| 603 |
+
"type": "text",
|
| 604 |
+
"text": "3.1 LOOSENING HARD ORTHOGONALITY CONSTRAINTS ",
|
| 605 |
+
"text_level": 1,
|
| 606 |
+
"bbox": [
|
| 607 |
+
178,
|
| 608 |
+
343,
|
| 609 |
+
566,
|
| 610 |
+
356
|
| 611 |
+
],
|
| 612 |
+
"page_idx": 4
|
| 613 |
+
},
|
| 614 |
+
{
|
| 615 |
+
"type": "text",
|
| 616 |
+
"text": "In this section, we experimentally explore the effect of loosening hard orthogonality constraints through loosening the spectral margin defined above for the hidden to hidden transition matrix. ",
|
| 617 |
+
"bbox": [
|
| 618 |
+
176,
|
| 619 |
+
376,
|
| 620 |
+
823,
|
| 621 |
+
404
|
| 622 |
+
],
|
| 623 |
+
"page_idx": 4
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"type": "text",
|
| 627 |
+
"text": "In all experiments, we employed RMSprop (Tieleman & Hinton, 2012) when not using geodesic gradient descent. We used minibatches of size 50 and for generated data (the copy and adding tasks), we assumed an epoch length of 100 minibatches. We cautiously introduced gradient clipping at magnitude 100 (unless stated otherwise) in all of our RNN experiments although it may not be required and we consistently applied a small weight decay of 0.0001. Unless otherwise specified, we trained all simple recurrent neural networks with the hidden to hidden matrix factorization as in (8) using geodesic gradient descent on the bases (learning rate $1 0 ^ { - 6 }$ ) and RMSprop on the other parameters (learning rate 0.0001), using a tanh transition nonlinearity, and clipping gradients of 100 magnitude. The neural network code was built on the Theano framework (Theano Development Team, 2016). When parameterizing a matrix in factorized form, we apply the weight decay on the composite matrix rather than on the factors in order to be consistent across experiments. For MNIST and PTB, test set metrics were computed based on the parameterization that gave the best validation set accuracy. ",
|
| 628 |
+
"bbox": [
|
| 629 |
+
173,
|
| 630 |
+
411,
|
| 631 |
+
825,
|
| 632 |
+
592
|
| 633 |
+
],
|
| 634 |
+
"page_idx": 4
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"type": "text",
|
| 638 |
+
"text": "3.1.1 CONVERGENCE ON SYNTHETIC MEMORY TASKS ",
|
| 639 |
+
"text_level": 1,
|
| 640 |
+
"bbox": [
|
| 641 |
+
174,
|
| 642 |
+
627,
|
| 643 |
+
560,
|
| 644 |
+
640
|
| 645 |
+
],
|
| 646 |
+
"page_idx": 4
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"type": "text",
|
| 650 |
+
"text": "For different sequence lengths $T$ of the copy and adding tasks, we trained a factorized RNN with 128 hidden units and various spectral margins $m$ . For the copy task, we used Elman networks without a transition non-linearity as in Henaff et al. (2016). We discuss our investigations into the use of a non-linearity on the copy task in the Appendix. ",
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
659,
|
| 654 |
+
825,
|
| 655 |
+
714
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 4
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "As shown in Figure 1 we see an increase in the rate of convergence as we increase the spectral margin. This observation generally holds across the tested sequence lengths ( $T = 2 0 0$ , $T \\stackrel { = } { = } 5 0 0$ , $T = 1 0 0 0 , \\ T = 1 0 0 0 0 )$ ; however, large spectral margins hinder convergence on extremely long sequence lengths. At sequence length $T = 1 0 0 0 0$ , parameterizations with spectral margins larger than 0.001 converge slower than when using a margin of 0.001. In addition, the experiment without a margin failed to converge on the longest sequence length. This follows the expected pattern where stepping away from the Stiefel manifold may help with gradient descent optimization but loosening orthogonality constraints can reduce the stability of signal propagation through the network. ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
174,
|
| 664 |
+
722,
|
| 665 |
+
825,
|
| 666 |
+
833
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 4
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "For the adding task, we trained a factorized RNN on $T = 1 0 0 0$ length sequences, using a ReLU activation function on the hidden to hidden transition matrix. The mean squared error (MSE) is shown for different spectral margins in Figure 5 in the Appendix. Testing spectral margins $m = 0$ , $m = 1 , \\ m = 1 0 , \\ m = 1 0 0$ , and no margin, we find that the models with the purely orthogonal ( $\\mathrm { ~ m ~ } = 0$ ) and the unconstrained (no margin) transition matrices failed to begin converging beyond baseline MSE within 2000 epochs. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
840,
|
| 676 |
+
825,
|
| 677 |
+
922
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 4
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "image",
|
| 683 |
+
"img_path": "images/bedb92ba810d6f82c67aaac3918c6706b07e966d8d209fab7a969dfdb8a2a818.jpg",
|
| 684 |
+
"image_caption": [
|
| 685 |
+
"Figure 1: Accuracy curves on the copy task for sequence lengths of (from left to right) ${ \\mathrm { T } } { = } 2 0 0$ , $\\mathrm { T } { = } 5 0 0$ , $\\scriptstyle \\mathrm { T = 1 0 0 0 }$ , $\\scriptstyle \\mathrm { T = 1 0 0 0 0 }$ given different spectral margins. Convergence speed increases with margin size; however, large margin sizes are ineffective at longer sequence lengths $\\mathrm { { T } = 1 0 0 0 0 }$ , right). "
|
| 686 |
+
],
|
| 687 |
+
"image_footnote": [],
|
| 688 |
+
"bbox": [
|
| 689 |
+
187,
|
| 690 |
+
106,
|
| 691 |
+
807,
|
| 692 |
+
181
|
| 693 |
+
],
|
| 694 |
+
"page_idx": 5
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"type": "table",
|
| 698 |
+
"img_path": "images/59390e5b14a57a5e0e57e788b41a4d98df3a115218e862bcaf5543d3dfe9a398.jpg",
|
| 699 |
+
"table_caption": [
|
| 700 |
+
"Table 1: Ordered sequential MNIST classification with different margin sizes and an LSTM. "
|
| 701 |
+
],
|
| 702 |
+
"table_footnote": [],
|
| 703 |
+
"table_body": "<table><tr><td>margin</td><td>initialization</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal</td><td>77.18</td></tr><tr><td>0.001</td><td>orthogonal</td><td>79.26</td></tr><tr><td>0.01</td><td>orthogonal</td><td>85.47</td></tr><tr><td>0.1</td><td>orthogonal</td><td>94.10</td></tr><tr><td>1</td><td>orthogonal</td><td>93.84</td></tr><tr><td>none</td><td>orthogonal</td><td>93.24</td></tr><tr><td>none</td><td>Glorot normal</td><td>66.71</td></tr><tr><td>none</td><td>identity</td><td>53.53</td></tr><tr><td></td><td>LSTM</td><td>97.30</td></tr></table>",
|
| 704 |
+
"bbox": [
|
| 705 |
+
210,
|
| 706 |
+
256,
|
| 707 |
+
450,
|
| 708 |
+
396
|
| 709 |
+
],
|
| 710 |
+
"page_idx": 5
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"type": "table",
|
| 714 |
+
"img_path": "images/cddb91b2932bb0afc2b5f2bc754c9ca058dd00a9d6eeacd31b573f25f9f2ffdf.jpg",
|
| 715 |
+
"table_caption": [
|
| 716 |
+
"Table 2: Permuted sequential MNIST classification with different margin sizes and an LSTM. "
|
| 717 |
+
],
|
| 718 |
+
"table_footnote": [],
|
| 719 |
+
"table_body": "<table><tr><td>margin</td><td>initialization</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal</td><td>83.56</td></tr><tr><td>0.001 0.01</td><td>orthogonal</td><td>84.59 89.63</td></tr><tr><td>0.1</td><td>orthogonal orthogonal</td><td>91.44</td></tr><tr><td>1</td><td>orthogonal</td><td>90.83</td></tr><tr><td>none</td><td>orthogonal</td><td>90.51</td></tr><tr><td>none</td><td>Glorot normal</td><td>79.33</td></tr><tr><td>none</td><td>identity</td><td></td></tr><tr><td></td><td>LSTM</td><td>42.72 92.62</td></tr></table>",
|
| 720 |
+
"bbox": [
|
| 721 |
+
545,
|
| 722 |
+
256,
|
| 723 |
+
787,
|
| 724 |
+
396
|
| 725 |
+
],
|
| 726 |
+
"page_idx": 5
|
| 727 |
+
},
|
| 728 |
+
{
|
| 729 |
+
"type": "text",
|
| 730 |
+
"text": "3.1.2 PERFORMANCE ON REAL DATA ",
|
| 731 |
+
"text_level": 1,
|
| 732 |
+
"bbox": [
|
| 733 |
+
176,
|
| 734 |
+
465,
|
| 735 |
+
441,
|
| 736 |
+
479
|
| 737 |
+
],
|
| 738 |
+
"page_idx": 5
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"type": "text",
|
| 742 |
+
"text": "Having confirmed that an orthogonality constraint can negatively impact convergence rate, we seek to investigate the effect on model performance for tasks on real data. We show the results of experiments on permuted sequential MNIST in Table 2 and ordered sequential MNIST in Table 1. The loss curves are shown in Figure 6 in the Appendix and reveal an increased convergence rate for larger spectral margins. We trained the factorized RNN models with 128 hidden units for 120 epochs. We also trained an LSTM with 128 hidden units on both tasks for 150 epochs, configured with peephole connections, orthogonally initialized (and forget gate bias initialized to one), and trained with RMSprop (learning rate 0.0001, clipping gradients of magnitude 1). ",
|
| 743 |
+
"bbox": [
|
| 744 |
+
173,
|
| 745 |
+
491,
|
| 746 |
+
825,
|
| 747 |
+
603
|
| 748 |
+
],
|
| 749 |
+
"page_idx": 5
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"type": "text",
|
| 753 |
+
"text": "We show the results of experiments on PTB character prediction, in terms of bits per character (bpc) and prediction accuracy, for a subset of short sequences (up to 75 characters; $23 \\%$ of data) in Table 3 and for a subset of long sequences (up to 300 characters; $9 9 \\%$ of data) in Table 4. We trained factorized RNN models with 512 hidden units for 200 epochs with geodesic gradient descent on the bases (learning rate $1 0 ^ { - 6 }$ ) and RMSprop on the other parameters (learning rate 0.001), using a tanh transition nonlinearity, and clipping gradients of 30 magnitude. ",
|
| 754 |
+
"bbox": [
|
| 755 |
+
174,
|
| 756 |
+
609,
|
| 757 |
+
825,
|
| 758 |
+
694
|
| 759 |
+
],
|
| 760 |
+
"page_idx": 5
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"type": "text",
|
| 764 |
+
"text": "Interestingly, for both the ordered and permuted sequential MNIST tasks, models with a non-zero margin significantly outperform those that are constrained to have purely orthogonal transition matrices (margin of zero). The best results on both the ordered and sequential MNIST tasks were yielded by models with a spectral margin of 0.1, at $9 4 . 1 0 \\%$ accuracy and $9 1 . 4 4 \\%$ accuracy, respectively. An LSTM outperformed the RNNs in both tasks; nevertheless, RNNs with hidden to hidden transitions initialized as orthogonal matrices performed admirably without a memory component and without all of the additional parameters associated with gates. Indeed, orthogonally initialized RNNs performed almost on par with the LSTM in the permuted sequential MNIST task which presents longer distance dependencies than the ordered task. Although the optimal margin appears to be 0.1, RNNs with large margins perform almost identically to an RNN without a margin, as long as the transition matrix is initialized as orthogonal. On these tasks, orthogonal initialization appears to significantly outperform Glorot normal initialization (Glorot & Bengio, 2010) or initializing the matrix as identity. It is interesting to note that for the MNIST tasks, orthogonal initialization appears useful while orthogonality constraints appear mainly detrimental. This suggests that while orthogonality helps early training by stabilizing gradient flow across many time steps, orthogonality constraints may need to be loosened on some tasks so as not to over-constrain the model’s representational ability. ",
|
| 765 |
+
"bbox": [
|
| 766 |
+
173,
|
| 767 |
+
700,
|
| 768 |
+
823,
|
| 769 |
+
729
|
| 770 |
+
],
|
| 771 |
+
"page_idx": 5
|
| 772 |
+
},
|
| 773 |
+
{
|
| 774 |
+
"type": "table",
|
| 775 |
+
"img_path": "images/cd8a0dba76f1ffb1c93b8742fb58e008b64a43d4e45215e3676dd3f66bf24040.jpg",
|
| 776 |
+
"table_caption": [
|
| 777 |
+
"Table 3: Character prediction on PTB sentences of to 75 characters, using different margins. "
|
| 778 |
+
],
|
| 779 |
+
"table_footnote": [],
|
| 780 |
+
"table_body": "<table><tr><td>margin</td><td>initialization</td><td>bpc</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal</td><td>2.16</td><td>55.31</td></tr><tr><td>0.01</td><td>orthogonal</td><td>2.16</td><td>55.33</td></tr><tr><td>0.1</td><td>orthogonal</td><td>2.12</td><td>55.37</td></tr><tr><td>1</td><td>orthogonal</td><td>2.06</td><td>57.07</td></tr><tr><td>100</td><td>orthogonal</td><td>2.04</td><td>57.51</td></tr><tr><td>none</td><td>orthogonal</td><td>2.06</td><td>57.38</td></tr><tr><td>none</td><td>Glorot normal</td><td>2.08</td><td>57.37</td></tr><tr><td>none</td><td>identity</td><td>2.25</td><td>53.83</td></tr></table>",
|
| 781 |
+
"bbox": [
|
| 782 |
+
191,
|
| 783 |
+
755,
|
| 784 |
+
472,
|
| 785 |
+
882
|
| 786 |
+
],
|
| 787 |
+
"page_idx": 5
|
| 788 |
+
},
|
| 789 |
+
{
|
| 790 |
+
"type": "table",
|
| 791 |
+
"img_path": "images/7ce91b05215e78d9fb08c9be66daa286806ba018d8dcc0ad9a48414ddbf85a06.jpg",
|
| 792 |
+
"table_caption": [
|
| 793 |
+
"Table 4: Character prediction on PTB sentences of up to 300 characters, using different margins. "
|
| 794 |
+
],
|
| 795 |
+
"table_footnote": [],
|
| 796 |
+
"table_body": "<table><tr><td>margin</td><td>initialization bpc</td><td>accuracy</td></tr><tr><td>0</td><td>orthogonal 2.20</td><td>54.88</td></tr><tr><td>0.01</td><td>orthogonal 2.20</td><td>54.83</td></tr><tr><td>0.1</td><td>orthogonal 2.24</td><td>54.10</td></tr><tr><td>1</td><td>orthogonal 2.36</td><td>51.12</td></tr><tr><td>100</td><td>orthogonal 2.36</td><td>51.20</td></tr><tr><td>none</td><td>orthogonal 2.34</td><td>51.30</td></tr><tr><td>none</td><td>Glorot normal 2.34</td><td>51.04</td></tr><tr><td>none</td><td>identity 2.68</td><td>45.35</td></tr></table>",
|
| 797 |
+
"bbox": [
|
| 798 |
+
524,
|
| 799 |
+
755,
|
| 800 |
+
808,
|
| 801 |
+
882
|
| 802 |
+
],
|
| 803 |
+
"page_idx": 5
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"type": "text",
|
| 807 |
+
"text": "",
|
| 808 |
+
"bbox": [
|
| 809 |
+
174,
|
| 810 |
+
103,
|
| 811 |
+
825,
|
| 812 |
+
297
|
| 813 |
+
],
|
| 814 |
+
"page_idx": 6
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"type": "text",
|
| 818 |
+
"text": "Curiously, larger margins and even models without sigmoidal constraints on the spectrum (no margin) performed well as long as they were initialized to be orthogonal, suggesting that evolution away from orthogonality is not a serious problem on MNIST. It is not surprising that orthogonality is useful for the MNIST tasks since they depend on long distance signal propagation with a single output at the end of the input sequence. On the other hand, character prediction with PTB produces an output at every time step. Constraining deviation from orthogonality proved detrimental for short sentences (Table 3) and beneficial when long sentences were included (Table 4). Furthermore, Glorot normal initialization did not perform worse than orthogonal initialization for PTB. Since an output is generated for every character in a sentence, short distance signal propagation is possible. Thus it is possible that the RNN is first learning very local dependencies between neighbouring characters and that given enough context, constraining deviation from orthogonality can help force the network to learn longer distance dependencies. ",
|
| 819 |
+
"bbox": [
|
| 820 |
+
174,
|
| 821 |
+
305,
|
| 822 |
+
825,
|
| 823 |
+
472
|
| 824 |
+
],
|
| 825 |
+
"page_idx": 6
|
| 826 |
+
},
|
| 827 |
+
{
|
| 828 |
+
"type": "text",
|
| 829 |
+
"text": "3.1.3 SPECTRAL AND GRADIENT EVOLUTION ",
|
| 830 |
+
"text_level": 1,
|
| 831 |
+
"bbox": [
|
| 832 |
+
173,
|
| 833 |
+
486,
|
| 834 |
+
500,
|
| 835 |
+
501
|
| 836 |
+
],
|
| 837 |
+
"page_idx": 6
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"type": "text",
|
| 841 |
+
"text": "It is interesting to note that even long sequence lengths $( \\mathrm { T } { = } 1 0 0 0 )$ ) in the copy task can be solved efficiently with rather large margins on the spectrum. In Figure 2 we look at the gradient propagation of the loss from the last time step in the network with respect to the hidden activations. We can see that for a purely orthogonal parameterization of the transition matrix (when the margin is zero), the gradient norm is preserved across time steps, as expected. We further observe that with increasing margin size, the number of update steps over which this norm preservation survives decreases, though surprisingly not as quickly as expected. ",
|
| 842 |
+
"bbox": [
|
| 843 |
+
173,
|
| 844 |
+
511,
|
| 845 |
+
825,
|
| 846 |
+
608
|
| 847 |
+
],
|
| 848 |
+
"page_idx": 6
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"type": "image",
|
| 852 |
+
"img_path": "images/e71e3ebaed3b5fd5794943085fc9dd1a230a8a632c97e25751f215ada0b27e31.jpg",
|
| 853 |
+
"image_caption": [
|
| 854 |
+
"Figure 2: The norm of the gradient of the loss from the last time step with respect to the hidden units at a given time step for a length 220 RNN over 1000 update iterations for different margins. Iterations are along the abscissa and time steps are denoted along the ordinate. The first column margins are: 0, 0.001, 0.01. The second column margins are: 0.1, 1, no margin. Gradient norms are normalized across the time dimension. "
|
| 855 |
+
],
|
| 856 |
+
"image_footnote": [],
|
| 857 |
+
"bbox": [
|
| 858 |
+
220,
|
| 859 |
+
622,
|
| 860 |
+
779,
|
| 861 |
+
771
|
| 862 |
+
],
|
| 863 |
+
"page_idx": 6
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"type": "text",
|
| 867 |
+
"text": "Although the deviation of singular values from one should be slowed by the sigmoidal parameterizations, even parameterizations without a sigmoid (no margin) can be effectively trained for all but the longest sequence lengths. This suggests that the spectrum is not deviating far from orthogonality and that inputs to the hidden to hidden transitions are mostly not aligned along the dimensions of greatest expansion or contraction. We evaluated the spread of the spectrum in all of our experiments and found that indeed, singular values tend to stay well within their prescribed bounds and only reach the margin when using a very large learning rate that does not permit convergence. Furthermore, when transition matrices are initialized as orthogonal, singular values remain near one throughout training even without a sigmoidal margin for tasks that require long term memory (copy, adding, sequential MNIST). On the other hand, singular value distributions tend to drift away from one for PTB character prediction which may help explain why enforcing an orthogonality constraint can be helpful for this task, when modeling long sequences. Interestingly, singular values spread out less for longer sequence lengths (nevertheless, the $\\scriptstyle \\mathrm { T = 1 0 0 0 0 }$ copy task could not be solved with no sigmoid on the spectrum). ",
|
| 868 |
+
"bbox": [
|
| 869 |
+
174,
|
| 870 |
+
867,
|
| 871 |
+
823,
|
| 872 |
+
924
|
| 873 |
+
],
|
| 874 |
+
"page_idx": 6
|
| 875 |
+
},
|
| 876 |
+
{
|
| 877 |
+
"type": "text",
|
| 878 |
+
"text": "",
|
| 879 |
+
"bbox": [
|
| 880 |
+
174,
|
| 881 |
+
103,
|
| 882 |
+
825,
|
| 883 |
+
242
|
| 884 |
+
],
|
| 885 |
+
"page_idx": 7
|
| 886 |
+
},
|
| 887 |
+
{
|
| 888 |
+
"type": "text",
|
| 889 |
+
"text": "We visualize the spread of singular values for different model parameterizations on the permuted sequential MNIST task in Figure 3. Curiously, we find that the distribution of singular values tends to shift upward to a mean of approximately 1.05 on both the ordered and permuted sequential MNIST tasks. We note that in those experiments, a tanh transition nonlinearity was used which is contractive in both the forward signal pass and the gradient backward pass. An upward shift in the distribution of singular values of the transition matrix would help compensate for that contraction. Indeed, (Saxe et al., 2013) describe this as a possibly good regime for learning in deep neural networks. That the model appears to evolve toward this regime suggests that deviating from it may incur a cost. This is interesting because the cost function cannot take into account numerical issues such as vanishing or exploding gradients (or forward signals); we do not know what could make this deviation costly. That the transition matrix may be compensating for the contraction of the tanh is supported by further experiments: applying a 1.05 pre-activation gain appears to allow a model with a margin of 0 to nearly match the top performance reached on both of the MNIST tasks. Furthermore, when using the OPLU norm-preserving activation function (Chernodub & Nowicki, 2016), we found that orthogonally initialized models performed equally well with all margins, achieving over $90 \\%$ accuracy on the permuted sequential MNIST task. Unlike orthgonally initialized models, the RNN on the bottom right of Figure 3 with Glorot normal initialized transition matrices, begins and ends with a wide singular spectrum. While there is no clear positive shift in the distribution of singular values, the mean value appears to very gradually increase for both the ordered and permuted sequential MNIST tasks. If the model is to be expected to positively shift singular values to compensate for the contractivity of the tanh nonlinearity, it is not doing so well for the Glorot-initialized case; however, this may be due to the inefficiency of training as a result of vanishing gradients, given that initialization. ",
|
| 890 |
+
"bbox": [
|
| 891 |
+
173,
|
| 892 |
+
250,
|
| 893 |
+
825,
|
| 894 |
+
568
|
| 895 |
+
],
|
| 896 |
+
"page_idx": 7
|
| 897 |
+
},
|
| 898 |
+
{
|
| 899 |
+
"type": "image",
|
| 900 |
+
"img_path": "images/c37c480f2de6dda53baf106dd72e4b8f3118c713cf6c5957311a6d4222ee2528.jpg",
|
| 901 |
+
"image_caption": [
|
| 902 |
+
"Figure 3: Singular value evolution on the permuted sequential MNIST task for factorized RNNs with different margin sizes. Margins are, from left to right: top row: 0.001, 0.01, 0.1; bottom row: 1, no margin, no margin. The singular value distributions are summarized with the mean (green line, center) and standard deviation (green shading about mean), minimum (red, bottom) and maximum (blue, top) values. All models are initialized with orthogonal hidden to hidden transition matrices except for the model on the bottom right where Glorot normal initialization is used. "
|
| 903 |
+
],
|
| 904 |
+
"image_footnote": [],
|
| 905 |
+
"bbox": [
|
| 906 |
+
192,
|
| 907 |
+
604,
|
| 908 |
+
807,
|
| 909 |
+
792
|
| 910 |
+
],
|
| 911 |
+
"page_idx": 7
|
| 912 |
+
},
|
| 913 |
+
{
|
| 914 |
+
"type": "text",
|
| 915 |
+
"text": "3.2 EXPLORING SOFT ORTHOGONALITY CONSTRAINTS ",
|
| 916 |
+
"text_level": 1,
|
| 917 |
+
"bbox": [
|
| 918 |
+
176,
|
| 919 |
+
104,
|
| 920 |
+
560,
|
| 921 |
+
117
|
| 922 |
+
],
|
| 923 |
+
"page_idx": 8
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"type": "text",
|
| 927 |
+
"text": "Having established that it may indeed be useful to step away from orthogonality, here we explore two forms of soft constraints (rather than hard bounds as above) on hidden to hidden transition matrix orthogonality. The first is a simple penalty that directly encourages a transition matrix W to be orthogonal, of the form $\\lambda | | \\mathbf { W } ^ { T } \\mathbf { W } \\bar { \\mathbf { \\Lambda } } - \\mathbf { I } | | _ { 2 } ^ { 2 }$ . This is similar to the orthogonality penalty introduced by Henaff et al. (2016). In the first two subfigures on the left of Figure 4, we explore the effect of weakening this form of regularization. We trained both a regular non-factorized RNN on the $T = 2 0 0$ copy task and a factorized RNN with orthogonal bases on the $T = 5 0 0$ copy task. For the regular RNN, we had to reduce the learning rate to $\\mathrm { \\bar { 1 0 } ^ { - 5 } }$ . Here again we see that weakening the strength of the orthogonality-encouraging penalty can increase convergence speed. ",
|
| 928 |
+
"bbox": [
|
| 929 |
+
174,
|
| 930 |
+
133,
|
| 931 |
+
825,
|
| 932 |
+
258
|
| 933 |
+
],
|
| 934 |
+
"page_idx": 8
|
| 935 |
+
},
|
| 936 |
+
{
|
| 937 |
+
"type": "image",
|
| 938 |
+
"img_path": "images/687b45fda05840b6cde45ba158ba70663757e961b6ca8f4fafd56abe7466fd47.jpg",
|
| 939 |
+
"image_caption": [
|
| 940 |
+
"Figure 4: Accuracy curves on the copy task for different strengths of soft orthogonality constraints. A soft orthogonality constraint is applied to the transition matrix W for a regular RNN on $T = 2 0 0$ (Left) and the same is applied on a factorized RNN on $T = 5 0 0$ (Left center). Another constraint in the form of a mean one Gaussian prior on the singular values is applied to a factorized RNN on $T = 2 0 0$ (Right center); the same is applied to a factorized RNN with a sigmoidal parameterization of the spectrum, using a large margin of 1 (Right). Loosening orthogonality speeds convergence. "
|
| 941 |
+
],
|
| 942 |
+
"image_footnote": [],
|
| 943 |
+
"bbox": [
|
| 944 |
+
187,
|
| 945 |
+
286,
|
| 946 |
+
808,
|
| 947 |
+
358
|
| 948 |
+
],
|
| 949 |
+
"page_idx": 8
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"type": "text",
|
| 953 |
+
"text": "The second approach we explore replaces the sigmoidal margin parameterization with a mean one Gaussian prior on the singular values. In the two right subfigures of Figure 4, we visualize the accuracy on the length 200 copy task, using geoSGD (learning rate $1 0 ^ { - 6 }$ ) to keep $\\mathbf { U }$ and $\\mathbf { V }$ orthogonal and different strengths of a Gaussian prior with mean one on the singular values. We trained these experiments with regular SGD on the spectrum and other non-orthogonal parameter matrices, using a $\\mathrm { i 0 ^ { - 5 } }$ learning rate. We see that priors which are too strong lead to slow convergence. Loosening the strength of the prior makes the optimization more efficient. Furthermore, we compare a direct parameterization of the spectrum (no sigmoid) in Figure 4 with a sigmoidal parameterization, using a large margin of 1. Without the sigmoidal parameterization, optimization quickly becomes unstable; on the other hand, the optimization also becomes unstable if the prior is removed completely in the sigmoidal formulation (margin 1). These results further motivate the idea that parameterizations that deviate from orthogonality may perform better than purely orthogonal ones, as long as they are sufficiently constrained to avoid instability during training. ",
|
| 954 |
+
"bbox": [
|
| 955 |
+
173,
|
| 956 |
+
482,
|
| 957 |
+
825,
|
| 958 |
+
662
|
| 959 |
+
],
|
| 960 |
+
"page_idx": 8
|
| 961 |
+
},
|
| 962 |
+
{
|
| 963 |
+
"type": "text",
|
| 964 |
+
"text": "4 CONCLUSIONS ",
|
| 965 |
+
"text_level": 1,
|
| 966 |
+
"bbox": [
|
| 967 |
+
176,
|
| 968 |
+
693,
|
| 969 |
+
328,
|
| 970 |
+
708
|
| 971 |
+
],
|
| 972 |
+
"page_idx": 8
|
| 973 |
+
},
|
| 974 |
+
{
|
| 975 |
+
"type": "text",
|
| 976 |
+
"text": "We have explored a number of methods for controlling the expansivity of gradients during backpropagation based learning in RNNs through manipulating orthogonality constraints and regularization on matrices. Our experiments indicate that while orthogonal initialization may be beneficial, maintaining constraints on orthogonality can be detrimental. Indeed, moving away from hard constraints on matrix orthogonality can help improve optimization convergence rate and model performance. However, we also observe with synthetic tasks that relaxing regularization which encourages the spectral norms of weight matrices to be close to one, or allowing bounds on the spectral norms of weight matrices to be too wide, can reverse these gains and may lead to unstable optimization. ",
|
| 977 |
+
"bbox": [
|
| 978 |
+
174,
|
| 979 |
+
729,
|
| 980 |
+
825,
|
| 981 |
+
842
|
| 982 |
+
],
|
| 983 |
+
"page_idx": 8
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"type": "text",
|
| 987 |
+
"text": "ACKNOWLEDGMENTS ",
|
| 988 |
+
"text_level": 1,
|
| 989 |
+
"bbox": [
|
| 990 |
+
176,
|
| 991 |
+
868,
|
| 992 |
+
326,
|
| 993 |
+
881
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 8
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "text",
|
| 999 |
+
"text": "We thank the Natural Sciences and Engineeering Research Council (NSERC) of Canada and Samsung for supporting this research. ",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
174,
|
| 1002 |
+
895,
|
| 1003 |
+
821,
|
| 1004 |
+
924
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 8
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "text",
|
| 1010 |
+
"text": "REFERENCES ",
|
| 1011 |
+
"text_level": 1,
|
| 1012 |
+
"bbox": [
|
| 1013 |
+
174,
|
| 1014 |
+
102,
|
| 1015 |
+
287,
|
| 1016 |
+
118
|
| 1017 |
+
],
|
| 1018 |
+
"page_idx": 9
|
| 1019 |
+
},
|
| 1020 |
+
{
|
| 1021 |
+
"type": "text",
|
| 1022 |
+
"text": "Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. arXiv preprint arXiv:1511.06464, 2015. ",
|
| 1023 |
+
"bbox": [
|
| 1024 |
+
174,
|
| 1025 |
+
126,
|
| 1026 |
+
823,
|
| 1027 |
+
155
|
| 1028 |
+
],
|
| 1029 |
+
"page_idx": 9
|
| 1030 |
+
},
|
| 1031 |
+
{
|
| 1032 |
+
"type": "text",
|
| 1033 |
+
"text": "Artem Chernodub and Dimitri Nowicki. Norm-preserving orthogonal permutation linear unit activation functions (oplu). arXiv preprint arXiv:1604.02313, 2016. ",
|
| 1034 |
+
"bbox": [
|
| 1035 |
+
174,
|
| 1036 |
+
162,
|
| 1037 |
+
823,
|
| 1038 |
+
193
|
| 1039 |
+
],
|
| 1040 |
+
"page_idx": 9
|
| 1041 |
+
},
|
| 1042 |
+
{
|
| 1043 |
+
"type": "text",
|
| 1044 |
+
"text": "Xavier Glorot and Yoshua Bengio. Understanding the difficulty of training deep feedforward neural networks. In Aistats, volume 9, pp. 249–256, 2010. ",
|
| 1045 |
+
"bbox": [
|
| 1046 |
+
173,
|
| 1047 |
+
200,
|
| 1048 |
+
823,
|
| 1049 |
+
231
|
| 1050 |
+
],
|
| 1051 |
+
"page_idx": 9
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"type": "text",
|
| 1055 |
+
"text": "Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Delving deep into rectifiers: Surpassing human-level performance on imagenet classification. In Proceedings of the IEEE international conference on computer vision, pp. 1026–1034, 2015. ",
|
| 1056 |
+
"bbox": [
|
| 1057 |
+
176,
|
| 1058 |
+
238,
|
| 1059 |
+
823,
|
| 1060 |
+
281
|
| 1061 |
+
],
|
| 1062 |
+
"page_idx": 9
|
| 1063 |
+
},
|
| 1064 |
+
{
|
| 1065 |
+
"type": "text",
|
| 1066 |
+
"text": "Mikael Henaff, Arthur Szlam, and Yann LeCun. Orthogonal rnns and long-memory tasks. arXiv preprint arXiv:1602.06662, 2016. ",
|
| 1067 |
+
"bbox": [
|
| 1068 |
+
171,
|
| 1069 |
+
290,
|
| 1070 |
+
825,
|
| 1071 |
+
320
|
| 1072 |
+
],
|
| 1073 |
+
"page_idx": 9
|
| 1074 |
+
},
|
| 1075 |
+
{
|
| 1076 |
+
"type": "text",
|
| 1077 |
+
"text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
|
| 1078 |
+
"bbox": [
|
| 1079 |
+
171,
|
| 1080 |
+
328,
|
| 1081 |
+
823,
|
| 1082 |
+
357
|
| 1083 |
+
],
|
| 1084 |
+
"page_idx": 9
|
| 1085 |
+
},
|
| 1086 |
+
{
|
| 1087 |
+
"type": "text",
|
| 1088 |
+
"text": "David Krueger and Roland Memisevic. Regularizing rnns by stabilizing activations. arXiv preprint arXiv:1511.08400, 2015. ",
|
| 1089 |
+
"bbox": [
|
| 1090 |
+
173,
|
| 1091 |
+
366,
|
| 1092 |
+
823,
|
| 1093 |
+
395
|
| 1094 |
+
],
|
| 1095 |
+
"page_idx": 9
|
| 1096 |
+
},
|
| 1097 |
+
{
|
| 1098 |
+
"type": "text",
|
| 1099 |
+
"text": "Quoc V Le, Navdeep Jaitly, and Geoffrey E Hinton. A simple way to initialize recurrent networks of rectified linear units. arXiv preprint arXiv:1504.00941, 2015. ",
|
| 1100 |
+
"bbox": [
|
| 1101 |
+
173,
|
| 1102 |
+
404,
|
| 1103 |
+
823,
|
| 1104 |
+
433
|
| 1105 |
+
],
|
| 1106 |
+
"page_idx": 9
|
| 1107 |
+
},
|
| 1108 |
+
{
|
| 1109 |
+
"type": "text",
|
| 1110 |
+
"text": "Yann LeCun, Leon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to ´ document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. ",
|
| 1111 |
+
"bbox": [
|
| 1112 |
+
173,
|
| 1113 |
+
440,
|
| 1114 |
+
823,
|
| 1115 |
+
470
|
| 1116 |
+
],
|
| 1117 |
+
"page_idx": 9
|
| 1118 |
+
},
|
| 1119 |
+
{
|
| 1120 |
+
"type": "text",
|
| 1121 |
+
"text": "Mitchell P Marcus, Mary Ann Marcinkiewicz, and Beatrice Santorini. Building a large annotated corpus of english: The penn treebank. Computational linguistics, 19(2):313–330, 1993. ",
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
171,
|
| 1124 |
+
478,
|
| 1125 |
+
823,
|
| 1126 |
+
508
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 9
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "text",
|
| 1132 |
+
"text": "Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In Proceedings of the 27th International Conference on Machine Learning (ICML-10), pp. 807–814, 2010. ",
|
| 1133 |
+
"bbox": [
|
| 1134 |
+
176,
|
| 1135 |
+
516,
|
| 1136 |
+
823,
|
| 1137 |
+
559
|
| 1138 |
+
],
|
| 1139 |
+
"page_idx": 9
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"type": "text",
|
| 1143 |
+
"text": "Yasunori Nishimori. A note on riemannian optimization methods on the stiefel and the grassmann manifolds. dim, 1:2, 2005. ",
|
| 1144 |
+
"bbox": [
|
| 1145 |
+
173,
|
| 1146 |
+
568,
|
| 1147 |
+
823,
|
| 1148 |
+
598
|
| 1149 |
+
],
|
| 1150 |
+
"page_idx": 9
|
| 1151 |
+
},
|
| 1152 |
+
{
|
| 1153 |
+
"type": "text",
|
| 1154 |
+
"text": "Razvan Pascanu, Tomas Mikolov, and Yoshua Bengio. On the difficulty of training recurrent neural networks. ICML (3), 28:1310–1318, 2013. ",
|
| 1155 |
+
"bbox": [
|
| 1156 |
+
174,
|
| 1157 |
+
606,
|
| 1158 |
+
821,
|
| 1159 |
+
636
|
| 1160 |
+
],
|
| 1161 |
+
"page_idx": 9
|
| 1162 |
+
},
|
| 1163 |
+
{
|
| 1164 |
+
"type": "text",
|
| 1165 |
+
"text": "Andrew M Saxe, James L McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. arXiv preprint arXiv:1312.6120, 2013. ",
|
| 1166 |
+
"bbox": [
|
| 1167 |
+
173,
|
| 1168 |
+
643,
|
| 1169 |
+
821,
|
| 1170 |
+
674
|
| 1171 |
+
],
|
| 1172 |
+
"page_idx": 9
|
| 1173 |
+
},
|
| 1174 |
+
{
|
| 1175 |
+
"type": "text",
|
| 1176 |
+
"text": "Hemant D Tagare. Notes on optimization on stiefel manifolds. Technical report, Tech. Rep., Yale University, 2011. ",
|
| 1177 |
+
"bbox": [
|
| 1178 |
+
173,
|
| 1179 |
+
681,
|
| 1180 |
+
821,
|
| 1181 |
+
712
|
| 1182 |
+
],
|
| 1183 |
+
"page_idx": 9
|
| 1184 |
+
},
|
| 1185 |
+
{
|
| 1186 |
+
"type": "text",
|
| 1187 |
+
"text": "Theano Development Team. Theano: A Python framework for fast computation of mathematical expressions. arXiv e-prints, abs/1605.02688, May 2016. URL http://arxiv.org/abs/ 1605.02688. ",
|
| 1188 |
+
"bbox": [
|
| 1189 |
+
173,
|
| 1190 |
+
719,
|
| 1191 |
+
823,
|
| 1192 |
+
762
|
| 1193 |
+
],
|
| 1194 |
+
"page_idx": 9
|
| 1195 |
+
},
|
| 1196 |
+
{
|
| 1197 |
+
"type": "text",
|
| 1198 |
+
"text": "T. Tieleman and G. Hinton. Lecture 6.5—RmsProp: Divide the gradient by a running average of its recent magnitude. COURSERA: Neural Networks for Machine Learning, 2012. ",
|
| 1199 |
+
"bbox": [
|
| 1200 |
+
173,
|
| 1201 |
+
771,
|
| 1202 |
+
821,
|
| 1203 |
+
800
|
| 1204 |
+
],
|
| 1205 |
+
"page_idx": 9
|
| 1206 |
+
},
|
| 1207 |
+
{
|
| 1208 |
+
"type": "text",
|
| 1209 |
+
"text": "Scott Wisdom, Thomas Powers, John R. Hershey, Jonathan Le Roux, and Les Atlas. Full-capacity unitary recurrent neural networks. To appear in NIPS, 2016. ",
|
| 1210 |
+
"bbox": [
|
| 1211 |
+
173,
|
| 1212 |
+
809,
|
| 1213 |
+
823,
|
| 1214 |
+
838
|
| 1215 |
+
],
|
| 1216 |
+
"page_idx": 9
|
| 1217 |
+
},
|
| 1218 |
+
{
|
| 1219 |
+
"type": "text",
|
| 1220 |
+
"text": "5 APPENDIX ",
|
| 1221 |
+
"text_level": 1,
|
| 1222 |
+
"bbox": [
|
| 1223 |
+
174,
|
| 1224 |
+
102,
|
| 1225 |
+
294,
|
| 1226 |
+
117
|
| 1227 |
+
],
|
| 1228 |
+
"page_idx": 10
|
| 1229 |
+
},
|
| 1230 |
+
{
|
| 1231 |
+
"type": "text",
|
| 1232 |
+
"text": "5.1 ADDITIONAL FIGURES ",
|
| 1233 |
+
"text_level": 1,
|
| 1234 |
+
"bbox": [
|
| 1235 |
+
174,
|
| 1236 |
+
136,
|
| 1237 |
+
369,
|
| 1238 |
+
150
|
| 1239 |
+
],
|
| 1240 |
+
"page_idx": 10
|
| 1241 |
+
},
|
| 1242 |
+
{
|
| 1243 |
+
"type": "image",
|
| 1244 |
+
"img_path": "images/dbbb26122d9c1b18baef9fb3969444306e99337b717346b55304b1882d89af7d.jpg",
|
| 1245 |
+
"image_caption": [
|
| 1246 |
+
"Figure 5: Mean squared error (MSE) curves on the adding task for different spectral margins $m$ . For a trivial baseline solution of always outputting the same number, the expected baseline MSE is 0.167. "
|
| 1247 |
+
],
|
| 1248 |
+
"image_footnote": [],
|
| 1249 |
+
"bbox": [
|
| 1250 |
+
352,
|
| 1251 |
+
169,
|
| 1252 |
+
640,
|
| 1253 |
+
294
|
| 1254 |
+
],
|
| 1255 |
+
"page_idx": 10
|
| 1256 |
+
},
|
| 1257 |
+
{
|
| 1258 |
+
"type": "image",
|
| 1259 |
+
"img_path": "images/ef5d2d8346b204d7aae860dfebe321ec6d017184dee170574f14d5165e374c93.jpg",
|
| 1260 |
+
"image_caption": [
|
| 1261 |
+
"Figure 6: Loss curves for different factorized RNN parameterizations on the sequential MNIST task (left) and the permuted sequential MNIST task (right). The spectral margin is denoted by m; models with no margin have singular values that are directly optimized with no constraints; Glorot refers to a factorized RNN with no margin that is initialized with Glorot normal initialization. "
|
| 1262 |
+
],
|
| 1263 |
+
"image_footnote": [],
|
| 1264 |
+
"bbox": [
|
| 1265 |
+
235,
|
| 1266 |
+
383,
|
| 1267 |
+
761,
|
| 1268 |
+
512
|
| 1269 |
+
],
|
| 1270 |
+
"page_idx": 10
|
| 1271 |
+
},
|
| 1272 |
+
{
|
| 1273 |
+
"type": "text",
|
| 1274 |
+
"text": "5.2 COPY TASK NONLINEARITY ",
|
| 1275 |
+
"text_level": 1,
|
| 1276 |
+
"bbox": [
|
| 1277 |
+
176,
|
| 1278 |
+
619,
|
| 1279 |
+
405,
|
| 1280 |
+
632
|
| 1281 |
+
],
|
| 1282 |
+
"page_idx": 10
|
| 1283 |
+
},
|
| 1284 |
+
{
|
| 1285 |
+
"type": "text",
|
| 1286 |
+
"text": "We found that nonlinearities such as a rectified linear unit (ReLU) (Nair & Hinton, 2010) or hyperbolic tangent (tanh) made the copy task far more difficult to solve. Using tanh, a short sequence length ( $T = 1 0 0$ ) copy task required both a soft constraint that encourages orthogonality and thousands of epochs for training. It is worth noting that in the unitary evolution recurrent neural network of Arjovsky et al. (2015), the non-linearity (referred to as the ”modReLU”) is actually initialized as an identity operation that is free to deviate from identity during training. Furthermore, Henaff et al. (2016) derive a solution mechanism for the copy task that drops the non-linearity from an RNN. To explore this further, we experimented with a parametric leaky ReLU activation function (PReLU) which introduces a trainable slope $\\alpha$ for negative valued inputs $x$ , producing $f ( x ) = m a x ( x , 0 ) + \\alpha m i n ( x , 0 )$ (He et al., 2015). Setting the slope $\\alpha$ to one would make the PReLU equivalent to an identity function. We experimented with clamping $\\alpha$ to 0.5, 0.7 or 1 in a factorized RNN with a spectral margin of 0.3 and found that only the model with $\\alpha = 1$ solved the $T = 1 0 0 0$ length copy task. We also experimented with a trainable slope $\\alpha$ , initialized to 0.7 and found that it converges to 0.96, further suggesting the optimal solution for the copy task is without a transition nonlinearity. Since the copy task is purely a memory task, one may imagine that a transition nonlinearity such as a tanh or ReLU may be detrimental to the task as it can lose information. Thus, we also tried a recent activation function that preserves information, called an orthogonal permutation linear unit (OPLU) (Chernodub & Nowicki, 2016). The OPLU preserves norm, making a fully norm-preserving RNN possible. Interestingly, this activation function allowed us to recover identical results on the copy task to those without a nonlinearity for different spectral margins. ",
|
| 1287 |
+
"bbox": [
|
| 1288 |
+
173,
|
| 1289 |
+
645,
|
| 1290 |
+
825,
|
| 1291 |
+
924
|
| 1292 |
+
],
|
| 1293 |
+
"page_idx": 10
|
| 1294 |
+
},
|
| 1295 |
+
{
|
| 1296 |
+
"type": "text",
|
| 1297 |
+
"text": "5.3 METHOD RUNNING TIME ",
|
| 1298 |
+
"text_level": 1,
|
| 1299 |
+
"bbox": [
|
| 1300 |
+
174,
|
| 1301 |
+
103,
|
| 1302 |
+
387,
|
| 1303 |
+
117
|
| 1304 |
+
],
|
| 1305 |
+
"page_idx": 11
|
| 1306 |
+
},
|
| 1307 |
+
{
|
| 1308 |
+
"type": "text",
|
| 1309 |
+
"text": "Although the method proposed in section 2 relies on a matrix inversion, an operation with $O ( n ^ { 3 } )$ complexity for an $\\textbf { n } \\times \\textbf { n }$ matrix, the running time of an RNN factorized in such a way actually remains reasonable. This running time is summarized in Table 5 and includes all computations in the graph, together with the matrix inversion. As this method is meant to be used only for the analysis in this work, we find the running times acceptable for that purpose. Models were run on an Nvidia GTX-770 GPU and were run against the $\\mathrm { T } { = } 1 0 0$ length copy task. ",
|
| 1310 |
+
"bbox": [
|
| 1311 |
+
173,
|
| 1312 |
+
128,
|
| 1313 |
+
825,
|
| 1314 |
+
213
|
| 1315 |
+
],
|
| 1316 |
+
"page_idx": 11
|
| 1317 |
+
},
|
| 1318 |
+
{
|
| 1319 |
+
"type": "table",
|
| 1320 |
+
"img_path": "images/c7070a0762b84d0008148881c43f1764a38001b82cc5bfdd2b3345f14fc03efe.jpg",
|
| 1321 |
+
"table_caption": [
|
| 1322 |
+
"Table 5: Run time in seconds for 1000 iterations on a $\\mathrm { T } { = } 1 0 0$ copy task of a regular RNN trained with stochastic gradient descent (SGD) compared against a factorized RNN trained with geodesic SGD on the bases (geoSGD) and regular SGD for other parameters. "
|
| 1323 |
+
],
|
| 1324 |
+
"table_footnote": [],
|
| 1325 |
+
"table_body": "<table><tr><td>hidden units</td><td>SGD</td><td>geoSGD</td></tr><tr><td>128</td><td>21.9 ± 0.2</td><td>40.4 ± 0.1</td></tr><tr><td>500</td><td>46.7 ± 0.2</td><td>161.4 ± 0.2</td></tr><tr><td>1000</td><td>95.4 ± 0.3</td><td>711.2 ± 0.8</td></tr></table>",
|
| 1326 |
+
"bbox": [
|
| 1327 |
+
364,
|
| 1328 |
+
226,
|
| 1329 |
+
632,
|
| 1330 |
+
284
|
| 1331 |
+
],
|
| 1332 |
+
"page_idx": 11
|
| 1333 |
+
}
|
| 1334 |
+
]
|
parse/train/HkuVu3ige/HkuVu3ige_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HkuVu3ige/HkuVu3ige_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyxnnnVtwB/HyxnnnVtwB.md
ADDED
|
@@ -0,0 +1,474 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HIGH-PERFORMANCE RNNS WITH SPIKING NEURONS
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
The increasing need for compact and low-power computing solutions for machine learning applications has triggered significant interest in energy-efficient neuromorphic systems. However, most of these architectures rely on spiking neural networks, which typically perform poorly compared to their non-spiking counterparts in terms of accuracy. In this paper, we propose a new adaptive spiking neuron model that can be abstracted as a low-pass filter. This abstraction enables faster and better training of spiking networks using back-propagation, without simulating spikes. We show that this model dramatically improves the inference performance of a recurrent neural network and validate it with three complex spatio-temporal learning tasks: the temporal addition task, the temporal copying task, and a spoken-phrase recognition task. We estimate at least $5 0 0 \times$ higher energy-efficiency using our models on compatible neuromorphic chips in comparison to Cortex-M4, a popular embedded microprocessor.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
Exponential growth in computational power and efficiency have played a vital role in the development of neural networks and their training algorithms. However, it has also led to higher design complexity and increasing difficulty to keep up with Moore’s law (Schaller, 1997; Waldrop, 2016). Recent years have also seen the movement of computation from data-centres to compact, distributed, and portable embedded systems. These factors have created a demand for energy-efficient AI-capable devices, leading to the development of dedicated and optimized von Neumann-style Artificial Neural Network (ANN) accelerators (Aimar et al., 2018; Cavigelli and Benini, 2016; Chen et al., 2016) and a renewed interest in neuromorphic systems (Chicca et al., 2014; Frenkel et al., 2019; Davies et al., 2018; Moradi et al., 2018; Akopyan et al., 2015; Qiao et al., 2015; Neckar et al., 2019).
|
| 12 |
+
|
| 13 |
+
A key difference between neural networks deployed on von Neumann systems and most neuromorphic platforms is the use of spikes or train of pulses to represent signals in the latter. Such networks are called Spiking Neural Networks (SNNs). Spiking neuromorphic systems have a number of features that inhibit their use in real-world problems: (1) mixed-signal circuits suffer from Complementary Metal-Oxide-Semiconductor (CMOS) mismatch (Pelgrom et al., 1989) that degrades performance; (2) rate-based SNNs generate a large number of spikes to represent signals that reduces their energy benefit; (3) complex spiking dynamics makes it difficult to train them using gradient-descent methods. In this paper, we describe a new neuron model that addresses these problems and discuss how its Low-Pass Filter (LPF) abstraction enables training spiking Recurrent Neural Networks (RNNs) using the backpropagation algorithm (or Backprop). This is a significant breakthrough as it enables training and deployment of energy-efficient spiking neural network devices without simulating complex spiking dynamics.
|
| 14 |
+
|
| 15 |
+
# 2 PROCESSING-IN-MEMORY FOR RNNS
|
| 16 |
+
|
| 17 |
+
Consider an RNN layer with $n$ nodes. At each time-step, the processor computes one or several matrix products of the form $y = W . x$ , where $_ y$ and $x$ are vectors of length $n$ , and $W$ is a 2-D matrix of size $n \times n$ . When operating on a von Neumann system with batch-size 1, as is common in most edge applications, the bottleneck in throughput and energy-efficiency is the $O ( n ^ { 2 } )$ memory fetches of $W$ at every timestep. An in-memory matrix multiplier addresses this problem. It is a module where a “read” from the memory location of the $W$ matrix, using “X” as the “address” gives out “Y”, without ever moving $W$ . This leads to a quadratic reduction in energy consumption. Processing in-memory systems have been implemented for various tasks such as DNA sequencing (Ghose et al., 2018), graph processing (Ahn et al., 2015), etc and with dramatic reduction in energy consumption.
|
| 18 |
+
|
| 19 |
+
The energy reduction from in-memory computing is well established, but the key challenge with deploying such systems is the absence of compatible algorithms. In this paper, we propose an RNN model for such a system. The implementation of the in-memory module depends on how $x$ and $y$ are encoded and transported. It can be synchronous or asynchronous and analogue or digital. We adopt an asynchronous digital approach as it offers some implementation advantages. Encoding information in binary digital format is less susceptible to noise in comparison to analogue. Asynchronous signalling allows the energy-consumption to scale in proportion to chip activity, while also permitting lowlatency response. Chips implementing such schemes have been published in literature (Qiao et al., 2015; Moradi et al., 2018). The model presented in this paper is designed to integrate on similar chips (A reference framework is described in supplementary section D). However, most of the algorithmic ideas presented in this paper are general and applicable to a range of compute systems.
|
| 20 |
+
|
| 21 |
+
# 3 THE SPIKING NEURON MODEL
|
| 22 |
+
|
| 23 |
+
Spiking neuron models for encoding signals typically use rate- or time-coded spike-generation schemes (Diehl et al., 2015; Rueckauer et al., 2017; Bohte, 2012; Mostafa, 2017). In rate-coding, the firing rate of the neuron is proportional to the input signal. Therefore, achieving high data-resolution with rate-coding requires a large number of spikes, which is not energy-efficient (Nair and Indiveri, 2019). To address this problem, several time-coding schemes have been proposed. In this work, we build on existing models to propose an Adaptive Integrate and Fire (aI&F) neuron model, which can also be interpreted as an asynchronous $\Sigma \Delta$ circuit (Nair and Indiveri, 2019; Bohte, 2012; Yoon, 2016). This mechanism reduces the spike count by only transmitting the error between an internal state and the input. The aI&F neuron model implemented with current-mode neuromorphic circuits (Nair and Indiveri, 2019) can be described by the following equations:
|
| 24 |
+
|
| 25 |
+
$$
|
| 26 |
+
\begin{array} { c } { { \tau _ { m e m } \displaystyle \frac { d I _ { m e m } } { d t } = \alpha _ { L } ( I _ { L } - I _ { m e m } ) - s + i } } \\ { { \tau _ { w } \displaystyle \frac { d s } { d t } = \alpha _ { s } ( I _ { m e m } - I _ { L } ) - s } } \\ { { \displaystyle I _ { m e m } = 0 , \mathrm { w h e n } I _ { m e m } > \Delta } } \end{array}
|
| 27 |
+
$$
|
| 28 |
+
|
| 29 |
+
where the currents $I _ { m e m }$ and $I _ { L }$ represent the “membrane potential” and “leak reversal potential” variables. The term $s$ represents the neuron adaptation current, $i$ the input current, $\tau _ { m e m }$ the membrane time constant, $\alpha _ { L }$ a gain factor, $\Delta$ the threshold, $\alpha _ { s }$ the adaptation coupling parameter and $\tau _ { w }$ is the adaptation time constant. The aI&F model is a feedback loop that tries to decrease the difference between the $i ( t )$ and $s ( t )$ . The difference, $i ( t ) - s ( t )$ , is filtered with gain, $\alpha _ { L }$ , and time constant, $\tau _ { m e m }$ . When the output of this filter, $I _ { m e m }$ , exceeds the spiking threshold, $\Delta$ , $I _ { m e m }$ is reset and a spike is generated. The $\Sigma \Delta$ circuit model used in this work is different from the aI&F model in the computation of the feedback term. Instead of filtering $I _ { m e m }$ , we operate on the spike train generated by the spiking neuron. This ensures that the noise inserted by the spike-generation mechanism is also suppressed by the $\Sigma \Delta$ feedback. The modified feedback equation is as follows:
|
| 30 |
+
|
| 31 |
+
$$
|
| 32 |
+
\tau _ { k } \frac { d s } { d t } = \alpha _ { s } ( \delta _ { i } I _ { i n } - I _ { L } ) - s
|
| 33 |
+
$$
|
| 34 |
+
|
| 35 |
+
Where, $\delta _ { i }$ indicates the spike train and $I _ { i n }$ is a programmable maximum current value that the analogue filter implementation can generate. The product $\delta _ { i } I _ { i n }$ models the feedback filter that integrates a current $I _ { i n }$ for the duration of the spikes. Figure 1a shows a block diagram of the circuit implementation of the Equation 3 with the modification described by Equation 4. In this diagram, $F ( s )$ is a first order LPF that receives inputs to the neuron. $H ( s )$ is a first-order low-pass filter that produces $s ( t )$ in response to spikes generated by the neuron. $\operatorname { \dot { \cal E } } ( s )$ is also a first-order low-pass filter on the difference between the input current $i ( t )$ and the feedback signal $s ( t )$ . When the output of $E ( s )$ , $I _ { m e m }$ , exceeds the spiking threshold $( \Delta )$ of the neuron, a spike-event is produced. With each spike-event, $s ( t )$ increases and $i ( t ) - s ( t )$ decreases. Figure 1b shows the asynchronous $\Sigma \Delta$ feedback loop in action for a test-case. It can be shown that the Laplace domain representation of the output spike train can be expressed by the equation:
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
Y ( s ) = { \frac { X ( s ) F ( s ) E ( s ) } { 1 + H ( s ) E ( s ) } } + { \frac { N ( s ) } { 1 + H ( s ) E ( s ) } }
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
Figure 1: (a) The block marked pulse $\Delta$ encoder is similar to the aI&F neuron model. The LPF stage at the input makes it an asynchronous $\Sigma \Delta$ loop. (b) Evolution of the feedback signal, $s ( t )$ , over time. The sudden jumps in $s ( t )$ correspond to spike events, $y ( t )$ .
|
| 43 |
+
|
| 44 |
+
where, $N ( s )$ indicates the Laplace-domain representation of the noise introduced into the loop, for example by the spike generation mechanism. The $\Sigma \Delta$ loop described by Equation 5 is similar to a continuous-time $\Sigma \Delta$ modulation loop (Pavan et al., 2017) with the key difference being that the output spikes are unipolar. This is valuable because the output of a conventional $\Sigma \Delta$ loop is always active ( $+ 1$ or $^ { - 1 }$ ), whereas the asynchronous model is only active at the time of a spike event, making the model more energy-efficient.
|
| 45 |
+
|
| 46 |
+
The input signals to the neuron may be encoded as spikes trains or as continuous analogue values from a sensor. The transmitted analogue signal is reconstructed from a spike train by simply low-pass filtering it. An advantage of the $\Sigma \Delta$ neuron model is that it comes with a low-pass filter in its input stage. Therefore, a $\Sigma \Delta$ neuron is a “codec” - It can both encode an analogue signal into a spike train and decode an incoming spike train back to the transmitted analogue signal. As the low-pass filter at the input stage is agnostic of the type of input to it, a $\Sigma \Delta$ can encode and decode both types of signals - spike trains or continuous analogue ones. A description of the biological motivation and noise-filtering properties of the model is provided in supplementary section A. The circuit implementing this model has been fully characterized in Nair and Indiveri (2019).
|
| 47 |
+
|
| 48 |
+
# 4 TRAINING A SPIKING RNN WITHOUT SIMULATING SPIKES
|
| 49 |
+
|
| 50 |
+
The neuron model introduced in the previous section allows us to train a recurrent SNN by treating the spiking neurons as LPFs and modifying the recurrent ANN equations suitably. We will show that the trained weight parameters of the recurrent ANN model can be mapped to a recurrent SNN, without additional training. We measure the effectiveness of this mapping procedure by comparing the temporal dynamics of the neurons in the recurrent ANN to the low-pass filtered spike trains generated by the spiking neurons in the corresponding recurrent SNN. In this demonstration, we use high precision synaptic weights. This is typically not available in most spiking neuromorphic platforms. However, the same mapping procedure can be used for mapping ANNs trained with binary or noisy weights. Before introducing the mapping procedure, we describe three operations that are needed for it.
|
| 51 |
+
|
| 52 |
+
Input re-scaling: When implementing an SNN in mixed-signal neuromorphic systems, the state variables of the neuron are represented by voltages or currents that are of the order of $\mathrm { m V }$ or nA. Using such small values when training an ANN in software may lead to computational instability. To avoid this we train the network with normalized input signals and re-scale the parameters and activation functions after training. For example, if a single layer calculation is represented as $y = \sigma _ { n l } ( W \cdot x )$ , where $\sigma _ { n l }$ is a non-linear activation function, $x$ , $W$ and $y$ are the inputs, weights, and outputs from the layer, respectively, then, to re-scale the inputs by a factor $\gamma$ , the activation function used in the ANN will be modified, during inference, as $y = \overline { { \sigma _ { n l } } } ( W \cdot \gamma \cdot x )$ , where, $\overline { { \sigma _ { n l } } } ( . ) = \sigma _ { n l } \left( \frac { . } { \gamma } \right)$
|
| 53 |
+
|
| 54 |
+
Low-pass filtering: The input signal can be reconstructed from the spikes trains generated by the $\Sigma \Delta$ neuron if $s ( t )$ tracks $i ( t )$ (Equation 4). This is because $s ( t )$ is obtained by filtering the neuron spike train. This is why a $\Sigma \Delta$ neuron can be modelled as an LPF with time constant $\tau _ { w }$ . The LPF approximation ignores the high-frequency components injected by the spiking mechanism, as they are suppressed by feedback loop (the $N ( s )$ term in the transfer function of $\Sigma \Delta$ neuron, Equation 5). We model this by using a discrete-time Euler approximation to incorporate a LPF-term at the output of the RNN stage. This results in the Low-Pass Recurrent Neural Network (lpRNN) cell by a simple tweak to the classical equation:
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
y _ { t } = \alpha \odot y _ { t - 1 } + ( 1 - \alpha ) \odot \sigma ( W _ { r e c } \cdot y _ { t - 1 } + W _ { i n } \cdot x _ { t } + b )
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where, $\sigma , \odot$ and $\cdot$ denote non-linearity, element-wise Hadamard product and matrix multiplication functions, respectively. The variables $\alpha$ , $y _ { n }$ , $x _ { n }$ , $W _ { r e c }$ , $W _ { i n }$ , and $b$ represent the retention ratio vector, input vector, output vector, recurrent connectivity weight matrix, input connectivity weight matrix, and biases, respectively. The subscripts on variable $y$ and $x$ indicate the time step. $\alpha$ models the time constant of the recurrent ANN, and it is matched to the SNN time constant by setting it to $\alpha = e ^ { \frac { - T s } { \tau _ { s } } }$ where, $T s$ is the time-step of the input data-stream fed to the recurrent ANN, and $\tau _ { s }$ is the feedback time constant of the $\Sigma \Delta$ neurons used in the desiredSNN.
|
| 61 |
+
|
| 62 |
+
For example, if the recurrent ANN is being trained to detect speech from an audio-signal, then $T s$ should be set equal to the time difference between the consecutive samples. The value of $\tau _ { s }$ , for the ANN set to $m i n ( \tau _ { w } , \tau _ { m e m } )$ in the $\Sigma \Delta$ equations. $\tau _ { s }$ must therefore be chosen such that the signals being transmitted lie well within the pass-band of the feedback filter. This ensures that all the in-band components are transmitted well, even when different neurons in the systems have different values of $\tau _ { s }$ , for example, due to mismatch. This is an important observation for mixed-signal systems, where mismatch effects may result in different neurons to have differing time-constants. We will demonstrate that the effect of device mismatch is well-tolerated for most practical cases and leads to gradual degradation in performance as it increases. It must be noted that while computing $T s$ or the bandwidth of an audio or sensor measurement is easy, it is not trivial for data-sets such as text.
|
| 63 |
+
|
| 64 |
+
Saturating non-linearity: It has already been shown in the literature that the Rectified Linear Unit (ReLU) non-linearity is a good non-linear model of the aI&F neuron (Yoon, 2016; Bohte, 2012). However, the $\Sigma \Delta$ neuron also filters incoming spike trains using a low-pass filter which limits its maximum output current to $I _ { i n }$ (see Equation 4). To model this effect we can either set $I _ { i n }$ in the SNN to the largest activation output found in the ANN simulation or clamp the maximum output of the activation function in the ANN simulation to $I _ { i n }$ . In our experiments, we do the latter.
|
| 65 |
+
|
| 66 |
+
# 4.1 THE MAPPING PROCEDURE
|
| 67 |
+
|
| 68 |
+
First, the recurrent ANN cell is modified by replacing the RNN units with the lpRNN. The modified network is then trained using Backprop with conventional Autograd tools provided by libraries such as PyTorch or Tensorflow. This gives us the synaptic weights for the recurrent SNN. Then, the largest value attained by the state variables in the trained network is mapped to $I _ { i n }$ . This ensures that the spiking neurons do not saturate. Finally, the inputs to the SNN are re-scaled to suitable currents or voltage values as described earlier.
|
| 69 |
+
|
| 70 |
+
Limitation: A recurrent SNN is a continuous-time system that spikes hundreds to thousands of times per second to achieve the necessary transmission accuracy. Therefore, the time step of the transient simulation needs to be made very fine. The mapping algorithm assumes that the mapped SNN operates on the same sequence that the original ANN is trained on. This is a problem. Training a recurrent ANN on a long sequence using back-propagation is computationally expensive and often intractable because of vanishing and exploding gradients. For example, with speech signals sampled at the standard rate of $4 4 . 1 \mathrm { k H z }$ , even a short utterance is thousands of samples long. If we are unable to train an ANN for the desired task, the mapping mechanism is useless. Our approach to addressing this issue is to train the ANN with sub-sampled signals. After we compute the desired weights, we rescale the time-constants of the network before mapping it to the SNN. If the simulation time-step for the SNN is TsSNN and that of ANN is TsANN , then the time constants of the two simulations are given by $\alpha _ { A N N } = e ^ { - \frac { T _ { s _ { A N N } } } { \tau } }$ and $\alpha _ { S N N } = e ^ { - \frac { T _ { s _ { S N N } } } { \tau } }$ . We only rescale the time constants without changing the weights of the mapped network, introducing inaccuracies in the mapped network. The mismatch arises because a single time-step of the ANN corresponds to several simulation time-steps in the mapped SNN TsANNTs ). The mapping is exact for a first-order LPF because of the Linear Time-Invariant (LTI) property. However, even though an RNN is non-linear, by making the low-pass filtering effect more dominant (for example, with $\alpha = 0 . 9 9$ ), we observe that the mapped dynamics match well.
|
| 71 |
+
|
| 72 |
+
# 5 EXPERIMENTAL RESULTS
|
| 73 |
+
|
| 74 |
+
All the spiking simulations in the following sections are run on a custom transient mixed-signal modeling library, called spiking simulator for systems of 1st-order LPFs (Spiker). The motivation for design and operation of Spiker is described in supplementary section E.
|
| 75 |
+
|
| 76 |
+
# 5.1 ENCODING PERFORMANCE OF THE SIGMA–DELTA NEURON MODEL
|
| 77 |
+
|
| 78 |
+
The $\Sigma \Delta$ neuron model used in the mapped SNN is not an ideal transmitter of information as the spiking mechanism introduces error akin to quantization noise. This is analogous to use of low bit-precision in conventional ANNs. It is important to measure how much precision is available using a metric that is meaningful for the proposed spiking architecture. We measure this using a Signal-to-Distortion ratio (SDR) metric when encoding a sinusoidal input and reconstructing it with an LPF. The SDR is the ratio between the energy contained in the transmitted signal and total energy in all other frequency components generated by the distortions introduced in the signal chain. The results of these experiments are shown in Figure 2. We note in Figure 2a that highest SDR of the $\Sigma \Delta$ neuron is 55dB, with a 20 dB/decade roll-off as a function of frequency with a pole corresponding to $\tau _ { m e m }$ . Figure 2b highlights the input amplitude-dependence of the SDR. We note in Figure 2b that the SDR improves as a logarithmic function of the input amplitude and then drops suddenly. The logarithmic improvement in SDR is because the error component corresponding to the spiking threshold, $\Delta$ , becomes a smaller fraction of the input amplitude. The sudden drop occurs when the input amplitude approaches and exceeds $I _ { i n }$ in Equation 4. This is because the maximum attainable value of the feedback term, $s ( t )$ in Equation 4 is $I _ { i n }$ . Under these conditions, $I _ { m e m }$ is always greater than $s ( t )$ , causing the neuron to fire at a very high rate. For the rest of the SNN simulations in this paper, the $\Sigma \Delta$ neuron settings listed in Figure 2 caption are used.
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Figure 2: SDR of the $\Sigma \Delta$ neuron as a function of sinusoidal input parameters. The $\Sigma \Delta$ neuron is fed a single-tone sinusoid riding on a DC bias to ensures that the input is non-negative. The transient simulations are run with a simulation time step of $1 \mu \mathrm { s }$ . This is the reason for the saturation in the firing rate in (b). The SDR ratio is reported after subtracting the DC component. The neuron parameters for the simulation are $\tau _ { m e m } = 0 . 0 0 7 s$ , $\tau _ { w } = 0 . 0 0 1 4 s$ , $\alpha _ { L } = 5 0 0 0$ , $\alpha _ { s } = 1$ , $\Delta = 0 . 1 n A$ , $I _ { i n } = 4 0 n A$ , $I _ { L } = 0 n A$ .
|
| 82 |
+
|
| 83 |
+
# 5.2 DEMONSTRATION OF THE MAPPING MECHANISM
|
| 84 |
+
|
| 85 |
+
We demonstrate the mapping mechanism using multi-layer RNNs. The ANN dynamics are compared against a signal obtained by low-pass filtering the spike trains generated by the $\Sigma \Delta$ neuron. Our assertion is that the mapping mechanism will map any recurrent ANN to an equivalent recurrent SNN. Therefore, instead of demonstrating the mapping for a particular task, we set synaptic weights to random samples from a Gaussian distribution. We then compare the dynamics of all the neuron units in the mapped and original networks. To ensure that our nodes do not saturate, we constrain the largest eigenvalue of the recurrent weight matrices to 1.4. The motivation for this trick was from obtained from Echo-State Networks (ESNs)(Jaeger, 2002; Jaeger et al., 2007). The quality or goodness of fit is measured using an Normalized mean square error (NMSE) metric, which measures the mean square error normalized by the signal power. It is used to compare two time series signals $x _ { r e f }$ and $x$ using the following formulation:
|
| 86 |
+
|
| 87 |
+
$$
|
| 88 |
+
N M S E = 1 - \frac { | | x _ { r e f } - x | | ^ { 2 } } { | | x _ { r e f } - m e a n ( x _ { r e f } ) | | ^ { 2 } }
|
| 89 |
+
$$
|
| 90 |
+
|
| 91 |
+
where, $| | . | |$ indicates the L2 norm. The $N M S E$ metric lies between 1 and $- \infty$ , with 1 indicating a perfect match and $- \infty$ indicating a very bad fit. If $N M S E = 0$ , then $\mathbf { X }$ is at least as good a fit as a straight line at $x _ { r e f } .$ . In our results, we report the mean and standard deviation in the NMSE scores for all the units in a layer.
|
| 92 |
+
|
| 93 |
+
The effectiveness of the mapping mechanism is demonstrated using a four-layer RNN. The input and output stages are implemented as fully-connected feed-forward layers, and the recurrent layers are also interleaved with fully-connected layers. The input feature dimension was set to two and the output to three. The input data was a weighted sum of sinusoidal signals that were band-limited to $5 0 \mathrm { H z }$ and sampled at 1 MHz for 0.2 seconds. The high sampling rate is necessary to accurately capture the dynamics of the SNN, whose neuron models are highly non-linear, in a transient simulation. The length of the simulation is a key consideration as we want our mapped SNN implementation to remain matched for arbitrarily long sequences. Computational considerations limited the duration of our simulations, but this should be tested before large scale deployment in real-world use.
|
| 94 |
+
|
| 95 |
+
Fully-digital neuromorphic platforms, such as Intel Loihi, IBM TrueNorth, or SpinNaker, do not suffer for mismatch issues. However, mixed-signal neuromorphic chips, such as Qiao et al. (2015); Neckar et al. (2019); Schemmel et al. (2012), are potentially more energy-efficient than their digital counterparts but suffer from device mismatch. A $\Sigma \Delta$ feedback loop naturally compensates for such effects (Pavan et al., 2017) but there are many components in the model that lies outside the feedback loop. To study this, we add the effect of mismatch in our simulations by sampling the parameters, $p$ of the mapped SNN:
|
| 96 |
+
|
| 97 |
+
$$
|
| 98 |
+
p = p \cdot ( 1 + c _ { v _ { p } } \cdot \mathcal { N } ( 0 , 1 ) )
|
| 99 |
+
$$
|
| 100 |
+
|
| 101 |
+
where, $c _ { v _ { p } }$ is the coefficient of variation $\begin{array} { r } { ( = \frac { s t a n d a r d d e v i a t i o n } { m e a n } ) } \end{array}$ in the parameter, $p$ . To understand the statistics in the quality of the mapping mechanism, we generate multiple samples of network parameters and measure the quality of fit. These results are tabulated in Tables 1 and 2, where we list the measured mean of and standard deviation in $N M S E$ values for a 4-layer RNN with 51 and 500 units per layer, respectively. With no mismatch effects, the reconstruction is very good to all layers, in both cases. Furthermore, we observe nearly perfect reproduction of the network dynamics for up to 2 layers, and a gradual degradation as the size, depth and mismatch of the network increases. We note that the mapping mechanism is robust for $c _ { v _ { p } } < 0 . 2$ . Reduced mismatch sensitivity is useful for design of neuromorphic chips because it simplifies the design, and that, in turn, reduces the energy and area consumed by these chips. Visualization of the transient dynamics of all the nodes in the original and mapped RNNs is provided in supplementary section F. Finally, the performance of the mapping algorithm comparing the dynamics of the ANN with sub-sampled data to that of the SNN is shown in Table 3. The length of the SNN simulation is $0 . 2 s$ , translating to input sequence lengths, L. We note that the mapping technique works well for fairly high sub-sampling ratios and shows significant degradation only for $L = 2 0$ . Note that a near perfect match ( $N M S E > 0 . 5$ ) is achieved up for depth of two. This restricts the models used for benchmarking in Section 5.3.
|
| 102 |
+
|
| 103 |
+
# 5.3 LEARNING PERFORMANCE OF THE LPRNN CELL
|
| 104 |
+
|
| 105 |
+
The key idea behind enabling the mapping between an recurrent ANN to its spiking equivalent was the addition of a low pass filter to the the state variables. It must be highlighted that the idea of using a low-pass filter model for neurons is fairly old and has been studied in various contexts (Beer, 1995; Mozer, 1992; Jaeger et al., 2007). The novelty in this work is in identifying its use in the mapping mechanism and in the study of its learning properties. The mapping procedure would be of no use if the resulting ANN was unable to perform as well as their unfiltered counterparts in learning tasks, and it is the focus of this section.
|
| 106 |
+
|
| 107 |
+
In our experiments, we set $\alpha$ in Equation 6 by sampling from a distribution with a common mean value shared by all the neuron units in the network. This simplifies the design of the neuromorphic system by eliminating the need to create precise tunable time constants in the neuron implementations.
|
| 108 |
+
|
| 109 |
+
<table><tr><td rowspan="3">Layer</td><td colspan="4">μNMSE</td><td colspan="4">ONMSE</td></tr><tr><td>CuP =0</td><td>Cup = 0.2</td><td>Cup =1</td><td>Cup =2</td><td>Cup =0</td><td>Cup = 0.2</td><td>Cup =1</td><td>Cup =2</td></tr><tr><td>Rec. layer 1</td><td>1.0</td><td>0.9</td><td>-5.1</td><td>-4.0</td><td>0.1</td><td>0.3</td><td>55.1</td><td>15.5</td></tr><tr><td>Rec. layer 2</td><td>1.0</td><td>0.5</td><td>-8.8</td><td>-17.5</td><td>0.1</td><td>1.1</td><td>54.4</td><td>41.4</td></tr><tr><td>Rec. layer 3</td><td>0.9</td><td>-1.5</td><td>-36.8</td><td>-100.2</td><td>0.1</td><td>6.4</td><td>117.1</td><td>300.0</td></tr><tr><td>Rec. layer 4</td><td>0.9</td><td>-3.7</td><td>-107.5</td><td>-278.9</td><td>0.2</td><td>8.2</td><td>202.4</td><td>535.9</td></tr></table>
|
| 110 |
+
|
| 111 |
+
Table 1: Mapping a four layer network with 51 units per layer for different mismatch values.
|
| 112 |
+
|
| 113 |
+
<table><tr><td rowspan="2">Layer</td><td colspan="4">μNMSE</td><td colspan="4">ONMSE</td></tr><tr><td>Cup =0</td><td>Cup = 0.2</td><td>Cup =1</td><td>Cup =2</td><td>Cup =0</td><td>Cup = 0.2</td><td>Cup =1</td><td>cup = 2</td></tr><tr><td>Rec. layer 1</td><td>1.0</td><td>1.0</td><td>0.4</td><td>0.6</td><td>0.1</td><td>0.1</td><td>1.8</td><td>1.3</td></tr><tr><td>Rec. layer 2</td><td>0.9</td><td>-1.0</td><td>-48.9</td><td>-132.0</td><td>0.1</td><td>1.6</td><td>52.1</td><td>143.7</td></tr><tr><td>Rec. layer 3</td><td>0.8</td><td>-6.8</td><td>-185.1</td><td>-683.6</td><td>0.2</td><td>2.9</td><td>73.2</td><td>295.9</td></tr><tr><td>Rec. layer 4</td><td>0.2</td><td>-6.3</td><td>-133.7</td><td>-416.3</td><td>0.9</td><td>3.5</td><td>64.0</td><td>203.6</td></tr></table>
|
| 114 |
+
|
| 115 |
+
Table 2: Mapping a four layer network with 500 units per layer for different mismatch values.
|
| 116 |
+
|
| 117 |
+
<table><tr><td rowspan="3">Layer</td><td colspan="4">μNMSE</td><td colspan="4">ONMSE</td></tr><tr><td>TsANN =10μs L = 20000</td><td>100μs 2000</td><td>1ms 200</td><td>10ms 20</td><td>10 μs 20000</td><td>100μs 2000</td><td>1ms 200</td><td>10ms 20</td></tr><tr><td>Rec. layer 1</td><td>1.0</td><td>1.0</td><td>0.8</td><td>-0.4</td><td>0.0</td><td>0.0</td><td>0.1</td><td>0.4</td></tr><tr><td>Rec. layer 2</td><td>0.9</td><td>1.0</td><td>0.7</td><td>-1.7</td><td>0.8</td><td>0.0</td><td>0.2</td><td>5.2</td></tr><tr><td>Rec.layer 3</td><td>0.9</td><td>0.9</td><td>0.4</td><td>-1.6</td><td>0.5</td><td>0.1</td><td>1.0</td><td>2.2</td></tr><tr><td>Rec. layer 4</td><td>0.9</td><td>0.9</td><td>0.1</td><td>-2.0</td><td>0.3</td><td>0.3</td><td>1.2</td><td>2.2</td></tr></table>
|
| 118 |
+
|
| 119 |
+
Table 3: Performance when mapping resampled data for a four layer network with 128 units per layer.
|
| 120 |
+
|
| 121 |
+
<table><tr><td rowspan="2">Task</td><td colspan="3">Results in this work</td><td rowspan="2">Reference literature</td></tr><tr><td>SimpleRNN</td><td>lpRNN</td><td>LSTM</td></tr><tr><td>Temporal addition</td><td>40 steps</td><td>642 steps</td><td>8</td><td>5000 steps (Li et al., 2018)</td></tr><tr><td>Temporal copy</td><td>30 steps</td><td>120 steps</td><td>200 steps</td><td>500 steps (Arjovsky et al., 2016)</td></tr><tr><td>Spoken phrase (acc.)</td><td>27%</td><td>93%</td><td>92%</td><td>90% (Sainath and Parada, 2015)</td></tr></table>
|
| 122 |
+
|
| 123 |
+
Table 4: The performance of the lpRNN cell on three benchmarks. The reference literature column reports the best results (to our knowledge) with neural networks with less than 100K parameters. lpRNN and SimpleRNN networks for the add and copy tasks used a single layer with 128 hidden units. Arjovsky et al. (2016) use unitary recurrent weight matrices and Li et al. (2018) use two layers of 128-unit IndRNN layers. The spoken phrase task reference is a CNN model released as a Tensorflow example (Google, 2019).
|
| 124 |
+
|
| 125 |
+
First, we study the short-term memory capabilities of the lpRNNs using the synthetic addition and copying tasks (Hochreiter and Schmidhuber, 1997; Arjovsky et al., 2016; Le et al., 2015). Next, we compare the performance of the lpRNN cell vs a SimpleRNN cell in a speech recognition task. We summarize the key observations in this section and details are in the supplementary material.
|
| 126 |
+
|
| 127 |
+
Temporal addition task: The addition task (Le et al., 2015) involves processing two parallel input data streams of equal length. The first stream comprises random numbers $\in ( 0 , 1 )$ and the second is full of zeros except at two time steps. The network is trained to generate the sum of the two numbers in the first data stream corresponding to the time-steps when the second stream had non-zero entries. The baseline to beat is a mean square error (mse) of 0.1767, corresponding to a network that always generates 1. We adopt a curriculum learning (Bengio et al., 2009) procedure for this task, by first training the RNN cell on a short sequence and progressively increasing the number of time steps. Each curriculum used 10,000 training and 1000 test samples. The length of the task was incremented when the mse went below 0.001. The SimpleRNN cell failed to converge beyond sequences of length 40, while the lpRNN cell converged to mse $< 0 . 0 0 1$ for sequences up to 642 steps. Interestingly, the
|
| 128 |
+
|
| 129 |
+
Long Short-Term Memory (LSTM) cell learnt a general solution when trained by this procedure and could solve arbitrarily long sequences, even with just two hidden units in the cell!
|
| 130 |
+
|
| 131 |
+
Temporal copying task: We train the RNN cells on a varying length copying task as defined in (Graves et al., 2014) instead of the original definition (Hochreiter and Schmidhuber, 1997; Arjovsky et al., 2016). This problem is harder to solve than the temporal addition task. The network receives a sequence of up to S symbols (in the original definition, S is fixed) drawn from an alphabet of size K. At the end of S symbols, a sequence of T blank symbols ending with a trigger symbol is passed. The trigger symbol indicates that the network should reproduce the first S symbols in the same order. We adopt a curriculum learning procedure here too and first train the network on a short sequence $( \mathrm { T } { = } 3 )$ and gradually increase it $( \mathrm { T } { \leq } 2 0 0 )$ . The sequence length is incremented when the categorical accuracy is better than $9 9 \%$ . The SimpleRNN cell failed at this task even for $\mathrm { T } { = } 3 0$ . The lpRNN cell was able to achieve $9 9 \%$ accuracy for up to 120 time steps. After that, it generates $\mathrm { T }$ blank entries accurately but the accuracy of the last S symbols drops (For ${ \mathrm { T } } { = } 2 0 0$ , it was $96 \%$ ).
|
| 132 |
+
|
| 133 |
+
Spoken phrase classification: The target for the lpRNN cell are neuromorphic platforms that are typically resource-constrained, due to power, memory, and area restrictions. Therefore, we test the performance of the lpRNN cell on a problem that is compatible with such systems (see supplementary section D). We chose a limited vocabulary spoken commands detection task using the Google commands dataset (Warden, 2018), which comprises 36 classes of short-length spoken commands such as “left”, “up”, or “go”. The dataset was created for hardware and algorithm developers to evaluate their low footprint neural network models in limited dictionary speech recognition tasks. The neural network receives a Mel-spectrogram as inputs, and comprises, from input to output, two fully-connected dense layers with 128 and 32 units with batch normalization, two RNN layers with 128 units, two fully-connected dense layers, topped by a softmax readout. In total, the network has about 80K trainable parameters. We use Adam optimizer (Kingma and Ba, 2014), with a learning rate of 0.001 for training. We note that all lpRNN variants massively outperform the SimpleRNN and slightly outperform the LSTM variants, all with the same number of parameters. We further note that the performance of the network peaks for certain values of $\alpha$ and the random sampling case. The high performance of the lpRNN cell is a crucial result because not only did the addition of the low-pass filter enable mapping of the recurrent ANN model to neuromorphic platforms, it also resulted in a much-improved performance.
|
| 134 |
+
|
| 135 |
+
Table 5: Performance of the lpRNN cell on the Google commands classification task with different filtering coefficients, $\alpha$ . $\alpha = 0$ is equivalent to a SimpleRNN and $\alpha = 1$ is an MLP.
|
| 136 |
+
|
| 137 |
+
<table><tr><td>α</td><td>[0.1,1]</td><td>0</td><td>0.1</td><td>0.5</td><td>0.8</td><td>0.9</td><td>0.99</td><td>1</td></tr><tr><td> Accuracy</td><td>93%</td><td>26%</td><td>25%</td><td>69%</td><td>92%</td><td>93%</td><td>90%</td><td>4%</td></tr></table>
|
| 138 |
+
|
| 139 |
+
Energy-efficiency estimation: We compare the energy cost of computing a two-layer RNN with 128 hidden units (used in the audio task) for an in-memory lpRNN system with $\Sigma \Delta$ neurons against Cortex-M4, a popular low-power microprocessor used in milliWatt-range applications. We conservatively estimate that our implementation yields $5 0 0 \times$ better energy-efficiency in this instance. Larger networks will see a dramatic increase in this difference. (see supplementary section J).
|
| 140 |
+
|
| 141 |
+
# 6 CONCLUSION AND OUTLOOK
|
| 142 |
+
|
| 143 |
+
We presented a novel aI&F spiking neuron model and discussed its spike-coding and noise-tolerance benefits. Then, we discussed how the LPF abstraction of the aI&F neuron model enables training of recurrent SNNs without having to simulate the complex dynamics of a large network of spiking neurons. This strategy enables training a recurrent SNN using standard optimization algorithms such as backpropagation. The mapping technique that allowed us to achieve this result is studied in detail, including its limitations.. We observe a dramatic improvement in the performance of the RNN cell with the addition of the low-pass filtering term. We think that this improvement is because the LPF acts as a temporal regularizer (see supplementary section C). Current spiking RNNs are benchmarked on much simpler tasks than presented in this paper, often due to the computational cost and lack of algorithms for training them. The importance of this work lies in proposing algorithmic solutions to address this key problem, to enable a new generation of ultra-low-power neuromorphic chips.
|
| 144 |
+
|
| 145 |
+
# REFERENCES
|
| 146 |
+
|
| 147 |
+
Ahn, J., Yoo, S., Mutlu, O., and Choi, K. (2015). Pim-enabled instructions: a low-overhead, locality-aware processing-in-memory architecture. In 2015 ACM/IEEE 42nd Annual International Symposium on Computer Architecture (ISCA), pages 336–348. IEEE.
|
| 148 |
+
|
| 149 |
+
Aimar, A., Mostafa, H., Calabrese, E., Rios-Navarro, A., Tapiador-Morales, R., Lungu, I.-A., Milde, M. B., Corradi, F., Linares-Barranco, A., Liu, S.-C., et al. (2018). Nullhop: A flexible convolutional neural network accelerator based on sparse representations of feature maps. IEEE transactions on neural networks and learning systems.
|
| 150 |
+
|
| 151 |
+
Akopyan, F., Sawada, J., Cassidy, A., Alvarez-Icaza, R., Arthur, J., Merolla, P., Imam, N., Nakamura, Y., Datta, P., Nam, G.-J., et al. (2015). Truenorth: Design and tool flow of a 65 mw 1 million neuron programmable neurosynaptic chip. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 34(10):1537–1557.
|
| 152 |
+
|
| 153 |
+
Arjovsky, M., Shah, A., and Bengio, Y. (2016). Unitary evolution recurrent neural networks. In International Conference on Machine Learning, pages 1120–1128.
|
| 154 |
+
|
| 155 |
+
ARM (2019). Arm cortex. Datasheet Cortex-M4. Accessed on 2019-11-07.
|
| 156 |
+
|
| 157 |
+
Bai, S., Kolter, J. Z., and Koltun, V. (2018). An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv preprint arXiv:1803.01271.
|
| 158 |
+
|
| 159 |
+
Beer, R. D. (1995). On the dynamics of small continuous-time recurrent neural networks. Adaptive Behavior, 3(4):469–509.
|
| 160 |
+
|
| 161 |
+
Bengio, Y., Louradour, J., Collobert, R., and Weston, J. (2009). Curriculum learning. In Proceedings of the 26th annual international conference on machine learning, pages 41–48. ACM.
|
| 162 |
+
|
| 163 |
+
Bohte, S. M. (2012). Efficient spike-coding with multiplicative adaptation in a spike response model. In Advances in Neural Information Processing Systems, pages 1835–1843.
|
| 164 |
+
|
| 165 |
+
Brette, R. and Gerstner, W. (2005). Adaptive exponential integrate-and-fire model as an effective description of neuronal activity. Journal of neurophysiology, 94(5):3637–3642.
|
| 166 |
+
|
| 167 |
+
Cavigelli, L. and Benini, L. (2016). Origami: A 803-gop/s/w convolutional network accelerator. IEEE Transactions on Circuits and Systems for Video Technology, 27(11):2461–2475.
|
| 168 |
+
|
| 169 |
+
Chan, V., Liu, S.-C., and van Schaik, A. (2007). Aer ear: A matched silicon cochlea pair with address event representation interface. IEEE Transactions on Circuits and Systems I: Regular Papers, 54(1):48–59.
|
| 170 |
+
|
| 171 |
+
Chen, Y.-H., Krishna, T., Emer, J. S., and Sze, V. (2016). Eyeriss: An energy-efficient reconfigurable accelerator for deep convolutional neural networks. IEEE Journal of Solid-State Circuits, 52(1):127– 138.
|
| 172 |
+
|
| 173 |
+
Chicca, E., Stefanini, F., Bartolozzi, C., and Indiveri, G. (2014). Neuromorphic electronic circuits for building autonomous cognitive systems. Proceedings of the IEEE, 102(9):1367–1388.
|
| 174 |
+
|
| 175 |
+
Chung, J., Gulcehre, C., Cho, K., and Bengio, Y. (2014). Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555.
|
| 176 |
+
|
| 177 |
+
Davies, M., Srinivasa, N., Lin, T.-H., Chinya, G., Cao, Y., Choday, S. H., Dimou, G., Joshi, P., Imam, N., Jain, S., et al. (2018). Loihi: A neuromorphic manycore processor with on-chip learning. IEEE Micro, 38(1):82–99.
|
| 178 |
+
|
| 179 |
+
Diehl, P. U., Neil, D., Binas, J., Cook, M., Liu, S.-C., and Pfeiffer, M. (2015). Fast-classifying, highaccuracy spiking deep networks through weight and threshold balancing. In 2015 International Joint Conference on Neural Networks (IJCNN), pages 1–8. IEEE.
|
| 180 |
+
|
| 181 |
+
Frenkel, C., Lefebvre, M., Legat, J.-D., and Bol, D. (2019). A 0.086-mm2 12.7-pj/sop 64k-synapse 256-neuron online-learning digital spiking neuromorphic processor in 28-nm cmos. IEEE transactions on biomedical circuits and systems, 13(1):145–158.
|
| 182 |
+
|
| 183 |
+
Gers, F. A., Schmidhuber, J., and Cummins, F. (2000). Learning to forget: Continual prediction with lstm. Neural Computation, 12(10):2451–2471.
|
| 184 |
+
|
| 185 |
+
Gerstner, W. and Kistler, W. M. (2002). Spiking neuron models: Single neurons, populations, plasticity. Cambridge university press.
|
| 186 |
+
|
| 187 |
+
Gewaltig, M.-O. and Diesmann, M. (2007). Nest (neural simulation tool). Scholarpedia, 2(4):1430.
|
| 188 |
+
|
| 189 |
+
Ghose, S., Hsieh, K., Boroumand, A., Ausavarungnirun, R., and Mutlu, O. (2018). Enabling the adoption of processing-in-memory: Challenges, mechanisms, future research directions. arXiv preprint arXiv:1802.00320.
|
| 190 |
+
|
| 191 |
+
Google (2019). Audio recognition. Github source code for Tensorflow v1.x. Accessed on 2019-11-07.
|
| 192 |
+
|
| 193 |
+
Graves, A., Wayne, G., and Danihelka, I. (2014). Neural turing machines. CoRR, abs/1410.5401.
|
| 194 |
+
|
| 195 |
+
Hamilton, T. J., Jin, C., Van Schaik, A., and Tapson, J. (2008). An active 2-d silicon cochlea. IEEE Transactions on biomedical circuits and systems, 2(1):30–43.
|
| 196 |
+
|
| 197 |
+
Henaff, M., Szlam, A., and LeCun, Y. (2016). Recurrent orthogonal networks and long-memory tasks. arXiv preprint arXiv:1602.06662.
|
| 198 |
+
|
| 199 |
+
Hochreiter, S. and Schmidhuber, J. (1997). Long short-term memory. Neural computation, 9(8):1735– 1780.
|
| 200 |
+
|
| 201 |
+
Hu, Y., Huber, A., Anumula, J., and Liu, S.-C. (2018). Overcoming the vanishing gradient problem in plain recurrent networks. arXiv preprint arXiv:1801.06105.
|
| 202 |
+
|
| 203 |
+
Jaeger, H. (2002). Tutorial on training recurrent neural networks, covering BPPT, RTRL, EKF and the" echo state network" approach. GMD-Forschungszentrum Informationstechnik.
|
| 204 |
+
|
| 205 |
+
Jaeger, H., Lukoševicius, M., Popovici, D., and Siewert, U. (2007). Optimization and applications of ˇ echo state networks with leaky-integrator neurons. Neural networks, 20(3):335–352.
|
| 206 |
+
|
| 207 |
+
Kim, Y., Jernite, Y., Sontag, D., and Rush, A. M. (2016). Character-aware neural language models. In Thirtieth AAAI Conference on Artificial Intelligence.
|
| 208 |
+
|
| 209 |
+
Kingma, D. P. and Ba, J. (2014). Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980.
|
| 210 |
+
|
| 211 |
+
Le, Q. V., Jaitly, N., and Hinton, G. E. (2015). A simple way to initialize recurrent networks of rectified linear units. arXiv preprint arXiv:1504.00941.
|
| 212 |
+
|
| 213 |
+
Li, S., Li, W., Cook, C., Zhu, C., and Gao, Y. (2018). Independently recurrent neural network (indrnn): Building a longer and deeper rnn. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5457–5466.
|
| 214 |
+
|
| 215 |
+
Marcus, M., Kim, G., Marcinkiewicz, M. A., MacIntyre, R., Bies, A., Ferguson, M., Katz, K., and Schasberger, B. (1994). The penn treebank: annotating predicate argument structure. In Proceedings of the workshop on Human Language Technology, pages 114–119. Association for Computational Linguistics.
|
| 216 |
+
|
| 217 |
+
Moradi, S., Qiao, N., Stefanini, F., and Indiveri, G. (2018). A scalable multicore architecture with heterogeneous memory structures for dynamic neuromorphic asynchronous processors (DYNAPs). Biomedical Circuits and Systems, IEEE Transactions on, 12(1):106–122.
|
| 218 |
+
|
| 219 |
+
Mostafa, H. (2017). Supervised learning based on temporal coding in spiking neural networks. IEEE transactions on neural networks and learning systems, 29(7):3227–3235.
|
| 220 |
+
|
| 221 |
+
Mozer, M. C. (1992). Induction of multiscale temporal structure. In Advances in neural information processing systems, pages 275–282.
|
| 222 |
+
|
| 223 |
+
Nair, M. V. and Indiveri, G. (2019). An ultra-low power sigma-delta neuron circuit. In 2019 IEEE International Symposium on Circuits and Systems (ISCAS), pages 1–5.
|
| 224 |
+
|
| 225 |
+
Neckar, A., Fok, S., Benjamin, B. V., Stewart, T. C., Oza, N. N., Voelker, A. R., Eliasmith, C., Manohar, R., and Boahen, K. (2019). Braindrop: A mixed-signal neuromorphic architecture with a dynamical systems-based programming model. Proceedings of the IEEE, 107(1):144–164.
|
| 226 |
+
|
| 227 |
+
Neil, D., Pfeiffer, M., and Liu, S.-C. (2016). Phased lstm: Accelerating recurrent network training for long or event-based sequences. In Advances in neural information processing systems, pages 3882–3890.
|
| 228 |
+
|
| 229 |
+
Oliphant, T. (2006). Guide to NumPy.
|
| 230 |
+
|
| 231 |
+
Pascanu, R., Mikolov, T., and Bengio, Y. (2013). On the difficulty of training recurrent neural networks. In International Conference on Machine Learning, pages 1310–1318.
|
| 232 |
+
|
| 233 |
+
Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., and Lerer, A. (2017). Automatic differentiation in PyTorch. In NIPS Autodiff Workshop.
|
| 234 |
+
|
| 235 |
+
Pavan, S., Schreier, R., and Temes, G. C. (2017). Understanding delta-sigma data converters. John Wiley & Sons.
|
| 236 |
+
|
| 237 |
+
Pelgrom, M., Duinmaijer, A., and Welbers, A. (1989). Matching properties of MOS transistors. IEEE Journal of Solid-State Circuits, 24(5):1433–1440.
|
| 238 |
+
|
| 239 |
+
Qiao, N., Mostafa, H., Corradi, F., Osswald, M., Stefanini, F., Sumislawska, D., and Indiveri, G. (2015). A reconfigurable on-line learning spiking neuromorphic processor comprising 256 neurons and 128k synapses. Frontiers in neuroscience, 9:141.
|
| 240 |
+
|
| 241 |
+
Rethinagiri, S. K., Palomar, O., Ben Atitallah, R., Niar, S., Unsal, O., and Kestelman, A. C. (2014). System-level power estimation tool for embedded processor based platforms. In Proceedings of the 6th Workshop on Rapid Simulation and Performance Evaluation: Methods and Tools, page 5. ACM.
|
| 242 |
+
|
| 243 |
+
Rueckauer, B., Lungu, I.-A., Hu, Y., Pfeiffer, M., and Liu, S.-C. (2017). Conversion of continuousvalued deep networks to efficient event-driven networks for image classification. Frontiers in neuroscience, 11:682.
|
| 244 |
+
|
| 245 |
+
Sainath, T. and Parada, C. (2015). Convolutional neural networks for small-footprint keyword spotting.
|
| 246 |
+
|
| 247 |
+
Sarpeshkar, R. (1998). Analog versus digital: Extrapolating from electronics to neurobiology. Neural Computation, 10(7):1601–1638.
|
| 248 |
+
|
| 249 |
+
Schaller, R. R. (1997). Moore’s law: past, present and future. IEEE spectrum, 34(6):52–59.
|
| 250 |
+
|
| 251 |
+
Schemmel, J., Grübl, A., Hartmann, S., Kononov, A., Mayr, C., Meier, K., Millner, S., Partzsch, J., Schiefer, S., Scholze, S., Schüffny, R., and Schwartz, M. (2012). Live demonstration: A scaled-down version of the BrainScaleS wafer-scale neuromorphic system. In IEEE International Symposium on Circuits and Systems ISCAS 2012, page 702.
|
| 252 |
+
|
| 253 |
+
Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., and Salakhutdinov, R. (2014). Dropout: a simple way to prevent neural networks from overfitting. The journal of machine learning research, 15(1):1929–1958.
|
| 254 |
+
|
| 255 |
+
Stimberg, M., Brette, R., and Goodman, D. (2019). Brian 2: an intuitive and efficient neural simulator. BioRxiv, page 595710.
|
| 256 |
+
|
| 257 |
+
Waldrop, M. M. (2016). The chips are down for moore’s law. Nature News, 530(7589):144.
|
| 258 |
+
|
| 259 |
+
Wang, Y. and Tian, F. (2016). Recurrent residual learning for sequence classification. In Proceedings of the 2016 Conference on Empirical Methods in Natural Language Processing, pages 938–943.
|
| 260 |
+
|
| 261 |
+
Warden, P. (2018). Speech commands: A dataset for limited-vocabulary speech recognition. arXiv preprint arXiv:1804.03209.
|
| 262 |
+
|
| 263 |
+
Xingjian, S., Chen, Z., Wang, H., Yeung, D.-Y., Wong, W.-K., and Woo, W.-c. (2015). Convolutional lstm network: A machine learning approach for precipitation nowcasting. In Advances in neural information processing systems, pages 802–810.
|
| 264 |
+
|
| 265 |
+
Yoon, Y. C. (2016). Lif and simplified srm neurons encode signals into spikes via a form of asynchronous pulse sigma–delta modulation. IEEE transactions on neural networks and learning systems, 28(5):1192–1205.
|
| 266 |
+
|
| 267 |
+
A MOTIVATION FOR THE USE OF THE SIGMA-DELTA NEURON MODEL
|
| 268 |
+
|
| 269 |
+
# A.1 CODING MECHANISM
|
| 270 |
+
|
| 271 |
+
A neuron in deep learning has one primary function - the non-linear transformation of its input. However, a biological neuron and its neuromorphic counterpart have the added job of encoding information in spike trains. The most popular model for this encoding mechanism is rate coding, where the neuron fires at a rate proportional to the incoming signal. This mechanism is not efficient for transmitting high-resolution data. For example, to transmit a signal at 8-bit resolution, it will require O(256) spikes for each sample. An improvement to this coding mechanism is theaI&F model (Brette and Gerstner, 2005), which can be interpreted as an asynchronous delta-sigma $( \Delta \Sigma )$ loop (Yoon, 2016; Bohte, 2012; Nair and Indiveri, 2019). The $\Delta \Sigma$ mechanism is a time-coding model that is more efficient in its use of spike trains (Nair and Indiveri, 2019) than rate-coding models. Other time-coding schemes have also been proposed in literature (Rueckauer et al., 2017; Gerstner and Kistler, 2002). However, the advantage of the $\Delta \Sigma$ interpretation is that it leads to highly power-efficient circuit implementations (Nair and Indiveri, 2019) that is tolerant to mismatch and noise effects. Furthermore, the model allows us to treat the neuron state as an analogue variable and ignoring the specific timing details of the encoding spike trains (Nair and Indiveri, 2019). The independence from the monitoring precise spike-times is beneficial because state-dependency, noise and device mismatch cause different neurons to generate spikes at different times for the same input. Modelling it is computationally expensive. The $\Delta \Sigma$ feedback loop ensures that they all represent the same signal with the same accuracy in spite of their differences (Nair and Indiveri, 2019). This abstraction enables the network designer to only look at the internal state of the neuron when optimizing the network weights for an SNN. It is a crucial enabler for this paper as simulating and training mismatch-prone SNNs is computationally much more expensive than ANNs.
|
| 272 |
+
|
| 273 |
+
# A.2 BIOLOGICAL NEURAL NETWORKS ARE LOW PASS FILTERING
|
| 274 |
+
|
| 275 |
+
Activation functions used in neural networks and apply a non-linearity to a weighted sum of input signals. However, ANNs assume that when the input changes, the internal state of the neuron or dendrites can also change immediately to reflect the new input. This behaviour ignores the fact that biological neuronal channels are LPFs (Gerstner and Kistler, 2002). Modelling the inertial or low-pass filtering property is essential to implement and study recurrent neural networks in any neuromorphic system as the transitional dynamics deviate completely in its absence. The $\Delta \Sigma$ neuron models the filtering behaviour with a first-order low pass filter. We argue that not only is this modelling essential, it is also a useful constraint to impose on RNNs.
|
| 276 |
+
|
| 277 |
+
# A.3 CHANNEL NOISE AND RECONSTRUCTION ACCURACY IN A SPIKING NEURON
|
| 278 |
+
|
| 279 |
+
The $\Sigma \Delta$ scheme encodes the information in the relative timing of the spikes. This implies that any noise in the spike timing, i.e. jitter, introduced during transmission of the spikes will result in distortion of the reconstructed signal, for example, in situations when the transmitting and receiving neurons are on separate chips. The distortions are modelled by a random variable $\Delta _ { t }$ , which is sampled from a normal random distribution, $\Delta _ { t } \sim \mathcal { N } ( 0 , j _ { \sigma } ^ { 2 } )$ with probability distribution function $P r ( \bar { \Delta } _ { t } )$ . Note that a fixed delay does not contribute to distortion and is ignored. To compute the effect of spike timing noise, we calculate the Laplace domain representation of the transmitted signal as follows. If $I _ { D } ( t )$ is the Dirac delta function, the transmitted spike train $y ( t )$ , jitter-affected spike train, $y ^ { \prime } ( t )$ , the desired filtered spike train, $s ( t )$ , and the filtered version of the jitter-affected spike-train,
|
| 280 |
+
|
| 281 |
+

|
| 282 |
+
Figure A.1: The different transfer function of the $\Sigma \Delta$ neuron model. Red: Signal transfer function, Blue: noise transfer function, Green: Signal transfer function with spike timing noise.
|
| 283 |
+
|
| 284 |
+
$r ( t )$ can be expressed as,
|
| 285 |
+
|
| 286 |
+
$$
|
| 287 |
+
\begin{array} { c } { y ( t ) = \displaystyle \sum _ { k = 0 } ^ { N } I _ { D } ( t - k _ { k } ) } \\ { y ^ { \prime } ( t ) = \displaystyle \sum _ { k = 0 } ^ { N } I _ { D } ( t - k _ { k } - \Delta _ { t } ) } \\ { s ( t ) = y ( t ) \star h ( t ) = \displaystyle \sum _ { k = 0 } ^ { N } h ( t - t _ { k } ) } \\ { \implies S ( s ) = \displaystyle \sum _ { k = 0 } ^ { N } H ( s ) e ^ { - \alpha t _ { k } } } \\ { r ( t ) = y ^ { \prime } ( t ) \star h ( t ) = \displaystyle \sum _ { k = 0 } ^ { N } h ( t - t _ { k } - \Delta _ { t } ) } \end{array}
|
| 288 |
+
$$
|
| 289 |
+
|
| 290 |
+
The mean value of $r ( t )$ can then be computed as
|
| 291 |
+
|
| 292 |
+
$$
|
| 293 |
+
\begin{array} { l } { \displaystyle \bar { r } ( t ) = E [ r ( t ) ] = \sum _ { k = 0 } ^ { N } \int _ { \Delta _ { t } = - \infty } ^ { \infty } P r ( \Delta _ { t } ) \cdot h ( t - t _ { k } - \Delta _ { t } ) } \\ { \displaystyle = \sum _ { k = 0 } ^ { N } P r \star h ( t - t _ { k } ) } \\ { \displaystyle \Longrightarrow \ \overline { { R } } ( s ) = \mathcal { L } \{ \bar { r } ( t ) \} = \sum _ { k = 0 } ^ { N } P ( s ) H ( s ) e ^ { - s t _ { k } } = P ( s ) S ( s ) } \end{array}
|
| 294 |
+
$$
|
| 295 |
+
|
| 296 |
+
where, $P ( s ) = \mathcal { L } \{ \mathrm { P r } ( t ) \} = e ^ { \frac { s ^ { 2 } j _ { \sigma } ^ { 2 } } { 2 } }$ . $\overline { { R } } ( s )$ is plotted in Figure A.1 as the recovery transfer function $j _ { \sigma } = 1 m s$
|
| 297 |
+
affect the signal transmission accuracy.
|
| 298 |
+
|
| 299 |
+
# B COMPARISON TO OTHER RNN MODELS
|
| 300 |
+
|
| 301 |
+
The low pass filtering behaviour of neurons is well-known in neuro-scientific literature (and in other fields) and has been studied in the past with RNNs as well(Beer, 1995; Mozer, 1992; Jaeger et al., 2007). For example, ESNs as proposed by Herbert Jaeger (Jaeger et al., 2007) has an identical formulation to the lpRNN where the recurrent layer uses leaky integration units. In ESNs, the spectral radius of the initialization values of the recurrent kernel is constrained to confers an “echo-state property” to the network. The recurrent or input connectivity weights are not trained during the learning process. Instead, only the read-out linear classifier is trained. In the lpRNN model, the spectral radius of the recurrent kernel is not constrained and all the weight matrices, including the retention ratios if required, are trained. lpRNN also shares similarities with recurrent residual networks proposed by Yiren Wang (Wang and Tian, 2016), which are described by the following equations
|
| 302 |
+
|
| 303 |
+
$$
|
| 304 |
+
y _ { t } = f ( g ( y _ { t - 1 } ) ) + \sigma ( y _ { t - 1 } , x _ { t } , W )
|
| 305 |
+
$$
|
| 306 |
+
|
| 307 |
+
where $W$ denotes input and recurrent kernels, and other symbols have the same meaning as equation 6. In equation 16, $g$ and $f$ are identity and a hyperbolic tangent functions, respectively. A comparison can also be made with the LT-RNN model proposed by Mikael Henaff (Henaff et al., 2016), whose update equations are:
|
| 308 |
+
|
| 309 |
+
$$
|
| 310 |
+
\begin{array} { l } { h _ { t } = \sigma ( W _ { i n } \cdot x + b ) + V \cdot h _ { t - 1 } } \\ { y _ { t } = W \cdot h _ { t } } \end{array}
|
| 311 |
+
$$
|
| 312 |
+
|
| 313 |
+
where $W$ and $V$ are 2-D transition matrices that are learned during the training process. In this case, it is possible that the LT-RNN cell reduces to an lpRNN, but is unlikely to occur in practice. Similar analogies can also be made to the IndRNN model (Li et al., 2018) and recurrent identity networks (Hu et al., 2018). Generally speaking, the main difference between the lpRNN cells and popular RNN models in use today is the(re)indroduction of the filtering term into the RNN model with impositions on boundary and train-ability conditions. We see that in addition to enabling their use in neuromorphic platforms, this results in more stable convergence properties due to a temporal regularization effect, as described in the Section C.
|
| 314 |
+
|
| 315 |
+
# C MEMORY IN AN LPRNN
|
| 316 |
+
|
| 317 |
+
We can analyze the evolution of an lpRNN cell by using an approach similar to the power iteration method, described by Razvan Pascanu (Pascanu et al., 2013). To do this analysis, we approximate the lpRNN update equation as:
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
y _ { t } = \alpha \odot y _ { t - 1 } + ( 1 - \alpha ) \odot ( W _ { r e c } \cdot y _ { t - 1 } + W _ { i n } \cdot x _ { t } + b )
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
where, for simplicity, we also make the added assumption that all units of the lpRNN layer have the same retention factor, $\alpha$ . The gradient terms during back-propagation through time can now be expressed as a product of several terms that have the form:
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
\frac { \delta y _ { t } } { \delta y _ { k } } = [ ( 1 - \alpha ) W _ { r e c } ^ { T } + \alpha ] ^ { l }
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
where, $t$ and $k$ , are time step indices with $t > k$ and $l = t - k$ . If an eigenvalue of the $W _ { r e c } ^ { T }$ matrix is , then the corresponding eigenvalue of the matrix $[ ( 1 - \alpha ) W _ { r e c } ^ { T } + \alpha ]$ re can be written as
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
( 1 - \alpha ) \lambda + \alpha
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
Looking at the eigenvalue of the gradient terms as computed in equation 21, we note that $\alpha$ acts like a temporal regularizer on the eigenvalues of the recurrent network. It can also be seen that by scaling $\alpha$ to lie between 0 and 1, the operation of the network shifts between that of purely non-inertial recurrent to a completely inertial network stuck in its initial state, respectively. This insight helps us understand why lpRNNs perform well in long memory tasks.
|
| 336 |
+
|
| 337 |
+
Hochreiter (Hochreiter and Schmidhuber, 1997) defined the constant error carousel (CEC) as a central feature of the LSTM networks that allowed it to remember past events. In a crude sense, this corresponds to setting the retention ratio, $\alpha = 1$ . Forget gates were subsequently added by Felix A. Gers (Gers et al., 2000) to the original LSTM structure, that allowed the network to also erase unnecessary events that were potentially trapped in the CEC. This means that the average effective weight of the self-connection in the CEC was made $< 1$ . A randomly initialized set of $\alpha$ values with a reasonably large number of cells appears to have similar functionality. By setting $\alpha < 1$ , the network is guaranteed to lose memory over time, but if some of the $\alpha \mathbf { s }$ are close to 1, it may retain the information for a longer time frame. Moreover, the regularization effect of $\alpha \mathbf { s }$ also prevents the eigenvalues of the recurrent network from becoming too small, ensuring that memory is never lost immediately. We expect that the lpRNN model has a reduced representational power than gated RNN cells, not simply because it has $4 \mathbf { x }$ fewer parameters, but because the lpRNN state is guaranteed to fade with time whereas a gated cell can potentially store a state indefinitely.
|
| 338 |
+
|
| 339 |
+
# D THE NEUROMORPHIC SIGNAL CHAIN
|
| 340 |
+
|
| 341 |
+
The $\Delta \Sigma$ mapping mechanism requires defining suitable time constants for the lpRNN cell being trained by backprop. This can be derived for continuous-time signals from sensors or real-world signals such as an audio input by taking into account the bandwidth of the incoming signals as described earlier. We illustrate a reference neuromorphic signal chain for processing audio input in Figure D.2. The data received from the audio sensor is first filtered by an audio filtering stage such as the cochlea chips (Chan et al., 2007; Sarpeshkar, 1998; Hamilton et al., 2008). These systems typically implement mel-spaced filter banks. A neural network processes the filter outputs and drives an actuator system. A minimal configuration of weights and connectivity required to implement the lpRNN cell in a neuromorphic platform is illustrated in Figure D.2. It is a memory array with spiking neurons attached to the periphery of the system. Each memory cell acts as a transconductance stage - it receives voltage spikes and generates a scaled output current. These currents are summed by the Kirchoff’s current law and integrated by the neurons. Readers familiar with memory design and computer architecture may identify this as an in-memory computational unit. An in-memory neural network accelerator is energy-efficient, primarily because it eliminates movement of synaptic weights (Ghose et al., 2018; Qiao et al., 2015) from the memory to a far-away processing module. Instead, the activations of the neurons are transmitted to the other nodes in the network. The computation is no longer memory-bound unlike RNN computation on von Neumann style architecture. Figure D.2 implements a single spiking RNN stage (equivalent to an lpRNN), with green and red boxes highlighting the input and recurrent kernels, respectively. The architecture can be modified to implement a fully connected layer by eliminating recurrent connections. Note that an equivalent configuration can be also set up in fully-digital neuromorphic systems such as (Frenkel et al., 2019; Davies et al., 2018; Akopyan et al., 2015) that do not suffer from noise and mismatch issues, but may consume more area and power.
|
| 342 |
+
|
| 343 |
+

|
| 344 |
+
Figure D.2: Top: A neuromorphic signal chain. Bottom: Architecture of an SNN accelerator implementing an lpRNN.
|
| 345 |
+
|
| 346 |
+
Spiker is a transient-simulator for simulating large networks of spiking neurons and synapses using the Basic Linear Algebra Subprogams (BLAS) libraries. It is written in Python and uses the
|
| 347 |
+
|
| 348 |
+
Numpy (Oliphant, 2006) library. There is also a PyTorch (Paszke et al., 2017) version that supports Graphical Processing Unit (GPU)-acceleration. Unlike spiking simulation tools like Brian2 (Stimberg et al., 2019) or NEST (Gewaltig and Diesmann, 2007), which are general-purpose solvers of Ordnary Differential Equations (ODEs), Spiker is a highly-specific simulator for systems where the only differential equation implemented is that of a first-order LPFs. The simulator is not designed to solve any differential equation. Instead, it allows us to run massive simulations of large networks comprising neuron and synapse models whose building blocks include first-order LPFs.
|
| 349 |
+
|
| 350 |
+
# E.1 HOW DOES SPIKER WORK?
|
| 351 |
+
|
| 352 |
+
Key idea #1 Constraining the support to first-order LPFs has the advantage that it allows us to create closed-form solutions to the differential equations at all time-step resolutions without loss of accuracy. The differential equation corresponding to a first-order LPF is the following:
|
| 353 |
+
|
| 354 |
+
$$
|
| 355 |
+
\tau { \frac { d x } { d t } } = - x
|
| 356 |
+
$$
|
| 357 |
+
|
| 358 |
+
The closed-form solution to this, ignoring the initial conditions takes the form
|
| 359 |
+
|
| 360 |
+
$$
|
| 361 |
+
x = x _ { 0 } \cdot e ^ { \frac { - t } { \tau } }
|
| 362 |
+
$$
|
| 363 |
+
|
| 364 |
+
A useful property of the exponential function is that $e ^ { - t 1 + t 2 } = e ^ { - t 1 } \cdot e ^ { - t 2 }$ . Therefore, we have a simple closed-form method to compute the state of a LPF at any arbitrary time, given an initial condition. This implies that if all the building blocks of a system are made of modules which have an exponential solution, then, given their initial state, it is possible to compute the state of the entire system at some arbitrary time in the future, precisely. This is a well-known property of all LTI systems.
|
| 365 |
+
|
| 366 |
+
Key idea #2 However, a spiking system is not LTI. Therefore, it is not possible to predict the state of a spiking neural network at an arbitrary time in the future. Instead, the Spiker simulator takes tiny temporal steps and computes the state of the network variables at each step using the closed-form solution. At the end of each time-step, the neuron models check if it should spike and then resets the corresponding variable to zero. The spiking input to the synapses is a train of 1-bit values corresponding to the presence or absence of an incident spike from an upstream neuron. This implies that the precision of the spike-event is limited to the resolution of the simulation time-step. However, the key insight here is that, if the signals being transmitted have a bandwidth much smaller than the simulation time-step, the higher-order effects can be safely assumed to be gone.
|
| 367 |
+
|
| 368 |
+
Moreover, in spiking neurons, small amounts of jitter in the spike-timing is well-tolerated. This is because of the noise-cancelling property of the feedback loop. Therefore, the Spiker simulator allows the user to set the simulation time-step to a large value that offers fast transient simulations — a fast-simulation trades-off against the precision of the simulated spike-timing.
|
| 369 |
+
|
| 370 |
+
Finally, the simulator also allows us to program and simulate noise and mismatch effects in the neuron parameters, such as mismatch in the spiking threshold and time-constants. The Spiker simulator was used to run all the SNN simulations in this paper.
|
| 371 |
+
|
| 372 |
+
# F VISUALIZING MAPPING OF A RECURRENT SNN
|
| 373 |
+
|
| 374 |
+
The top row of Figure F.3 shows the mapping mechanism in action for a single test case. We note that as the depth of the network increases, the quality of fit degrades, but is still close to perfect as measured by the NMSE metric. The bottom row of Figure F.3 shows the mapping mechanism in action for devices with a very large $c _ { v _ { p } } = 1$ . We note that even in such cases, the performance in lower layers remains fairly stable and only gradually degrades as the depth increases.
|
| 375 |
+
|
| 376 |
+
# G CONVERGENCE PLOTS FOR THE GOOGLE SPOKEN COMMANDS TASK
|
| 377 |
+
|
| 378 |
+
Figure G.4 shows the convergence plots for various values of $\alpha$ .
|
| 379 |
+
|
| 380 |
+

|
| 381 |
+
Figure F.3: Dynamics in a two-layer RNN with 51 units per layer. The SNN output shown in the figures is the trace obtain by filtering the spike trains. The NMSE measures the quality of fit with 1 indicating a perfect match and $- \infty$ a very bad fit as described in Equation 7.
|
| 382 |
+
|
| 383 |
+

|
| 384 |
+
Figure G.4: Performance of the lpRNN cell on the Google commands detection task: Categorical accuracy (Left) and Cross entropy loss (Right). We note that as higher values of $\alpha$ and random sampling results in faster convergence and better accuracy.
|
| 385 |
+
|
| 386 |
+
# H MAPPING THE GOOGLE SPOKEN COMMANDS NETWORK
|
| 387 |
+
|
| 388 |
+
Each 1-second recording from the dataset is transformed using the Mel-spectrogram into 25 frequency and 128 temporal bins. This sequence represents a single speech command for the ANN. Mapping the trained ANN to an SNN is challenging because of the limitation described earlier; A short length sequence does not give the SNN enough time to generate the spikes required to transmit information. On the other hand, it is too difficult to train a longer length sequence that is several thousand samples long. To address this issue, we train the ANN using the short sequence with 128 bins and demonstrate the mapped SNN by feeding it the same spectrogram data that is up-sampled to $1 \ : \mathrm { M H z }$ . The quality of the mapped recurrent SNN is demonstrated using the weights from the trained recurrent ANN for a single case in Figure H.5. The bottom row of Figure H.5 also shows the mapping mechanism in action for RNN layers that are affected by mismatch with $c _ { v _ { p } } = 0 . 2$ . The results indicate an excellent fit between the mapped and the original networks, even with mismatch. The prediction made by the SNN also matched that of the ANN. Unfortunately, it is computationally prohibitive to compare the accuracy results of the SNN to the reference model on the full dataset. We only demonstrate the mapping accuracy for the two recurrent layers of the network in Figure H.5 for a single command in this paper. A complete analysis of the accuracy performance will require testing on a neuromorphic system and will be the focus of a follow-up work.
|
| 389 |
+
|
| 390 |
+

|
| 391 |
+
Figure H.5: Mapping a 2-layer 128 unit recurrent ANN trained to discriminate commands from the Google speech dataset to an equivalent recurrent SNN. The top row shows the mapping in action for neuron models unaffected by mismatch and the bottom row demonstrates it for mismatched units. The lpRNN cells have $\alpha = 0 . 9 9$ .
|
| 392 |
+
|
| 393 |
+
# I EXTENDING THE LOW-PASS FILTERING IDEA TO OTHER RNN MODELS
|
| 394 |
+
|
| 395 |
+
Our goal with introducing lpRNN cell was to enable faster and better training of SNNs. However, the analysis performed here indicates that low pass filtering also provides temporal regularization features which can benefit ANN-RNNs such as LSTMs. Therefore, we propose to extend the LSTM formulation by applying a low pass filter at the output $( h )$ , and call it an lpLSTM cell:
|
| 396 |
+
|
| 397 |
+
Forget gate: $f _ { t } = S i g m o i d ( W _ { f } x _ { t } + W _ { r e c _ { f } } h _ { t - 1 } + b _ { f } )$ Input gate: $i _ { t } = S i g m o i d ( W _ { i } x _ { t } + W _ { r e c _ { i } } h _ { t - 1 } + b _ { i } )$ Output gate: $o _ { t } = S i g m o i d ( W _ { o } x _ { t } + W _ { r e c _ { o } } h _ { t - 1 } + b _ { o } )$ $\mathrm { S t a t e : ~ } c _ { t } = f _ { t } \odot c _ { t - 1 } + i _ { t } \odot \mathit { R e l u } ( W _ { c } x _ { t } + W _ { r e c _ { c } } h _ { t - 1 } + b _ { c } )$ ${ \mathrm { O u t p u t : ~ } } { \bar { h } } _ { t } = o _ { t } \odot R e l u ( c _ { t } )$ Filtered Output : $\mathbf { \Phi } : h _ { t } = \alpha \odot h _ { t - 1 } + ( 1 - \alpha ) \odot \bar { h } _ { t }$
|
| 398 |
+
|
| 399 |
+
where, $W _ { r e c _ { x } }$ , $W _ { x }$ , $b _ { x }$ indicate the recurrent kernel, input kernel, and bias for the corresponding gate or state. Similar formulations for other RNN cells such as GRU (Chung et al., 2014), IndRNN (Li et al., 2018), Phased-LSTMs (Neil et al., 2016), Convolutional LSTMs (Xingjian et al., 2015), etc can be easily made.
|
| 400 |
+
|
| 401 |
+
# I.1 EXPERIMENTAL RESULTS FOR THE LPLSTM CELL
|
| 402 |
+
|
| 403 |
+
In this section, we benchmark the Low-Pass Long Short-Term Memory (lpLSTM) cells to their unfiltered variants. In our experiments, the learning rate was set to 0.005 and normalized gradient was clipped to 1. Current works describe use of various task-specific initialization constraints to solve the addition and copying tasks better (Henaff et al., 2016; Le et al., 2015). Instead of that, we use a data-driven curriculum learning protocol in our experiments and are able to obtain dramatically improved performance on these tasks. The networks used for the copying and addition tasks are fairly small. We also test it on a character-level language modelling task with the Penn Treebank dataset (Marcus et al., 1994) using a large network with roughly 19M parameters(Kim et al., 2016). We swap the lpLSTM cells with an LSTM cells in our experiments and the network architecture and hyper-parameter settings were left unchanged from the values reported by the original authors. A summary of our observations are as follows: The lpRNN cell exhibits a dramatically improved performance over the SimpleRNN cell. The low pass filter appears to have a temporal stabilization effect even for LSTM cells. However, when other regularization and stabilization techniques such as Dropout(Srivastava et al., 2014) are introduced, the benefit appears muted. It is possible that the large networks with low-pass RNN layers require network architecture tweaks to benefit from the filtering property, but it was not investigated in this work.
|
| 404 |
+
|
| 405 |
+
# I.1.1 TEMPORAL ADDITION TASK
|
| 406 |
+
|
| 407 |
+
The addition task (Le et al., 2015) involves processing two parallel input data streams of equal length. The first stream comprises random numbers $\in ( 0 , 1 )$ and the second is full of zeros except at 2 time steps. At the end of the sequence, the network should output the sum of the two numbers in the first data stream corresponding to the time-steps when the second stream had non-zero entries. The baseline to beat is a mean square error (mse) of 0.1767, corresponding to a network that always generates 1.
|
| 408 |
+
|
| 409 |
+
We first train the RNN cell being tested on a short sequence and progressively increase the length. Each curriculum used 10,000 training and 1000 test samples. The results are shown in Figures I.6, where each stage of the curriculum learning process is marked with bands of different colours. The width of the band indicates the number of epochs taken for convergence. The length of the task was incremented when the mse went below 0.001. With random initialization, the SimpleRNN cell failed to converge beyond sequence length 40, even with curriculum learning. On the other hand, both the lpRNN and LSTM cells benefit from the curriculum learning protocol. The lpRNN cell was able to transfer learning for sequences shorter than 150 steps. While, the benefits of curriculum learning appears to have reduced beyond that, the lpRNN cells were able to achieve better than 0.001 mse for sequences up to 642. The performance of the lpRNN cell is at par or slightly inferior to other works in literature (Hochreiter and Schmidhuber, 1997; Arjovsky et al., 2016; Le et al., 2015; Hu et al., 2018), we achieved this result purely by random initialization. Another interesting outcome of this experiment was the effectiveness of a 2-unit LSTM cell in solving this task. It was was able to add sequences much longer(we tested up to 100K) than any reported work (where the networks are only able to solve the task for about 1/100th of the sequence length).
|
| 410 |
+
|
| 411 |
+
Given the effectiveness of the training protocol, we made the task more complex by allowing the second stream to have up to 10 unmasked entries during training. The trained cell was tested with a data stream having more than 10 masked entries. The LSTM cell was successful in solving this problem a mse less than 1e-3, indicating that it learnt a general add and accumulate operation. Figure I.6c shows the evolution of the gating functions, internal state, and the state variables of an LSTM cell that was trained only on a fixed length sequence of 100 with mse less than 0.001. Contrast this against the stable dynamics of the network trained by curriculum learning in Figure I.6d in a 100K sequence with mse less than 1e-3 (Figure I.6) indicating almost perfect long-term memory and addition. To our knowledge, this kind of generalized learning by an LSTM cell has not been shown before.
|
| 412 |
+
|
| 413 |
+
# I.1.2 TEMPORAL COPYING TASK
|
| 414 |
+
|
| 415 |
+
We train the RNN cells on a varying length copying task as defined in (Graves et al., 2014) instead of the original definition (Hochreiter and Schmidhuber, 1997; Arjovsky et al., 2016). This problem is harder to solve than the temporal addition task. The network receives a sequence of up to S symbols (in the original definition, S is fixed) drawn from an alphabet of size K. At the end of S symbols, a sequence of T blank symbols ending with a trigger symbol is passed. The trigger symbol indicates that the network should reproduce the first S symbols in the same order. We first train the network on a short sequence $\scriptstyle ( \mathrm { T } = 3 )$ ) and gradually increase it $( \mathrm { T } { \leq } 2 0 0 )$ . The sequence length is incremented when the categorical accuracy is better than $9 9 \%$ .
|
| 416 |
+
|
| 417 |
+

|
| 418 |
+
Figure I.6: Curriculum learning on the masked addition task. LSTM cell trained without curriculum learning results in unstable state variables (c). When trained with curriculum learning it looks much more stable (d). Stars in (c) and (d) indicate value of the add mask.
|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
Figure I.7: Curriculum learning on the variable length copying task for a 256 unit lpRNN (top left) and a 128 unit LSTM cell (top right) and a 128 unit lpLSTM cell(bottom left and right).
|
| 422 |
+
|
| 423 |
+
The SimpleRNN cell failed at this task even for $\mathrm { T } { = } 3 0$ with categorical accuracy dropping to $84 \%$ when it predicted only $\mathrm { \Omega } _ { \mathrm { { S + T } } }$ blank symbols. The lpRNN cell was able to achieve $9 9 \%$ accuracy for up to 120 time steps. After that, it generates $\mathrm { T }$ blank entries accurately but the accuracy of the last S symbols drops (For ${ \mathrm { T } } { = } 2 0 0$ , it was $9 6 \%$ ). However, the LSTM cell achieves more than $9 9 . 5 \pm \%$ accuracy for all tested sequence lengths, highlighting the advantage of curriculum learning. This is a big improvement over reported results (Arjovsky et al., 2016; Graves et al., 2014; Bai et al., 2018) where LSTM cells solved the task for much smaller values of $S$ and $T$ .
|
| 424 |
+
|
| 425 |
+
We observed stability issues when training an LSTM cell for sequences longer than 30, even if it eventually converged by using smaller learning rates and gradient norm scaling. This makes a good test case to validate the temporal regularization property of the lpLSTM cell. In our tests, the lpLSTM cell converged without instability with categorical accuracy higher than $9 9 . 5 \%$ for all tested values of $\mathrm { T } ( \in [ 3 , 5 0 0 ] )$ ). It also to generalized larger values of S than the other cells $( \leq 2 5 )$ . The lpLSTM cell exhibited a gradual degradation in performance for larger values of S. We stop our simulations when the categorical accuracy fell below $96 \%$ . These results are summarized in Figure I.7.
|
| 426 |
+
|
| 427 |
+
# I.1.3 PENN TREEBANK (PTB) CHARACTER MODEL
|
| 428 |
+
|
| 429 |
+
We studied temporal regularization in a network trained on the PTB dataset (Marcus et al., 1994) by replacing the LSTM cells by its low pass variants. We choose a model with 19M parameters (Kim et al., 2016) and trained all variants using the same settings as described in (Kim et al., 2016) for 25 epochs. We note that both lpLSTM cells converge to a better score on the training set and a marginally poorer score on the train/validation set (refer Table 6). The lpLSTM cell with relu activation also converges unlike the plain relu LSTM cell validating our claim on temporal regularization.
|
| 430 |
+
|
| 431 |
+
Table 6: Impact of temporal regularization on the Penn Treebank model.
|
| 432 |
+
|
| 433 |
+
<table><tr><td></td><td>Activation</td><td>Train perplexity</td><td>Validation Perplexity</td><td>Test Perplexity</td></tr><tr><td>LSTM</td><td>relu</td><td>approx. 641</td><td>approx. 641</td><td>Fails to converge</td></tr><tr><td></td><td>tanh</td><td>46.0948</td><td>83.9807</td><td>80.0873</td></tr><tr><td>lpLSTM</td><td>tanh</td><td>41.0545</td><td>84.6127</td><td>81.7519</td></tr><tr><td></td><td>relu</td><td>43.0602</td><td>84.1484</td><td>80.6946</td></tr></table>
|
| 434 |
+
|
| 435 |
+
# J ENERGY CONSUMPTION ESTIMATION
|
| 436 |
+
|
| 437 |
+
In this section, we describe the procedure used for comparing the power consumption of the inmemory architecture against a Cortex-M4 processor. This processor was chosen as it is one of the most common low-power MCU platforms in use today.
|
| 438 |
+
|
| 439 |
+
In our analysis, we make a highly-optimistic estimate for the performance of the Cortex-M4 (ARM, 2019). We assume that there are no cache misses, that multiply and add operations take one clock cycle, the read from DRAM only consumes 6 pJ/bit, and also assume that the MCU is fully available for RNN computation. In particular, note that the memory cost per DRAM access should also include the address and data bus power consumption. This has been completely ignored in this analysis to keep things highly optimal on the Cortex-M4 side. We see that in such a configuration, the Cortex-M4 consumes only a few mW of power. In practice, the active power consumption of such processors tend to be in hundreds of mW (Rethinagiri et al., 2014).
|
| 440 |
+
|
| 441 |
+
We estimate the performance of the in-memory unit (also in $1 8 0 \mathrm { n m }$ technology for the known neuron implementation (Nair and Indiveri, 2019)). These results are then tabulated and system activity is modelled for two RNN models in Figure J.8a (2 layer RNN with 128 units/layer) and Figure J.8b (4 layer RNN with 500 units/layer).
|
| 442 |
+
|
| 443 |
+
The energy cost for the Cortex-M4 is modelled by the following equation:
|
| 444 |
+
|
| 445 |
+
$$
|
| 446 |
+
E _ { t o t } = \left( C l k _ { m u l } \cdot N _ { m u l } + C l k _ { a d d } \cdot N _ { a d d } \right) \cdot E _ { c l k } + M \cdot E _ { m e m }
|
| 447 |
+
$$
|
| 448 |
+
|
| 449 |
+
# where
|
| 450 |
+
|
| 451 |
+
• $E _ { t o t }$ : Total power consumed • $C l k _ { m u l }$ : Number of clocks for multiply • $N _ { m u l }$ : Number of multiply operations in the task. • $C l k _ { a d d }$ : Number of clocks for addition. • $N _ { a d d }$ : Number of add operations in the task. • $E _ { c l k }$ : Energy consumed by the processor per clock. • $M$ : Number of memory bit accesses • $E _ { m e m }$ : Energy cost of a accessing a single bit.
|
| 452 |
+
|
| 453 |
+
The energy cost for the in-memory architecture is modelled by the following equation:
|
| 454 |
+
|
| 455 |
+
$$
|
| 456 |
+
E _ { t o t } = ( N \cdot E _ { s p i k e } + M ) \cdot N _ { s p i k e s }
|
| 457 |
+
$$
|
| 458 |
+
|
| 459 |
+
# where
|
| 460 |
+
|
| 461 |
+
• N: Number of neurons
|
| 462 |
+
• $E _ { s p i k e }$ : Energy per spike
|
| 463 |
+
• $N _ { s p i k e s }$ : Total number of spikes. This is computed for the $\Sigma \Delta$ model by computing the average firing rate as a function of the desired bit precision. This is approximating by equating the desired firing rate of the $\Sigma \Delta$ neuron to that of an oversampled clock necessary to achieve a desired Signal to Noise Ratio (SNR) (Pavan et al., 2017).
|
| 464 |
+
• M: Memory access cost. This is modelled by the the product of the read current while a spike is active.
|
| 465 |
+
|
| 466 |
+
Each of the terms in the computation of the power consumption of the Cortex and in-memory systems are in turn calculated based on a number of hardware and operational assumptions that are listed in the tables. We note an improved energy-efficiency of several hundred times across the board in both configurations. We also note that the energy-savings is much higher for the larger network. This is simply because the number of sequential compute operations increases quadratically.
|
| 467 |
+
|
| 468 |
+

|
| 469 |
+
|
| 470 |
+
# (a) For a two-layer RNN with 128 units per layer
|
| 471 |
+
|
| 472 |
+

|
| 473 |
+
(b) For a four-layer RNN with 500 units per layer
|
| 474 |
+
Figure J.8: Energy consumption comparison between an in-memory RNN accelerator implementing the lpRNN model against a Cortex M4.
|
parse/train/HyxnnnVtwB/HyxnnnVtwB_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyxnnnVtwB/HyxnnnVtwB_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/HyxnnnVtwB/HyxnnnVtwB_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/Ig-VyQc-MLK/Ig-VyQc-MLK_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/P7GUAXxS3ym/P7GUAXxS3ym.md
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoning
|
| 2 |
+
|
| 3 |
+
# Maxwell Nye∗ MIT
|
| 4 |
+
|
| 5 |
+
Joshua B. Tenenbaum MIT
|
| 6 |
+
|
| 7 |
+
Michael Henry Tessler MIT DeepMind
|
| 8 |
+
|
| 9 |
+
Brenden M. Lake NYU Facebook AI Research
|
| 10 |
+
|
| 11 |
+
# Abstract
|
| 12 |
+
|
| 13 |
+
Human reasoning can be understood as an interplay between two systems: the intuitive and associative (“System 1”) and the deliberative and logical (“System 2”). Neural sequence models—which have been increasingly successful at performing complex, structured tasks—exhibit the advantages and failure modes of System 1: they are fast and learn patterns from data, but are often inconsistent and incoherent. In this work, we seek a lightweight, training-free means of improving existing System 1-like sequence models by adding System 2-inspired logical reasoning. We explore several variations on this theme in which candidate generations from a neural sequence model are examined for logical consistency by a symbolic reasoning module, which can either accept or reject the generations. Our approach uses neural inference to mediate between the neural System 1 and the logical System 2. Results in robust story generation and grounded instruction-following show that this approach can increase the coherence and accuracy of neurally-based generations.
|
| 14 |
+
|
| 15 |
+
# 1 Introduction
|
| 16 |
+
|
| 17 |
+
Despite recent success, neural sequence models often fail to produce consistent and coherent generations. When generating stories, language models may forget the attributes of specific characters (such as personality and background information) (Welleck et al., 2018), ignore previously established relationships between characters (such as family relationships) (Sinha et al., 2019), or otherwise contradict prior statements (Brown et al., 2020). Similarly, neural models can make statements that contradict basic world knowledge or the logical entailment structure of known facts.
|
| 18 |
+
|
| 19 |
+
Lake & Murphy (2020) illustrated several of these issues with GPT-2 (Radford et al., 2019). When given prompts of the form “A dolphin is a ”, GPT-2 predicts that the most likely answer is “mammal”, “fish”, or “bird” depending on small differences in the wording of the prompt. In another example, GPT-2 states that unicorns have “four horns,” directly after implying that unicorns only have one horn. Upon diagnosing such issues, it is unclear how to apply a targeted fix to the model, especially if retraining or fine-tuning is impractical.
|
| 20 |
+
|
| 21 |
+
In this work, we draw on insights from cognitive science, especially from “dual process” theories of reasoning (Evans, 2003), to explore how neural sequence models can better interface with prior knowledge and be made more coherent and consistent. According to dual process theories, human cognition can be understood as an interplay between a more intuitive and associative “System 1” and a more deliberative and logical “System 2.” Within this broad framework, automatic actions are driven by System 1, whereas System 2 engages for more deliberative control: for example, judging the validity of a logical argument that requires multiple steps of reasoning (Kahneman, 2013).
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Schematic of dual-system approach to text generation. Conditioned on previous text, a “System $1 ^ { \circ }$ neural generation model produces candidate next sentences. Semantic parses for each candidate are generated via few-shot parsing from GPT-3 and compared to a minimal world model to check consistency. Only candidates consistent with the world model state are incorporated into the final generation.
|
| 25 |
+
|
| 26 |
+
The prominent neural language models of today are single systems, with weaknesses akin to those exhibited by the human System 1. For example, the cognitive reflection test (CRT) (Frederick, 2005) is a classic probe of System 1 vs. System 2 reasoning in humans. Participants answer a set of simple questions that have superficially compelling, but logically invalid, answers. These incorrect answers are often generated as a first “gut” response (putatively, by System 1 intuitive thinking); upon reflection, however, participants often realize that their responses were not logically or mathematically consistent (via more explicit System 2 reasoning). Consider the CRT problem on the left below:
|
| 27 |
+
|
| 28 |
+
A ball and a bat cost $\$ 10$ . The bat costs one dollar more than the ball. How much does the ball cost?
|
| 29 |
+
|
| 30 |
+
<table><tr><td>Total cost in prompt</td><td>GPT-3 response</td></tr><tr><td>$1.10</td><td>10 cents</td></tr><tr><td>$1.20</td><td>20 cents</td></tr><tr><td>$1.30</td><td>$0.30</td></tr><tr><td>$1.70</td><td>$0.70</td></tr></table>
|
| 31 |
+
|
| 32 |
+
Reading quickly, you might be tempted to say the ball costs 10 cents. Most participants give this response, in fact, especially if they are under time pressure or have limited attention (Kahneman, 2013). Of course, if the bat is $\$ 1.00$ more than the ball, and the ball costs 10 cents, then the total cost would be $\$ 120$ . The correct answer is that the ball costs 5 cents. Notably, in this and other classic CRT problems, GPT-3 (Brown et al., 2020) predicts the same “gut” response (prediction in red above; the table above shows that adjusting the price in the prompt also leads to similar effects; see Appendix Figure 8 for more CRT examples). GPT-3 appears vulnerable to the same sort of intuitive, unsystematic pattern recognition errors as humans—in this case, incorrectly subtracting one dollar from $\$ 1.10$ , without confirming that the answer satisfies each of the problem constraints.
|
| 33 |
+
|
| 34 |
+
Numerous studies have shown that engagement of System 2-style effort can help “override or inhibit default responses emanating from System 1” (Evans, 2003), correcting inconsistent or un-systematic intuitive impulses. For example, when System 2 is engaged by asking people to take more time to respond, people’s accuracy improves on the CRT task above (Kahneman, 2013). It has been argued that integrating System 2 processing could similarly improve AI systems (Goyal & Bengio, 2020; Garcez & Lamb, 2020), and here we explore this idea as applied to neural sequence models.
|
| 35 |
+
|
| 36 |
+
In this work, we take inspiration from dual process theories to explore a neuro-symbolic generation system, wherein predictions from a neural model are treated as System 1 proposals, and a logical, deliberative System 2 filters these proposals for consistency and soundness (see Figure 1). We further take inspiration from the fact that humans often do not need explicit supervision to reason about new problems or domains (e.g., see human evaluation task in Section 4.2) and require that the System 2 module not need additional problem-specific training, especially on example contradictions or commonsense violations. People can handle novelty by reconfiguring, rather than retraining, their internal models (Lake et al., 2017), and we strive to build machine systems capable of the same. We show how a lightweight, easy-to-implement System 2 model can help improve coherence and consistency by adding a small amount of symbolic reasoning.
|
| 37 |
+
|
| 38 |
+
We tackle two kinds of domains: text generation and instruction following. In both cases, we construct generative models over sequences by using a neural generation model to propose candidate generations and a symbolic world model that can accept or reject the generations and resample proposals if necessary. We first illustrate the approach by generating short stories based on the bAbI dataset (Weston et al., 2015); this pedagogical, synthetic example illustrates how basic commonsense knowledge of objects, agents, and places can inform a text generation model. We then test our approach on rich, natural language vignettes based on CLUTRR (Sinha et al., 2019), focusing on ensuring consistency of family and interpersonal relationships. In both text generation domains, we interface between the explicit logical knowledge/reasoning of System 2 and generations of System 1 using a few-shot learning approach with state-of-the-art neural language models (GPT-3), which requires no additional training or fine-tuning. Even using off-the-shelf transformers and symbolic solvers, our dual-system model improves the consistency and coherence of text generations as measured by human judges. We test our approach also on instruction following, showing how goalprediction models and execution models can easily be combined to achieve improved performance in low-data regimes. We show improvements over previous work in the gSCAN grounded compositional challenge (Ruis et al., 2020); a dual-system model requires much less data to train than previous models, and achieves higher accuracy and stronger generalization. Overall, our findings indicate that neuro-symbolic, dual process models are a promising means of addressing longstanding problems of robustness and consistency in neural sequence models.
|
| 39 |
+
|
| 40 |
+
# 2 Related Work
|
| 41 |
+
|
| 42 |
+
Our approach incorporates semantic parsing (Liang, 2016) as a component of a generative process, where neural generation is used in conjunction with parsing techniques. In our text generation experiments, we employ GPT-3 to perform few-shot semantic parsing without fine-tuning. Related work includes few or zero-shot semantic parsing using pre-training techniques and paraphrasing (Su & Yan, 2017; Herzig & Berant, 2020). It also includes semantic parsing systems trained either without supervision (Liang et al., 2017; Mou et al., 2017; Muhlgay et al., 2019), or with synthetic language data (Marzoev et al., 2020; Xu et al., 2020b).
|
| 43 |
+
|
| 44 |
+
One popular technique for improving neural generations is generate-and-rerank, wherein one model generates proposals and another reranks them. This broad approach has been used in image generation (Ramesh et al., 2021), text generation (Holtzman et al., 2018; Shen et al., 2019; Deng et al., 2020), dialogue systems (for control, coherence and safety (Welleck et al., 2018; Smith et al., 2020; Nie et al., 2020; Xu et al., 2020a)), and instruction following (Kurita & Cho, 2020). Reranking is generally used to improve outputs with respect to relatively broad, holistic criteria. Here, our goal is to make generation robust to particular types of logical errors by pruning with respect to explicit symbolic constraints. Our approach can thus be considered closely related to techniques which employ explicit search to find generations satisfying particular logical constraints. Similar methods, such as guess-and-check or beam search pruning, have had success in neural program synthesis (Devlin et al., 2017; Nye et al., 2020).
|
| 45 |
+
|
| 46 |
+
Recent work in NLP has used template-based planning, in which a model generates text by first generating a plan or skeleton, and filling in the missing words to produce naturalistic text (Xu et al., 2018; Hua & Wang, 2020). To generate stories, Martin et al. (2018) parses previous sentences into events and does planning in event space. Our work extends previous entity/relation/event planning in that the world model is not used for planning, but rather for post-checking candidate generations. Structured parsing of this type is also related to dialog tracking techniques such as slot-filling (Pieraccini et al., 1992). In our work, fully compositional logical facts are extracted from utterances. It is therefore more closely related to systems which extract programs from dialogue, such as Andreas et al. (2020).
|
| 47 |
+
|
| 48 |
+
Recent work has also studied incorporating symbolic constraints into a neural decoding strategy in the context of natural language. Miao et al. (2019) introduce an MCMC-based inference-time propose-and-reject strategy for satisfying constraints. They test on constraints such as paraphrase and grammatical error correction. Lu et al. (2020) introduces “NeuroLogic decoding,” which uses logical constraints on neural language models to produce generations which contain (or do not contain) required (or forbidden) keywords. In these works, the constraints are lexical or based on word/sentence similarity (and provided in the problem setup for Lu et al. (2020)), whereas we study logical constraints on the world state decoded directly from observations or generations at test time. Other approaches for solving reasoning tasks end-to-end include Goyal et al. (2021), Serafini & d’Avila Garcez (2016), and Schlag & Schmidhuber (2018).
|
| 49 |
+
|
| 50 |
+
# 3 Integrating System 1 and System 2
|
| 51 |
+
|
| 52 |
+
We introduce our dual-system approach using examples from the bAbI domain (Weston et al., 2015), which we also use to perform diagnostic experiments. Consider generating a simple story involving people, places and objects, such as (from Figure 1):
|
| 53 |
+
|
| 54 |
+
Daniel went to the garden. Mary traveled to the office. Daniel grabbed the apple.
|
| 55 |
+
|
| 56 |
+
A model tasked with generating such stories must juggle several simultaneous demands: staying on topic and maintaining consistency of style and other textural elements (for which people rely on System 1), as well as maintaining consistency with previous statements and commonsense knowledge (for which people rely on both systems). Consider continuing the story with one of the following:
|
| 57 |
+
|
| 58 |
+
(a) Daniel went to the patio. (b) Mary dropped the apple there.
|
| 59 |
+
|
| 60 |
+
Sentence (a) is reasonable; sentence (b) is not because it is Daniel, not Mary, who has the apple. During generation, how might a model distinguish between these candidates? Perhaps a well-trained neural language model could track constraints of these sorts. Neural language models to date, however, often violate these types of commonsense, hard constraints without a large high-quality corpus or explicit training on detecting violations of commonsense (Sinha et al., 2019).
|
| 61 |
+
|
| 62 |
+
We address this problem by decomposing text generation into two parts: candidate generation facilitated by deep neural networks and a logical pruning process implemented via a separate symbolic module. Consider again the example above. To ensure consistency, our model would extract from the text the features of the world that are subject to the hard, logical constraints, such as the location of objects and who is holding them. These constraints can then be checked against an explicit representation of current state of the world. For sentences (a) and (b), the system would extract and go(Daniel, patio) and drop(Mary, apple), respectively. A minimal world model would track the state of the apple, such that it maintains apple.holder $=$ Daniel (or equivalently, Daniel.inventory $=$ [apple]). When such a model is given a parse of a candidate generation, drop(Mary, apple), the mismatch between the current state and the proposed change would cause a violation, and the candidate generation will be rejected.
|
| 63 |
+
|
| 64 |
+
The main steps of our general approach are illustrated in Figure 1: generate proposals from a System 1 proposal model, extract facts with a fact extraction model, and filter proposed generations by ensuring that they satisfy the constraints given by the extracted facts and the minimal world model.
|
| 65 |
+
|
| 66 |
+
System 1: Generation. We use neural sequence models to produce System 1 generations. In text generation domains, we use a large, pre-trained model that can be fine-tuned or conditioned via a short prompt to generate relevant text. Text sampled from the System 1 model will be treated as candidate utterances, which will be parsed and filtered by System 2 (described below). For the bAbI examples, we use GPT-3 as our System 1 proposal model through few-shot prompting with 10 example bAbI stories as context, generating a new story one candidate sentence at a time.
|
| 67 |
+
|
| 68 |
+
System 2: Fact extraction. A fact extractor, or parser, is used to mediate between the System 1 candidate proposals and the minimal world model within System 2. In our text generation domains, we use a pre-trained GPT-3 model without fine-tuning to perform parsing.
|
| 69 |
+
|
| 70 |
+
For bAbI, our prompt consist of an initial descriptive sentence “Please parse the following statements into commands. The available commands are pickup, drop, and go.” and a small set $( < 1 0 )$ of representative semantic parsing examples (input $=$ sentences; output $=$ correct parses, such as go(Bob, roof)). The parse of each utterance is produced via few-shot prompting (Brown et al., 2020): the utterance is added to the end of the prompt, and the subsequent GPT-3 generation is interpreted as the target parse. We found that this simple parsing technique works well and could easily be applied to other parsing-based tasks, as in Shin et al. (2021). The parsing prompts are reproduced in full in the Appendix. As discussed in Section 5, for the $\mathrm { g S C A N }$ instruction following domain, fact extraction is performed with a learned goal location prediction model.
|
| 71 |
+
|
| 72 |
+
System 2: Minimal world model. We use a lightweight, incomplete description of the state of the world as a world model in each domain, e.g., commonsense information about the people, objects and locations (Figure 1). The goal is not to track and verify all the possible information; instead, we aim for minimalism, capturing just a few commonsense (or application-critical) variables that we want to ensure are correct. The world model facilitates tracking of long-range logical dependencies and logical consequences, especially those which are not readily decodable from surface forms. The world model also lets us integrate rule-based world-knowledge without retraining (and without the need for a large set of labeled examples).
|
| 73 |
+
|
| 74 |
+
For the bAbI examples, the minimal world model keeps track of the people, locations and objects introduced in the story so far (Figure 1). This encodes constraints on possible actions related to human core knowledge competencies (objects, agents, places) present early in human development (Spelke & Kinzler, 2007); specifically, a person or object can only be in one place at a time, an object can only be possessed by a single person at a time, a person cannot “go” to a room they are already in, and a person cannot pick up an object if it is in a different room. See the Appendix for details.
|
| 75 |
+
|
| 76 |
+
Search. At generation time, the interaction between System 1 generation and System 2 parsing yields a neuro-symbolic, guess-and-check search strategy. In a text generation scenario, where text is sampled from the model, our dual-system model improves upon a naive, neural-only sampling method by using the System 2 model to reject candidate utterances which are incompatible with the current state. When a candidate is rejected, a new candidate utterance is sampled from the System 1 model, which is again checked by System 2. This process repeats until a candidate utterance is accepted by System 2 (i.e., the utterance is compatible with the world state). This procedure allows the model to effectively search the space of candidate utterances, guided by the logical constraints from the minimal world model. In this work, we use straightforward probabilistic sampling to illustrate that the approach works with even a very simple search mechanism. We imagine that the search procedure could be further optimized by applying, for example, beam search or stochastic beam sampling.
|
| 77 |
+
|
| 78 |
+
Diagnostic bAbI experiments. We use Task $\# 2$ from bAbI as a diagnostic test for our neuro-symbolic dual-system model. As shown above, this task consists of synthetically-generated short stories involving people, places and objects, and questions concerning the locations of objects in these stories. We investigate performance on both question answering (QA) tasks and story generation. For the QA tasks, we parse each sentence in the story to encode each fact into the world model and parse the final question to query the world model, returning the answer given by the world
|
| 79 |
+
|
| 80 |
+
GPT-3 only: John went to the bedroom.
|
| 81 |
+
John picked up the apple there.
|
| 82 |
+
Mary took the apple there.
|
| 83 |
+
Mary travelled to the office.
|
| 84 |
+
Daniel went back to the garden.
|
| 85 |
+
Mary went to the bedroom.
|
| 86 |
+
John went to the bedroom.
|
| 87 |
+
Sandra went to the bedroom.
|
| 88 |
+
Sandra travelled to the office.
|
| 89 |
+
Mary went back to the office.
|
| 90 |
+
Where is the apple? A: office GPT-3 $^ +$ world model: John went to the bedroom.
|
| 91 |
+
John picked up the apple there.
|
| 92 |
+
Mary travelled to the office.
|
| 93 |
+
Daniel went back to the garden.
|
| 94 |
+
Mary went to the bedroom.
|
| 95 |
+
Sandra went to the bedroom.
|
| 96 |
+
Sandra travelled to the office.
|
| 97 |
+
Mary went back to the office.
|
| 98 |
+
Where is the apple? A: bedroom
|
| 99 |
+
|
| 100 |
+
Figure 2: Example bAbI stories generated by GPT-3 only (left) and our dual-system model (right). Logically inconsistent lines are written in red text, and are removed from the story-so-far at generation time.
|
| 101 |
+
|
| 102 |
+
model. We compare with two alternative models (Table 3 in the Appendix): GPT-3 by itself and a dual-system baseline that uses a neural Natural Language Inference (NLI) model as its System 2. The NLI-based dual-system model generates 10 candidates from GPT-3 and selects the candidate with the highest predicted probability of entailment under the NLI model given the context. We use the RoBERTa MNLI model as our off-the-shelf neural NLI model (Liu et al., 2019), which operates as a System 2 that does not use additional problem-specific data or fine-tuning.2 On 200 held-out tasks, our GPT-3-based “fact extractor” achieves $100 \%$ QA accuracy, far exceeding the performance of GPT-3 alone $( 2 9 . 0 \% )$ or GPT-3 generation with neural NLI scoring $( 3 2 . 5 \%$ ; also see Table 3 in the Appendix). These results show that GPT-3 can be made to answer questions successfully when used for parsing with a world model, even when GPT-3 alone does not achieve high QA accuracy.
|
| 103 |
+
|
| 104 |
+
To test story generation, we use our GPT-3-based System 1 proposal model (few-shot prompted on 10 example stories) to sample a new bAbI story, line-by-line. If a generated utterance is inconsistent with the current state as indicated by the System 2 world model, a new utterance is sampled from System 1 (repeating until a consistent utterance is sampled). Figure 2 shows how the dual-system approach generates stories that mimic the statistical structure of bAbI stories, while remaining logically sound In contrast, GPT-3 alone was not able to maintain logical coherence. In a set of 50 generated stories, all stories required at least one sentence to be resampled to maintain coherence, and over half of the generated sentences $( 5 3 . 1 \% )$ were rejected by our System 2 model to maintain logical consistency. These results demonstrate that equipping GPT-3 with a minimal world model produces logically coherent stories that mimic the textural structure of the bAbI domain. In the next section, we apply this approach to mimicking human-generated short stories in natural language.
|
| 105 |
+
|
| 106 |
+
# 4 Coherent Language Generation - CLUTRR
|
| 107 |
+
|
| 108 |
+
We apply our dual-system approach to a dataset of natural language using the CLUTRR dataset. CLUTRR contains human-written stories about people and their family relationships (see example in Figure 3). As with bAbI, CLUTRR was originally designed as a Question Answering challenge; instead, we use it to evaluate coherent language generation by querying models to generate complete CLUTRR-style stories or to complete partially-generated stories. Our particular aim is to produce stories with coherent and logically consistent family relationships. As above, our language generation setup consists of pre-trained language models acting as our System 1 proposer, a minimal world model as System 2, and a neural semantic parser (implemented via few-shot GPT-3 prediction) as a bridge between the two systems. We use human judgments to assess whether our neuro-symbolic, dual-system model produces more consistent and coherent stories relative to a baseline.
|
| 109 |
+
|
| 110 |
+
# 4.1 Model specification
|
| 111 |
+
|
| 112 |
+
Kristin and her son Justin went to visit her mother Carol on a nice Sunday afternoon.They went out for a movie together and had a good time.
|
| 113 |
+
|
| 114 |
+
Q:How is Carol related to Justin ?
|
| 115 |
+
|
| 116 |
+
As our System 1 proposal model, we used pretrained neural models to produce candidate generations one sentence at a time. We experimented with GPT-3 as our System 1 model (which we used above for bAbI), but found generations too unreliable, often outputting the empty string. Instead, we used a BART model (Lewis et al., 2019) that was fine-tuned on the
|
| 117 |
+
|
| 118 |
+
CLUTRR training corpus. This model also gives us an opportunity to compare against a best-case neural “single-system” baseline, specifically fine-tuned on story data. To maintain a state of family relations, we use a constraint solver in our “System $2 ^ { \circ }$ to encode family relationships (e.g., child(x, ${ \tt y } )$ , spouse $\mathbf { \Psi } ( \mathbf { x } , \mathbf { \Psi } z ) ,$ ) and check that the candidate utterances do not contradict the previous statements (e.g., a person cannot be their own child or married to their sibling). We implemented the world model as a set of logical relations and constraints using the Z3 solver (De Moura & Bjørner, 2008). For instance, we require that the parent of $\mathtt { x }$ cannot also be the uncle of x: For all x, y, $\mathtt { u n c l e ( x , y ) } \Rightarrow \neg \mathtt { c h i l d ( y , x ) }$ . To check a candidate utterance, we query the solver to determine if the set of constraints is satisfiable or if there is a contradiction. The full set of constraints and other details can be found in the Appendix. We again used GPT-3 as our semantic parser, extracting parses for each candidate utterance via few-shot learning. This parsing approach worked well, even for the natural language in this domain. We observed that parsing with GPT-3 was more successful when the target parse was naturalistic, i.e., “Bob is Joe’s father.” rather than “father(Bob, Joe)”. The parsing prompt is reproduced in full in the Appendix.
|
| 119 |
+
|
| 120 |
+

|
| 121 |
+
Figure 4: Example trial from CLUTRR human judgement experiment. Participants were instructed to select which of two options makes the most sense given the prompt. One option was generated by the System 1 model only (“single-system”), while the other was generated by the dual-system model.
|
| 122 |
+
|
| 123 |
+

|
| 124 |
+
Figure 3: Sample story from the CLUTRR dataset. Each story consists of a sequence of humangenerated sentences concerning family relationships. Adapted from Sinha et al. (2019).
|
| 125 |
+
Figure 5: CLUTRR human judgment experiment results. Bars denote proportions of dual-system generations selected as making more sense over single-system generations, in each of four conditions. Error-bars denote bootstrapped $9 5 \%$ confidence intervals of the item means. The points denote means for each individual item in the experiment and are jittered horizontally for clarity.
|
| 126 |
+
|
| 127 |
+
Table 1: Statistics from CLUTRR story generation. We report the percentage of generations (on both a per-line and per-story basis) for which the System 2 world model did not detect an error. The dual-system model is able to detect many inconsistencies in the neural single-system generations, and most can be corrected by re-sampling new candidates (up to a limit of ten).
|
| 128 |
+
|
| 129 |
+
<table><tr><td rowspan="2"></td><td colspan="2">% w/out error detected (per line)</td><td colspan="2">% w/out error detected (per story)</td></tr><tr><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td></tr><tr><td>prompt from dataset</td><td>82.8</td><td>97.1</td><td>60</td><td>96.1</td></tr><tr><td>prompt from model</td><td>71.9</td><td>96.3</td><td>36.4</td><td>93.5</td></tr></table>
|
| 130 |
+
|
| 131 |
+
# 4.2 Human judgments
|
| 132 |
+
|
| 133 |
+
We test our dual-system neural generation $^ +$ world model method in its ability to generate stories that are deemed by naive human participants to be more naturalistic and coherent than those generated from the baseline models. Specifically, we asked participants to select which of two continuations made the most sense to them, where one continuation was generated from the neural model alone (single-system) and the other from a dual-system model (either the world model System 2 or the neural NLI System 2).
|
| 134 |
+
|
| 135 |
+
Participants. Participants $\mathbf { N } = 1 0 1$ ) were recruited on the crowd-sourcing platform Prolific and compensated $\$ 2$ for the task ( ${ \sim } 1 5$ minutes, so roughly $\$ 8/\mathrm{ h o u r }$ ). Participants gave informed consent, and the study was approved by MIT’s IRB. 21 participants were excluded for failing an instruction quiz, incorrectly answering more than one of five filler questions, or finishing the task too quickly. The data we collected contains no personally identifiable information or offensive content.
|
| 136 |
+
|
| 137 |
+
Procedure. Participants began the experiment by reading a set of instructions and answering comprehension questions. On each main trial, participants were shown a prompt consisting of several sentences and were asked to choose which of two possible continuations made the most sense (an example trial is shown in Figure 4). Participants were instructed that if a name appeared multiple times within a trial, then it referred to the same person, whereas if a name appeared across trials, then it was not referring to the same person. For each trial, one continuation option was generated by the neural only single-system baseline, while the other was a dual-system generation. We selected generations from the neural only baseline that were rejected by the System 2 model in order to maximize the differences between the models’ generations; thus, human judgments pertain to generations that the models disagreed on. Each participant performed between 20 and 26 trials.
|
| 138 |
+
|
| 139 |
+
Materials. Participants were randomly assigned to one of four between-participant conditions, which varied according to the kind of prompt and the kind of dual-system model. The prompt was either generated from the model (up to the point of disagreement between System 1 and System 2 models; “Prompts from model” condition) or taken completely from the length 4 CLUTRR systematic generalization test dataset (“Prompts from dataset” condition). To generate prompts for the “from model” condition, we took the first sentence of each story from the CLUTRR test dataset and generated subsequent prompt sentences from the dual-system model; sentences were generated until the two systems disagreed (i.e., System 1 generated a sentence that System 2 rejected), at which point the “rejected sentence” served as the neural only (single-system) baseline generation and the first resampled sentence that System 2 accepted served as the dual-system generation. Prompts were sampled to a maximum length of four sentences. The dual-system model shown to participants used a System 2 based on either our constraint-based “world model” or the neural NLI baseline.
|
| 140 |
+
|
| 141 |
+
Table 1 catalogs critical statistics from the stimulus generation process. We generated vignettes from the System 1 model and report the percentage of System 1 generations which are deemed correct by the System 2 model.3 We also report the percentage of generations corrected by the System 2 model (i.e., if System 1 made an error, could System 2 fix it within 10 attempts?). We report these statistics on both a per-story and per-line basis. According to System 2, the System 1 generation model makes a lot of errors (only $3 6 . 4 \%$ of stories and $7 1 . 9 \%$ of lines were error-free, in the “from model" condition). In most instances, re-sampling new generations yields stories that, according to
|
| 142 |
+
|
| 143 |
+
Table 2: Accuracy on $\mathrm { g } \mathrm { S C A N }$ splits. Models were trained on 5000 examples (only $2 . 5 \%$ of the gSCAN training data). See Appendix Table 4 for additional results.)
|
| 144 |
+
|
| 145 |
+
<table><tr><td>Test split:</td><td>single-system5</td><td>dual-system</td></tr><tr><td>dev</td><td>71.7</td><td>83.3</td></tr><tr><td>random</td><td>57.2</td><td>74.7</td></tr><tr><td>yellow squares</td><td>68.1</td><td>81.3</td></tr><tr><td>red squares</td><td>64.9</td><td>78.1</td></tr><tr><td>novel direction</td><td>0.0</td><td>0.01</td></tr><tr><td>relativity</td><td>41.0</td><td>53.6</td></tr><tr><td>class inference</td><td>68.1</td><td>76.2</td></tr><tr><td>adverb (k=1)</td><td>0.0</td><td>0.0</td></tr><tr><td>adverb to verb</td><td>20.8</td><td>21.8</td></tr><tr><td colspan="3"></td></tr><tr><td colspan="3">³From Heinze-Deml & Bouchacourt (2020)</td></tr></table>
|
| 146 |
+
|
| 147 |
+

|
| 148 |
+
Figure 6: Schematic of our dual-system approach to $\mathrm { g S C A N }$ . We train a neural sequence model to predict both a distribution over action sequences, and a distribution over target locations. At test time, we decode candidate action sequences from the model, execute them on the gridworld, and only accept a sequence that brings the agent to the predicted target location (shown in green).
|
| 149 |
+
|
| 150 |
+
System 2, no longer contain logical errors within a budget of 10 samples $9 3 . 5 \%$ of stories and $9 6 . 3 \%$ of lines were error-free, respectively).
|
| 151 |
+
|
| 152 |
+
Results. The human evaluation indicates that System 2 is indeed correcting genuine errors in the stories. As summarized in Figure 5, participants strongly preferred the dual-system neural generation $^ +$ world model continuations in comparison to the neural only single-system continuations (proportion preferring dual-system $= 0 . 8 4$ ; bootstrapped $9 5 \%$ confidence interval [0.77, 0.89] and 0.79 [0.77, 0.89] for the “from dataset” and “from model” prompt conditions, respectively). The dual-system approach, however, did not improve generation quality when the System 2 was based on an off-the-shelf neural NLI model (Proportion preferring dual-system $= 0 . 5 1$ ; [0.40, 0.64] for “from dataset”; 0.58 [0.48, 0.68] for “from model”). Thus, when using a minimal world model, the dual-system approach dramatically improves logical consistency without any need for additional training or fine-tuning. People clearly prefer neuro-symbolic generations from the dual-system model over purely neural generations from a single-system model.4
|
| 153 |
+
|
| 154 |
+
# 5 Grounded Instruction Following
|
| 155 |
+
|
| 156 |
+
The dual-system approach offers a general-purpose means of improving upon generative, neural sequence models by incorporating logical constraints. To highlight its generality, we examine how the dual-system perspective can be deployed in a very different domain: grounded instruction following. In Heinze-Deml & Bouchacourt (2020), a learned target location predictor was used to increase the accuracy of a neural action sequence generation model. Here, we show how to increase performance further by enforcing consistency between the target location predictor and the action sequence generator in our dual-system framework.
|
| 157 |
+
|
| 158 |
+
We use the gSCAN benchmark (Ruis et al., 2020), a recently proposed grounded instruction following dataset designed to measure compositional generalization in neural systems. Given an initial gridworld state and an instruction, e.g., “walk to the big square,” an agent must predict the sequence of low-level actions which achieve the goal, e.g., “TURN LEFT, WALK, TURN LEFT, WALK” (See Figure 6). The dataset contains several test splits, each testing different aspects of compositional generalization.
|
| 159 |
+
|
| 160 |
+
Our model builds on Heinze-Deml & Bouchacourt (2020) by using an LSTM to predict the correct action sequence and target location. Given a command $c$ and an initial gridworld state $s$ , the neural network defines two distributions: a distribution over action sequences $q _ { a } ( a | c , s )$ and a distribution over target grid locations $q _ { l o c } ( l | c , s )$ . Heinze-Deml & Bouchacourt (2020) showed that when these distributions share parameters, using location prediction as an auxiliary loss improves the accuracy of the action sequence prediction model. We can further exploit these two models by noticing that when a predicted action sequence is not consistent with a predicted target location, then either the action sequence or the target location must be incorrect. Since the target location is much simpler to predict, and thus much more likely to be correctly predicted, if a predicted action sequence is not consistent with the predicted target location, then the action sequence is most likely incorrect. Our dual-system framework can use this property to increase action sequence prediction accuracy. Consider the initial state and command in Figure 6. Our model predicts candidate action sequences, and also predicts that the most likely target location is the grid containing the bigger yellow square (highlighted in red). The model then executes the candidate action sequences, and only accepts a sequence which results in the agent standing in the target location.
|
| 161 |
+
|
| 162 |
+
In the language of our dual-system approach, we treat the distribution over actions $q _ { a } ( a | c , s )$ as our System 1 proposal model. The distribution over target locations $q _ { l o c } ( l | c , s )$ serves as a fact extractor model, which extract a location constraint $l$ . As a minimal world model, we use a deterministic gridworld execution model $T ( a , s _ { 0 } ) \to s _ { f }$ , which takes a state and action and predicts the resulting state. At test time, we first extract the predicted location as $l = \arg \operatorname* { m a x } _ { l ^ { \prime } } q _ { l o c } ( l ^ { \prime } | c )$ We then search through the possible action sequences from $q _ { a } ( \cdot | c )$ , conditioned on agreement with $l$ . In our experiments, we use a sample-based search with a maximum budget of 50 samples. We trained models on random subsets of the gSCAN training set of varying sizes: 5000 datapoints, 8000 datapoints, and 20000 datapoints $2 . 5 \%$ , $4 \%$ and $10 \%$ of the original training set, respectively).
|
| 163 |
+
|
| 164 |
+
Results. The results show that the System 2 execution model improves performance without the need for any additional training (see Table 2 for results training on 5000 examples). In contrast to the single-system model, the dual-system model allows for sampling many candidate action sequences from the neural network, accepting only consistent sequences. This guess-and-check approach greatly increases the evaluation accuracy, improving upon prior work on gSCAN, particularly in low-data regimes.
|
| 165 |
+
|
| 166 |
+
# 6 Limitations
|
| 167 |
+
|
| 168 |
+
In its current form, our approach is most useful in domains where naturalistic, learned generation is necessary and where a small number of mission-critical logical constraints can be explicitly articulated. Our system will be less useful when constraints are more difficult to articulate (e.g., creative domains such as writing poetry) or when there are many constraints, since the minimal world model must be hand-engineered. Enforcing strict constraints may also pose risks: if the constraints are not only logical but cultural, they may be harmful if misapplied. However, these constraints must be articulated explicitly in a symbolic model, and are thus easier to identify and correct.
|
| 169 |
+
|
| 170 |
+
The current few-shot parsing technique may also suffer from a limited capacity. For more complex domains, the number of examples required to specify the desired parsing behavior may be too large (i.e., they may not fit in the input window) or too complex for a model to perform parsing accurately. While some tasks may not be suitable, the complexity of the world model need not necessarily increase hand-in-hand with the complexity of the application domain. A dual-system model will be most successful when tracking just a few critical variables (e.g., tracking consistency in family relations, as in our experiments, or tracking scheduling constraints when discussing a team plan).
|
| 171 |
+
|
| 172 |
+
A promising direction for future work is to incorporate learning into the System 2 world model. Currently, the minimal world knowledge that exists in System 2 can be easily modified, but changes must be made by hand. Improvements would come from automatically learning and updating this structured knowledge, possibly by incorporating neuro-symbolic learning techniques (Ellis et al., 2020; Mao et al., 2019), or other neuro-symbolic integration work such as Tsamoura et al. (2021); Michael & Valiant (2008).
|
| 173 |
+
|
| 174 |
+
Learning could improve our dual-system approach in other ways, e.g., by training a neural module to mimic the actions of a symbolic System 2. The symbolic System 2 judgments could be used as a source of supervision; candidate utterances rejected by the symbolic System 2 model could be used as examples of contradictory sentences, and accepted utterances could be used as examples of noncontradictory statements. This oversight could help train a neural System 2 contradiction-detection model capable of more subtleties than its symbolic counterpart, especially in domains where labeled examples are otherwise unavailable. This approach may also help us understand aspects of human learning, where certain tasks that require slower, logical reasoning can be habitualized over time and tackled by faster, more intuitive reasoning.
|
| 175 |
+
|
| 176 |
+
Recent work (Li et al., 2021) has shown that large pre-trained neural models learn to approximately represent certain types of structured semantic information. However, it is not yet clear how representational fidelity translates to logical coherence during generative tasks. Our current approach allows us to explicitly fix logical errors in generation, which may ultimately be caused by representational errors. Understanding how we might leverage our approach to improve the representation of structured knowledge within neural models is a promising direction for future work, which could lead to increased generation consistency and coherence.
|
| 177 |
+
|
| 178 |
+
# 7 Conclusion
|
| 179 |
+
|
| 180 |
+
Inspired by dual process theories from cognitive science, we combine the respective strengths of neural and symbolic approaches to build more robust models that can more effectively incorporate domain knowledge. For language generation, we showed that equipping neural generation with a minimal symbolic world model increased language coherence and consistency. For grounded instruction following, we showed that requiring test-time consistency between predicted action sequences and goal locations led to improved performance, especially in low-data regimes. Our neuro-symbolic approach can readily be applied to other domains and types of prior knowledge, as a lightweight way of improving the coherence and consistency of powerful neural sequence models.
|
| 181 |
+
|
| 182 |
+
This paper just scratches the surface of how structured knowledge can make neural systems more robust; we hope to inspire further work into neuro-symbolic systems which possess the robustness and commonsense necessary for human-level intelligence.
|
| 183 |
+
|
| 184 |
+
# Acknowledgments
|
| 185 |
+
|
| 186 |
+
We thank Laura Ruis, Jacob Andreas, Yewen (Evan) Pu, Joe O’Connor and Guy Davidson for helpful comments on an earlier version of this manuscript. MN is supported by a NSF Graduate Research Fellowship.
|
| 187 |
+
|
| 188 |
+
# References
|
| 189 |
+
|
| 190 |
+
Andreas, J., Bufe, J., Burkett, D., Chen, C., Clausman, J., Crawford, J., Crim, K., DeLoach, J., Dorner, L., Eisner, J., et al. Task-oriented dialogue as dataflow synthesis. Transactions of the Association for Computational Linguistics, 8:556–571, 2020.
|
| 191 |
+
Brown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020.
|
| 192 |
+
De Moura, L. and Bjørner, N. Z3: An efficient smt solver. In Tools and Algorithms for the Construction and Analysis of Systems, pp. 337–340. Springer, 2008.
|
| 193 |
+
Deng, Y., Bakhtin, A., Ott, M., Szlam, A., and Marc’Aurelio Ranzato. Residual energy-based models of text generation. In International Conference on Learning Representations (ICLR), pp. 1–18, 2020.
|
| 194 |
+
Devlin, J., Uesato, J., Bhupatiraju, S., Singh, R., Mohamed, A.-r., and Kohli, P. Robustfill: Neural program learning under noisy i/o. ICML, 2017.
|
| 195 |
+
Ellis, K., Wong, C., Nye, M., Sable-Meyer, M., Cary, L., Morales, L., Hewitt, L., Solar-Lezama, A., and Tenenbaum, J. B. Dreamcoder: Growing generalizable, interpretable knowledge with wake-sleep bayesian program learning. arXiv preprint arXiv:2006.08381, 2020.
|
| 196 |
+
Evans, J. S. B. In two minds: dual-process accounts of reasoning. Trends in cognitive sciences, 7(10): 454–459, 2003.
|
| 197 |
+
Frederick, S. Cognitive reflection and decision making. Journal of Economic perspectives, 19(4): 25–42, 2005.
|
| 198 |
+
Garcez, A. d. and Lamb, L. C. Neurosymbolic ai: The 3rd wave. arXiv preprint arXiv:2012.05876, 2020.
|
| 199 |
+
Goyal, A. and Bengio, Y. Inductive biases for deep learning of higher-level cognition. arXiv preprint arXiv:2011.15091, 2020.
|
| 200 |
+
Goyal, A., Didolkar, A., Ke, N. R., Blundell, C., Beaudoin, P., Heess, N., Mozer, M., and Bengio, Y. Neural production systems. CoRR, abs/2103.01937, 2021. URL https://arxiv.org/abs/ 2103.01937.
|
| 201 |
+
Heinze-Deml, C. and Bouchacourt, D. Think before you act: A simple baseline for compositional generalization. arXiv preprint arXiv:2009.13962, 2020.
|
| 202 |
+
Herzig, J. and Berant, J. Span-based semantic parsing for compositional generalization. arXiv preprint arXiv:2009.06040, 2020.
|
| 203 |
+
Holtzman, A., Buys, J., Forbes, M., Bosselut, A., Golub, D., and Choi, Y. Learning to write with cooperative discriminators. arXiv preprint arXiv:1805.06087, 2018.
|
| 204 |
+
Hua, X. and Wang, L. Pair: Planning and iterative refinement in pre-trained transformers for long text generation. In EMNLP, 2020.
|
| 205 |
+
Kahneman, D. Thinking, fast and slow. kindle ed, 2013.
|
| 206 |
+
Kurita, S. and Cho, K. Generative language-grounded policy in vision-and-language navigation with bayes’ rule. arXiv preprint arXiv:2009.07783, 2020.
|
| 207 |
+
Lake, B. M. and Murphy, G. L. Word meaning in minds and machines. arXiv preprint arXiv:2008.01766, 2020.
|
| 208 |
+
Lake, B. M., Ullman, T. D., Tenenbaum, J. B., and Gershman, S. J. Building machines that learn and think like people. Behavioral and Brain Sciences, 40:E253, 2017.
|
| 209 |
+
Lewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., and Zettlemoyer, L. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461, 2019.
|
| 210 |
+
Li, B. Z., Nye, M., and Andreas, J. Implicit representations of meaning in neural language models. arXiv preprint arXiv:2106.00737, 2021.
|
| 211 |
+
Liang, C., Berant, J., Le, Q. V., Forbus, K., and Lao, N. Neural symbolic machines: Learning semantic parsers on freebase with weak supervision. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 23–33, Vancouver, Canada, 2017. URL http://aclanthology.coli.uni-saarland.de/pdf/P/P17/P17-1003.pdf.
|
| 212 |
+
Liang, P. Learning executable semantic parsers for natural language understanding. Communications of the ACM, 59(9):68–76, 2016.
|
| 213 |
+
Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
|
| 214 |
+
Loshchilov, I. and Hutter, F. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017.
|
| 215 |
+
Lu, X., West, P., Zellers, R., Bras, R. L., Bhagavatula, C., and Choi, Y. Neurologic decoding:(un) supervised neural text generation with predicate logic constraints. arXiv preprint arXiv:2010.12884, 2020.
|
| 216 |
+
Mao, J., Gan, C., Kohli, P., Tenenbaum, J. B., and Wu, J. The neuro-symbolic concept learner: Interpreting scenes, words, and sentences from natural supervision. arXiv preprint arXiv:1904.12584, 2019.
|
| 217 |
+
Martin, L. J., Ammanabrolu, P., Hancock, W., Singh, S., Harrison, B., and Riedl, M. O. Event representations for automated story generation with deep neural nets. In AAAI, 2018.
|
| 218 |
+
Marzoev, A., Madden, S., Kaashoek, M. F., Cafarella, M., and Andreas, J. Unnatural language processing: Bridging the gap between synthetic and natural language data. arXiv preprint arXiv:2004.13645, 2020.
|
| 219 |
+
Miao, N., Zhou, H., Mou, L., Yan, R., and Li, L. Cgmh: Constrained sentence generation by metropolis-hastings sampling. In AAAI, 2019.
|
| 220 |
+
Michael, L. and Valiant, L. G. A first experimental demonstration of massive knowledge infusion. 2008.
|
| 221 |
+
Mou, L., Lu, Z., Li, H., and Jin, Z. Coupling distributed and symbolic execution for natural language queries. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2518–2526. PMLR, 06–11 Aug 2017. URL http://proceedings.mlr.press/v70/mou17a.html.
|
| 222 |
+
Muhlgay, D., Herzig, J., and Berant, J. Value-based search in execution space for mapping instructions to programs. pp. 1942–1954, 01 2019. doi: 10.18653/v1/N19-1193.
|
| 223 |
+
Nie, Y., Williamson, M., Bansal, M., Kiela, D., and Weston, J. I like fish, especially dolphins: Addressing contradictions in dialogue modelling. arXiv preprint arXiv:2012.13391, 2020.
|
| 224 |
+
Nye, M. I., Solar-Lezama, A., Tenenbaum, J. B., and Lake, B. M. Learning compositional rules via neural program synthesis. arXiv preprint arXiv:2003.05562, 2020.
|
| 225 |
+
Pieraccini, R., Tzoukermann, E., Gorelov, Z., Gauvain, J.-L., Levin, E., Lee, C.-H., and Wilpon, J. A speech understanding system based on statistical representation of semantics. In [Proceedings] ICASSP-92: 1992 IEEE International Conference on Acoustics, Speech, and Signal Processing, volume 1, pp. 193–196 vol.1, 1992. doi: 10.1109/ICASSP.1992.225939.
|
| 226 |
+
Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
|
| 227 |
+
Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., and Sutskever, I. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021.
|
| 228 |
+
Ruis, L., Andreas, J., Baroni, M., Bouchacourt, D., and Lake, B. M. A benchmark for systematic generalization in grounded language understanding. arXiv preprint arXiv:2003.05161, 2020.
|
| 229 |
+
Schlag, I. and Schmidhuber, J. Learning to reason with third-order tensor products. CoRR, abs/1811.12143, 2018. URL http://arxiv.org/abs/1811.12143.
|
| 230 |
+
Serafini, L. and d’Avila Garcez, A. S. Logic tensor networks: Deep learning and logical reasoning from data and knowledge. CoRR, abs/1606.04422, 2016. URL http://arxiv.org/abs/1606. 04422.
|
| 231 |
+
Shen, S., Fried, D., Andreas, J., and Klein, D. Pragmatically informative text generation. arXiv preprint arXiv:1904.01301, 2019.
|
| 232 |
+
Shin, R., Lin, C. H., Thomson, S., Chen, C., Roy, S., Platanios, E. A., Pauls, A., Klein, D., Eisner, J., and Van Durme, B. Constrained language models yield few-shot semantic parsers. arXiv preprint arXiv:2104.08768, 2021.
|
| 233 |
+
Sinha, K., Sodhani, S., Dong, J., Pineau, J., and Hamilton, W. L. Clutrr: A diagnostic benchmark for inductive reasoning from text. arXiv preprint arXiv:1908.06177, 2019.
|
| 234 |
+
Smith, E. M., Gonzalez-Rico, D., Dinan, E., and Boureau, Y.-L. Controlling style in generated dialogue. arXiv preprint arXiv:2009.10855, 2020.
|
| 235 |
+
Spelke, E. S. and Kinzler, K. D. Core knowledge. Developmental Science, 10(1):89–96, 2007.
|
| 236 |
+
Su, Y. and Yan, X. Cross-domain semantic parsing via paraphrasing. arXiv preprint arXiv:1704.05974, 2017.
|
| 237 |
+
Tsamoura, E., Hospedales, T., and Michael, L. Neural-symbolic integration: A compositional perspective. Proceedings of the AAAI Conference on Artificial Intelligence, 35(6):5051–5060, May 2021. URL https://ojs.aaai.org/index.php/AAAI/article/view/16639.
|
| 238 |
+
Welleck, S., Weston, J., Szlam, A., and Cho, K. Dialogue natural language inference. arXiv preprint arXiv:1811.00671, 2018.
|
| 239 |
+
Weston, J., Bordes, A., Chopra, S., Rush, A. M., van Merriënboer, B., Joulin, A., and Mikolov, T. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015.
|
| 240 |
+
Xu, J., Ren, X., Zhang, Y., Zeng, Q., Cai, X., and Sun, X. A skeleton-based model for promoting coherence among sentences in narrative story generation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 4306–4315, Brussels, Belgium, OctoberNovember 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1462. URL https://www.aclweb.org/anthology/D18-1462.
|
| 241 |
+
Xu, J., Ju, D., Li, M., Boureau, Y.-L., Weston, J., and Dinan, E. Recipes for safety in open-domain chatbots. arXiv preprint arXiv:2010.07079, 2020a.
|
| 242 |
+
Xu, S., Semnani, S. J., Campagna, G., and Lam, M. S. Autoqa: From databases to qa semantic parsers with only synthetic training data. arXiv preprint arXiv:2010.04806, 2020b.
|
parse/train/P7GUAXxS3ym/P7GUAXxS3ym_content_list.json
ADDED
|
@@ -0,0 +1,1025 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "Improving Coherence and Consistency in Neural Sequence Models with Dual-System, Neuro-Symbolic Reasoning ",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
204,
|
| 8 |
+
122,
|
| 9 |
+
795,
|
| 10 |
+
198
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Maxwell Nye∗ MIT ",
|
| 17 |
+
"text_level": 1,
|
| 18 |
+
"bbox": [
|
| 19 |
+
187,
|
| 20 |
+
251,
|
| 21 |
+
284,
|
| 22 |
+
279
|
| 23 |
+
],
|
| 24 |
+
"page_idx": 0
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"type": "text",
|
| 28 |
+
"text": "Joshua B. Tenenbaum MIT ",
|
| 29 |
+
"bbox": [
|
| 30 |
+
483,
|
| 31 |
+
251,
|
| 32 |
+
637,
|
| 33 |
+
279
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Michael Henry Tessler MIT DeepMind ",
|
| 40 |
+
"bbox": [
|
| 41 |
+
303,
|
| 42 |
+
251,
|
| 43 |
+
459,
|
| 44 |
+
292
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "Brenden M. Lake NYU Facebook AI Research ",
|
| 51 |
+
"bbox": [
|
| 52 |
+
658,
|
| 53 |
+
251,
|
| 54 |
+
810,
|
| 55 |
+
292
|
| 56 |
+
],
|
| 57 |
+
"page_idx": 0
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"type": "text",
|
| 61 |
+
"text": "Abstract ",
|
| 62 |
+
"text_level": 1,
|
| 63 |
+
"bbox": [
|
| 64 |
+
462,
|
| 65 |
+
329,
|
| 66 |
+
535,
|
| 67 |
+
345
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "Human reasoning can be understood as an interplay between two systems: the intuitive and associative (“System 1”) and the deliberative and logical (“System 2”). Neural sequence models—which have been increasingly successful at performing complex, structured tasks—exhibit the advantages and failure modes of System 1: they are fast and learn patterns from data, but are often inconsistent and incoherent. In this work, we seek a lightweight, training-free means of improving existing System 1-like sequence models by adding System 2-inspired logical reasoning. We explore several variations on this theme in which candidate generations from a neural sequence model are examined for logical consistency by a symbolic reasoning module, which can either accept or reject the generations. Our approach uses neural inference to mediate between the neural System 1 and the logical System 2. Results in robust story generation and grounded instruction-following show that this approach can increase the coherence and accuracy of neurally-based generations. ",
|
| 74 |
+
"bbox": [
|
| 75 |
+
232,
|
| 76 |
+
359,
|
| 77 |
+
766,
|
| 78 |
+
551
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "1 Introduction ",
|
| 85 |
+
"text_level": 1,
|
| 86 |
+
"bbox": [
|
| 87 |
+
174,
|
| 88 |
+
574,
|
| 89 |
+
312,
|
| 90 |
+
592
|
| 91 |
+
],
|
| 92 |
+
"page_idx": 0
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"type": "text",
|
| 96 |
+
"text": "Despite recent success, neural sequence models often fail to produce consistent and coherent generations. When generating stories, language models may forget the attributes of specific characters (such as personality and background information) (Welleck et al., 2018), ignore previously established relationships between characters (such as family relationships) (Sinha et al., 2019), or otherwise contradict prior statements (Brown et al., 2020). Similarly, neural models can make statements that contradict basic world knowledge or the logical entailment structure of known facts. ",
|
| 97 |
+
"bbox": [
|
| 98 |
+
174,
|
| 99 |
+
606,
|
| 100 |
+
825,
|
| 101 |
+
689
|
| 102 |
+
],
|
| 103 |
+
"page_idx": 0
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"type": "text",
|
| 107 |
+
"text": "Lake & Murphy (2020) illustrated several of these issues with GPT-2 (Radford et al., 2019). When given prompts of the form “A dolphin is a ”, GPT-2 predicts that the most likely answer is “mammal”, “fish”, or “bird” depending on small differences in the wording of the prompt. In another example, GPT-2 states that unicorns have “four horns,” directly after implying that unicorns only have one horn. Upon diagnosing such issues, it is unclear how to apply a targeted fix to the model, especially if retraining or fine-tuning is impractical. ",
|
| 108 |
+
"bbox": [
|
| 109 |
+
173,
|
| 110 |
+
695,
|
| 111 |
+
825,
|
| 112 |
+
779
|
| 113 |
+
],
|
| 114 |
+
"page_idx": 0
|
| 115 |
+
},
|
| 116 |
+
{
|
| 117 |
+
"type": "text",
|
| 118 |
+
"text": "In this work, we draw on insights from cognitive science, especially from “dual process” theories of reasoning (Evans, 2003), to explore how neural sequence models can better interface with prior knowledge and be made more coherent and consistent. According to dual process theories, human cognition can be understood as an interplay between a more intuitive and associative “System 1” and a more deliberative and logical “System 2.” Within this broad framework, automatic actions are driven by System 1, whereas System 2 engages for more deliberative control: for example, judging the validity of a logical argument that requires multiple steps of reasoning (Kahneman, 2013). ",
|
| 119 |
+
"bbox": [
|
| 120 |
+
174,
|
| 121 |
+
785,
|
| 122 |
+
826,
|
| 123 |
+
882
|
| 124 |
+
],
|
| 125 |
+
"page_idx": 0
|
| 126 |
+
},
|
| 127 |
+
{
|
| 128 |
+
"type": "image",
|
| 129 |
+
"img_path": "images/c20d75f1293a76956af17c66db3e3cec0efd21ca62aa27c08f823624b84353b6.jpg",
|
| 130 |
+
"image_caption": [
|
| 131 |
+
"Figure 1: Schematic of dual-system approach to text generation. Conditioned on previous text, a “System $1 ^ { \\circ }$ neural generation model produces candidate next sentences. Semantic parses for each candidate are generated via few-shot parsing from GPT-3 and compared to a minimal world model to check consistency. Only candidates consistent with the world model state are incorporated into the final generation. "
|
| 132 |
+
],
|
| 133 |
+
"image_footnote": [],
|
| 134 |
+
"bbox": [
|
| 135 |
+
179,
|
| 136 |
+
50,
|
| 137 |
+
820,
|
| 138 |
+
205
|
| 139 |
+
],
|
| 140 |
+
"page_idx": 1
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"type": "text",
|
| 144 |
+
"text": "The prominent neural language models of today are single systems, with weaknesses akin to those exhibited by the human System 1. For example, the cognitive reflection test (CRT) (Frederick, 2005) is a classic probe of System 1 vs. System 2 reasoning in humans. Participants answer a set of simple questions that have superficially compelling, but logically invalid, answers. These incorrect answers are often generated as a first “gut” response (putatively, by System 1 intuitive thinking); upon reflection, however, participants often realize that their responses were not logically or mathematically consistent (via more explicit System 2 reasoning). Consider the CRT problem on the left below: ",
|
| 145 |
+
"bbox": [
|
| 146 |
+
174,
|
| 147 |
+
295,
|
| 148 |
+
825,
|
| 149 |
+
393
|
| 150 |
+
],
|
| 151 |
+
"page_idx": 1
|
| 152 |
+
},
|
| 153 |
+
{
|
| 154 |
+
"type": "text",
|
| 155 |
+
"text": "A ball and a bat cost $\\$ 10$ . The bat costs one dollar more than the ball. How much does the ball cost? ",
|
| 156 |
+
"bbox": [
|
| 157 |
+
232,
|
| 158 |
+
414,
|
| 159 |
+
490,
|
| 160 |
+
452
|
| 161 |
+
],
|
| 162 |
+
"page_idx": 1
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"type": "table",
|
| 166 |
+
"img_path": "images/147fcf5aa32d30f5bf088fc4af7d5dccb6b0d68606a410f5491f0947b66f4845.jpg",
|
| 167 |
+
"table_caption": [],
|
| 168 |
+
"table_footnote": [],
|
| 169 |
+
"table_body": "<table><tr><td>Total cost in prompt</td><td>GPT-3 response</td></tr><tr><td>$1.10</td><td>10 cents</td></tr><tr><td>$1.20</td><td>20 cents</td></tr><tr><td>$1.30</td><td>$0.30</td></tr><tr><td>$1.70</td><td>$0.70</td></tr></table>",
|
| 170 |
+
"bbox": [
|
| 171 |
+
509,
|
| 172 |
+
398,
|
| 173 |
+
774,
|
| 174 |
+
463
|
| 175 |
+
],
|
| 176 |
+
"page_idx": 1
|
| 177 |
+
},
|
| 178 |
+
{
|
| 179 |
+
"type": "text",
|
| 180 |
+
"text": "Reading quickly, you might be tempted to say the ball costs 10 cents. Most participants give this response, in fact, especially if they are under time pressure or have limited attention (Kahneman, 2013). Of course, if the bat is $\\$ 1.00$ more than the ball, and the ball costs 10 cents, then the total cost would be $\\$ 120$ . The correct answer is that the ball costs 5 cents. Notably, in this and other classic CRT problems, GPT-3 (Brown et al., 2020) predicts the same “gut” response (prediction in red above; the table above shows that adjusting the price in the prompt also leads to similar effects; see Appendix Figure 8 for more CRT examples). GPT-3 appears vulnerable to the same sort of intuitive, unsystematic pattern recognition errors as humans—in this case, incorrectly subtracting one dollar from $\\$ 1.10$ , without confirming that the answer satisfies each of the problem constraints. ",
|
| 181 |
+
"bbox": [
|
| 182 |
+
174,
|
| 183 |
+
463,
|
| 184 |
+
825,
|
| 185 |
+
588
|
| 186 |
+
],
|
| 187 |
+
"page_idx": 1
|
| 188 |
+
},
|
| 189 |
+
{
|
| 190 |
+
"type": "text",
|
| 191 |
+
"text": "Numerous studies have shown that engagement of System 2-style effort can help “override or inhibit default responses emanating from System 1” (Evans, 2003), correcting inconsistent or un-systematic intuitive impulses. For example, when System 2 is engaged by asking people to take more time to respond, people’s accuracy improves on the CRT task above (Kahneman, 2013). It has been argued that integrating System 2 processing could similarly improve AI systems (Goyal & Bengio, 2020; Garcez & Lamb, 2020), and here we explore this idea as applied to neural sequence models. ",
|
| 192 |
+
"bbox": [
|
| 193 |
+
174,
|
| 194 |
+
593,
|
| 195 |
+
825,
|
| 196 |
+
678
|
| 197 |
+
],
|
| 198 |
+
"page_idx": 1
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"type": "text",
|
| 202 |
+
"text": "In this work, we take inspiration from dual process theories to explore a neuro-symbolic generation system, wherein predictions from a neural model are treated as System 1 proposals, and a logical, deliberative System 2 filters these proposals for consistency and soundness (see Figure 1). We further take inspiration from the fact that humans often do not need explicit supervision to reason about new problems or domains (e.g., see human evaluation task in Section 4.2) and require that the System 2 module not need additional problem-specific training, especially on example contradictions or commonsense violations. People can handle novelty by reconfiguring, rather than retraining, their internal models (Lake et al., 2017), and we strive to build machine systems capable of the same. We show how a lightweight, easy-to-implement System 2 model can help improve coherence and consistency by adding a small amount of symbolic reasoning. ",
|
| 203 |
+
"bbox": [
|
| 204 |
+
173,
|
| 205 |
+
683,
|
| 206 |
+
825,
|
| 207 |
+
821
|
| 208 |
+
],
|
| 209 |
+
"page_idx": 1
|
| 210 |
+
},
|
| 211 |
+
{
|
| 212 |
+
"type": "text",
|
| 213 |
+
"text": "We tackle two kinds of domains: text generation and instruction following. In both cases, we construct generative models over sequences by using a neural generation model to propose candidate generations and a symbolic world model that can accept or reject the generations and resample proposals if necessary. We first illustrate the approach by generating short stories based on the bAbI dataset (Weston et al., 2015); this pedagogical, synthetic example illustrates how basic commonsense knowledge of objects, agents, and places can inform a text generation model. We then test our approach on rich, natural language vignettes based on CLUTRR (Sinha et al., 2019), focusing on ensuring consistency of family and interpersonal relationships. In both text generation domains, we interface between the explicit logical knowledge/reasoning of System 2 and generations of System 1 using a few-shot learning approach with state-of-the-art neural language models (GPT-3), which requires no additional training or fine-tuning. Even using off-the-shelf transformers and symbolic solvers, our dual-system model improves the consistency and coherence of text generations as measured by human judges. We test our approach also on instruction following, showing how goalprediction models and execution models can easily be combined to achieve improved performance in low-data regimes. We show improvements over previous work in the gSCAN grounded compositional challenge (Ruis et al., 2020); a dual-system model requires much less data to train than previous models, and achieves higher accuracy and stronger generalization. Overall, our findings indicate that neuro-symbolic, dual process models are a promising means of addressing longstanding problems of robustness and consistency in neural sequence models. ",
|
| 214 |
+
"bbox": [
|
| 215 |
+
174,
|
| 216 |
+
828,
|
| 217 |
+
825,
|
| 218 |
+
911
|
| 219 |
+
],
|
| 220 |
+
"page_idx": 1
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"type": "text",
|
| 224 |
+
"text": "",
|
| 225 |
+
"bbox": [
|
| 226 |
+
174,
|
| 227 |
+
92,
|
| 228 |
+
825,
|
| 229 |
+
270
|
| 230 |
+
],
|
| 231 |
+
"page_idx": 2
|
| 232 |
+
},
|
| 233 |
+
{
|
| 234 |
+
"type": "text",
|
| 235 |
+
"text": "2 Related Work ",
|
| 236 |
+
"text_level": 1,
|
| 237 |
+
"bbox": [
|
| 238 |
+
174,
|
| 239 |
+
327,
|
| 240 |
+
321,
|
| 241 |
+
343
|
| 242 |
+
],
|
| 243 |
+
"page_idx": 2
|
| 244 |
+
},
|
| 245 |
+
{
|
| 246 |
+
"type": "text",
|
| 247 |
+
"text": "Our approach incorporates semantic parsing (Liang, 2016) as a component of a generative process, where neural generation is used in conjunction with parsing techniques. In our text generation experiments, we employ GPT-3 to perform few-shot semantic parsing without fine-tuning. Related work includes few or zero-shot semantic parsing using pre-training techniques and paraphrasing (Su & Yan, 2017; Herzig & Berant, 2020). It also includes semantic parsing systems trained either without supervision (Liang et al., 2017; Mou et al., 2017; Muhlgay et al., 2019), or with synthetic language data (Marzoev et al., 2020; Xu et al., 2020b). ",
|
| 248 |
+
"bbox": [
|
| 249 |
+
173,
|
| 250 |
+
380,
|
| 251 |
+
825,
|
| 252 |
+
477
|
| 253 |
+
],
|
| 254 |
+
"page_idx": 2
|
| 255 |
+
},
|
| 256 |
+
{
|
| 257 |
+
"type": "text",
|
| 258 |
+
"text": "One popular technique for improving neural generations is generate-and-rerank, wherein one model generates proposals and another reranks them. This broad approach has been used in image generation (Ramesh et al., 2021), text generation (Holtzman et al., 2018; Shen et al., 2019; Deng et al., 2020), dialogue systems (for control, coherence and safety (Welleck et al., 2018; Smith et al., 2020; Nie et al., 2020; Xu et al., 2020a)), and instruction following (Kurita & Cho, 2020). Reranking is generally used to improve outputs with respect to relatively broad, holistic criteria. Here, our goal is to make generation robust to particular types of logical errors by pruning with respect to explicit symbolic constraints. Our approach can thus be considered closely related to techniques which employ explicit search to find generations satisfying particular logical constraints. Similar methods, such as guess-and-check or beam search pruning, have had success in neural program synthesis (Devlin et al., 2017; Nye et al., 2020). ",
|
| 259 |
+
"bbox": [
|
| 260 |
+
174,
|
| 261 |
+
484,
|
| 262 |
+
825,
|
| 263 |
+
636
|
| 264 |
+
],
|
| 265 |
+
"page_idx": 2
|
| 266 |
+
},
|
| 267 |
+
{
|
| 268 |
+
"type": "text",
|
| 269 |
+
"text": "Recent work in NLP has used template-based planning, in which a model generates text by first generating a plan or skeleton, and filling in the missing words to produce naturalistic text (Xu et al., 2018; Hua & Wang, 2020). To generate stories, Martin et al. (2018) parses previous sentences into events and does planning in event space. Our work extends previous entity/relation/event planning in that the world model is not used for planning, but rather for post-checking candidate generations. Structured parsing of this type is also related to dialog tracking techniques such as slot-filling (Pieraccini et al., 1992). In our work, fully compositional logical facts are extracted from utterances. It is therefore more closely related to systems which extract programs from dialogue, such as Andreas et al. (2020). ",
|
| 270 |
+
"bbox": [
|
| 271 |
+
174,
|
| 272 |
+
642,
|
| 273 |
+
825,
|
| 274 |
+
767
|
| 275 |
+
],
|
| 276 |
+
"page_idx": 2
|
| 277 |
+
},
|
| 278 |
+
{
|
| 279 |
+
"type": "text",
|
| 280 |
+
"text": "Recent work has also studied incorporating symbolic constraints into a neural decoding strategy in the context of natural language. Miao et al. (2019) introduce an MCMC-based inference-time propose-and-reject strategy for satisfying constraints. They test on constraints such as paraphrase and grammatical error correction. Lu et al. (2020) introduces “NeuroLogic decoding,” which uses logical constraints on neural language models to produce generations which contain (or do not contain) required (or forbidden) keywords. In these works, the constraints are lexical or based on word/sentence similarity (and provided in the problem setup for Lu et al. (2020)), whereas we study logical constraints on the world state decoded directly from observations or generations at test time. Other approaches for solving reasoning tasks end-to-end include Goyal et al. (2021), Serafini & d’Avila Garcez (2016), and Schlag & Schmidhuber (2018). ",
|
| 281 |
+
"bbox": [
|
| 282 |
+
174,
|
| 283 |
+
772,
|
| 284 |
+
825,
|
| 285 |
+
911
|
| 286 |
+
],
|
| 287 |
+
"page_idx": 2
|
| 288 |
+
},
|
| 289 |
+
{
|
| 290 |
+
"type": "text",
|
| 291 |
+
"text": "3 Integrating System 1 and System 2 ",
|
| 292 |
+
"text_level": 1,
|
| 293 |
+
"bbox": [
|
| 294 |
+
174,
|
| 295 |
+
89,
|
| 296 |
+
496,
|
| 297 |
+
107
|
| 298 |
+
],
|
| 299 |
+
"page_idx": 3
|
| 300 |
+
},
|
| 301 |
+
{
|
| 302 |
+
"type": "text",
|
| 303 |
+
"text": "We introduce our dual-system approach using examples from the bAbI domain (Weston et al., 2015), which we also use to perform diagnostic experiments. Consider generating a simple story involving people, places and objects, such as (from Figure 1): ",
|
| 304 |
+
"bbox": [
|
| 305 |
+
174,
|
| 306 |
+
125,
|
| 307 |
+
826,
|
| 308 |
+
167
|
| 309 |
+
],
|
| 310 |
+
"page_idx": 3
|
| 311 |
+
},
|
| 312 |
+
{
|
| 313 |
+
"type": "text",
|
| 314 |
+
"text": "Daniel went to the garden. Mary traveled to the office. Daniel grabbed the apple. ",
|
| 315 |
+
"bbox": [
|
| 316 |
+
233,
|
| 317 |
+
172,
|
| 318 |
+
766,
|
| 319 |
+
188
|
| 320 |
+
],
|
| 321 |
+
"page_idx": 3
|
| 322 |
+
},
|
| 323 |
+
{
|
| 324 |
+
"type": "text",
|
| 325 |
+
"text": "A model tasked with generating such stories must juggle several simultaneous demands: staying on topic and maintaining consistency of style and other textural elements (for which people rely on System 1), as well as maintaining consistency with previous statements and commonsense knowledge (for which people rely on both systems). Consider continuing the story with one of the following: ",
|
| 326 |
+
"bbox": [
|
| 327 |
+
174,
|
| 328 |
+
194,
|
| 329 |
+
825,
|
| 330 |
+
250
|
| 331 |
+
],
|
| 332 |
+
"page_idx": 3
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"type": "text",
|
| 336 |
+
"text": "(a) Daniel went to the patio. (b) Mary dropped the apple there. ",
|
| 337 |
+
"bbox": [
|
| 338 |
+
276,
|
| 339 |
+
256,
|
| 340 |
+
720,
|
| 341 |
+
270
|
| 342 |
+
],
|
| 343 |
+
"page_idx": 3
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"type": "text",
|
| 347 |
+
"text": "Sentence (a) is reasonable; sentence (b) is not because it is Daniel, not Mary, who has the apple. During generation, how might a model distinguish between these candidates? Perhaps a well-trained neural language model could track constraints of these sorts. Neural language models to date, however, often violate these types of commonsense, hard constraints without a large high-quality corpus or explicit training on detecting violations of commonsense (Sinha et al., 2019). ",
|
| 348 |
+
"bbox": [
|
| 349 |
+
174,
|
| 350 |
+
276,
|
| 351 |
+
826,
|
| 352 |
+
347
|
| 353 |
+
],
|
| 354 |
+
"page_idx": 3
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"type": "text",
|
| 358 |
+
"text": "We address this problem by decomposing text generation into two parts: candidate generation facilitated by deep neural networks and a logical pruning process implemented via a separate symbolic module. Consider again the example above. To ensure consistency, our model would extract from the text the features of the world that are subject to the hard, logical constraints, such as the location of objects and who is holding them. These constraints can then be checked against an explicit representation of current state of the world. For sentences (a) and (b), the system would extract and go(Daniel, patio) and drop(Mary, apple), respectively. A minimal world model would track the state of the apple, such that it maintains apple.holder $=$ Daniel (or equivalently, Daniel.inventory $=$ [apple]). When such a model is given a parse of a candidate generation, drop(Mary, apple), the mismatch between the current state and the proposed change would cause a violation, and the candidate generation will be rejected. ",
|
| 359 |
+
"bbox": [
|
| 360 |
+
173,
|
| 361 |
+
353,
|
| 362 |
+
825,
|
| 363 |
+
505
|
| 364 |
+
],
|
| 365 |
+
"page_idx": 3
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"type": "text",
|
| 369 |
+
"text": "The main steps of our general approach are illustrated in Figure 1: generate proposals from a System 1 proposal model, extract facts with a fact extraction model, and filter proposed generations by ensuring that they satisfy the constraints given by the extracted facts and the minimal world model. ",
|
| 370 |
+
"bbox": [
|
| 371 |
+
174,
|
| 372 |
+
511,
|
| 373 |
+
825,
|
| 374 |
+
553
|
| 375 |
+
],
|
| 376 |
+
"page_idx": 3
|
| 377 |
+
},
|
| 378 |
+
{
|
| 379 |
+
"type": "text",
|
| 380 |
+
"text": "System 1: Generation. We use neural sequence models to produce System 1 generations. In text generation domains, we use a large, pre-trained model that can be fine-tuned or conditioned via a short prompt to generate relevant text. Text sampled from the System 1 model will be treated as candidate utterances, which will be parsed and filtered by System 2 (described below). For the bAbI examples, we use GPT-3 as our System 1 proposal model through few-shot prompting with 10 example bAbI stories as context, generating a new story one candidate sentence at a time. ",
|
| 381 |
+
"bbox": [
|
| 382 |
+
174,
|
| 383 |
+
559,
|
| 384 |
+
825,
|
| 385 |
+
643
|
| 386 |
+
],
|
| 387 |
+
"page_idx": 3
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"type": "text",
|
| 391 |
+
"text": "System 2: Fact extraction. A fact extractor, or parser, is used to mediate between the System 1 candidate proposals and the minimal world model within System 2. In our text generation domains, we use a pre-trained GPT-3 model without fine-tuning to perform parsing. ",
|
| 392 |
+
"bbox": [
|
| 393 |
+
174,
|
| 394 |
+
648,
|
| 395 |
+
825,
|
| 396 |
+
690
|
| 397 |
+
],
|
| 398 |
+
"page_idx": 3
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"type": "text",
|
| 402 |
+
"text": "For bAbI, our prompt consist of an initial descriptive sentence “Please parse the following statements into commands. The available commands are pickup, drop, and go.” and a small set $( < 1 0 )$ of representative semantic parsing examples (input $=$ sentences; output $=$ correct parses, such as go(Bob, roof)). The parse of each utterance is produced via few-shot prompting (Brown et al., 2020): the utterance is added to the end of the prompt, and the subsequent GPT-3 generation is interpreted as the target parse. We found that this simple parsing technique works well and could easily be applied to other parsing-based tasks, as in Shin et al. (2021). The parsing prompts are reproduced in full in the Appendix. As discussed in Section 5, for the $\\mathrm { g S C A N }$ instruction following domain, fact extraction is performed with a learned goal location prediction model. ",
|
| 403 |
+
"bbox": [
|
| 404 |
+
173,
|
| 405 |
+
696,
|
| 406 |
+
825,
|
| 407 |
+
821
|
| 408 |
+
],
|
| 409 |
+
"page_idx": 3
|
| 410 |
+
},
|
| 411 |
+
{
|
| 412 |
+
"type": "text",
|
| 413 |
+
"text": "System 2: Minimal world model. We use a lightweight, incomplete description of the state of the world as a world model in each domain, e.g., commonsense information about the people, objects and locations (Figure 1). The goal is not to track and verify all the possible information; instead, we aim for minimalism, capturing just a few commonsense (or application-critical) variables that we want to ensure are correct. The world model facilitates tracking of long-range logical dependencies and logical consequences, especially those which are not readily decodable from surface forms. The world model also lets us integrate rule-based world-knowledge without retraining (and without the need for a large set of labeled examples). ",
|
| 414 |
+
"bbox": [
|
| 415 |
+
174,
|
| 416 |
+
827,
|
| 417 |
+
823,
|
| 418 |
+
911
|
| 419 |
+
],
|
| 420 |
+
"page_idx": 3
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"type": "text",
|
| 424 |
+
"text": "",
|
| 425 |
+
"bbox": [
|
| 426 |
+
173,
|
| 427 |
+
92,
|
| 428 |
+
823,
|
| 429 |
+
119
|
| 430 |
+
],
|
| 431 |
+
"page_idx": 4
|
| 432 |
+
},
|
| 433 |
+
{
|
| 434 |
+
"type": "text",
|
| 435 |
+
"text": "For the bAbI examples, the minimal world model keeps track of the people, locations and objects introduced in the story so far (Figure 1). This encodes constraints on possible actions related to human core knowledge competencies (objects, agents, places) present early in human development (Spelke & Kinzler, 2007); specifically, a person or object can only be in one place at a time, an object can only be possessed by a single person at a time, a person cannot “go” to a room they are already in, and a person cannot pick up an object if it is in a different room. See the Appendix for details. ",
|
| 436 |
+
"bbox": [
|
| 437 |
+
173,
|
| 438 |
+
126,
|
| 439 |
+
825,
|
| 440 |
+
209
|
| 441 |
+
],
|
| 442 |
+
"page_idx": 4
|
| 443 |
+
},
|
| 444 |
+
{
|
| 445 |
+
"type": "text",
|
| 446 |
+
"text": "Search. At generation time, the interaction between System 1 generation and System 2 parsing yields a neuro-symbolic, guess-and-check search strategy. In a text generation scenario, where text is sampled from the model, our dual-system model improves upon a naive, neural-only sampling method by using the System 2 model to reject candidate utterances which are incompatible with the current state. When a candidate is rejected, a new candidate utterance is sampled from the System 1 model, which is again checked by System 2. This process repeats until a candidate utterance is accepted by System 2 (i.e., the utterance is compatible with the world state). This procedure allows the model to effectively search the space of candidate utterances, guided by the logical constraints from the minimal world model. In this work, we use straightforward probabilistic sampling to illustrate that the approach works with even a very simple search mechanism. We imagine that the search procedure could be further optimized by applying, for example, beam search or stochastic beam sampling. ",
|
| 447 |
+
"bbox": [
|
| 448 |
+
173,
|
| 449 |
+
215,
|
| 450 |
+
825,
|
| 451 |
+
367
|
| 452 |
+
],
|
| 453 |
+
"page_idx": 4
|
| 454 |
+
},
|
| 455 |
+
{
|
| 456 |
+
"type": "text",
|
| 457 |
+
"text": "Diagnostic bAbI experiments. We use Task $\\# 2$ from bAbI as a diagnostic test for our neuro-symbolic dual-system model. As shown above, this task consists of synthetically-generated short stories involving people, places and objects, and questions concerning the locations of objects in these stories. We investigate performance on both question answering (QA) tasks and story generation. For the QA tasks, we parse each sentence in the story to encode each fact into the world model and parse the final question to query the world model, returning the answer given by the world ",
|
| 458 |
+
"bbox": [
|
| 459 |
+
174,
|
| 460 |
+
375,
|
| 461 |
+
452,
|
| 462 |
+
566
|
| 463 |
+
],
|
| 464 |
+
"page_idx": 4
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"type": "text",
|
| 468 |
+
"text": "GPT-3 only: John went to the bedroom. \nJohn picked up the apple there. \nMary took the apple there. \nMary travelled to the office. \nDaniel went back to the garden. \nMary went to the bedroom. \nJohn went to the bedroom. \nSandra went to the bedroom. \nSandra travelled to the office. \nMary went back to the office. \nWhere is the apple? A: office GPT-3 $^ +$ world model: John went to the bedroom. \nJohn picked up the apple there. \nMary travelled to the office. \nDaniel went back to the garden. \nMary went to the bedroom. \nSandra went to the bedroom. \nSandra travelled to the office. \nMary went back to the office. \nWhere is the apple? A: bedroom ",
|
| 469 |
+
"bbox": [
|
| 470 |
+
465,
|
| 471 |
+
372,
|
| 472 |
+
611,
|
| 473 |
+
493
|
| 474 |
+
],
|
| 475 |
+
"page_idx": 4
|
| 476 |
+
},
|
| 477 |
+
{
|
| 478 |
+
"type": "text",
|
| 479 |
+
"text": "",
|
| 480 |
+
"bbox": [
|
| 481 |
+
642,
|
| 482 |
+
373,
|
| 483 |
+
792,
|
| 484 |
+
474
|
| 485 |
+
],
|
| 486 |
+
"page_idx": 4
|
| 487 |
+
},
|
| 488 |
+
{
|
| 489 |
+
"type": "text",
|
| 490 |
+
"text": "Figure 2: Example bAbI stories generated by GPT-3 only (left) and our dual-system model (right). Logically inconsistent lines are written in red text, and are removed from the story-so-far at generation time. ",
|
| 491 |
+
"bbox": [
|
| 492 |
+
464,
|
| 493 |
+
501,
|
| 494 |
+
825,
|
| 495 |
+
555
|
| 496 |
+
],
|
| 497 |
+
"page_idx": 4
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"type": "text",
|
| 501 |
+
"text": "model. We compare with two alternative models (Table 3 in the Appendix): GPT-3 by itself and a dual-system baseline that uses a neural Natural Language Inference (NLI) model as its System 2. The NLI-based dual-system model generates 10 candidates from GPT-3 and selects the candidate with the highest predicted probability of entailment under the NLI model given the context. We use the RoBERTa MNLI model as our off-the-shelf neural NLI model (Liu et al., 2019), which operates as a System 2 that does not use additional problem-specific data or fine-tuning.2 On 200 held-out tasks, our GPT-3-based “fact extractor” achieves $100 \\%$ QA accuracy, far exceeding the performance of GPT-3 alone $( 2 9 . 0 \\% )$ or GPT-3 generation with neural NLI scoring $( 3 2 . 5 \\%$ ; also see Table 3 in the Appendix). These results show that GPT-3 can be made to answer questions successfully when used for parsing with a world model, even when GPT-3 alone does not achieve high QA accuracy. ",
|
| 502 |
+
"bbox": [
|
| 503 |
+
173,
|
| 504 |
+
566,
|
| 505 |
+
825,
|
| 506 |
+
704
|
| 507 |
+
],
|
| 508 |
+
"page_idx": 4
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"type": "text",
|
| 512 |
+
"text": "To test story generation, we use our GPT-3-based System 1 proposal model (few-shot prompted on 10 example stories) to sample a new bAbI story, line-by-line. If a generated utterance is inconsistent with the current state as indicated by the System 2 world model, a new utterance is sampled from System 1 (repeating until a consistent utterance is sampled). Figure 2 shows how the dual-system approach generates stories that mimic the statistical structure of bAbI stories, while remaining logically sound In contrast, GPT-3 alone was not able to maintain logical coherence. In a set of 50 generated stories, all stories required at least one sentence to be resampled to maintain coherence, and over half of the generated sentences $( 5 3 . 1 \\% )$ were rejected by our System 2 model to maintain logical consistency. These results demonstrate that equipping GPT-3 with a minimal world model produces logically coherent stories that mimic the textural structure of the bAbI domain. In the next section, we apply this approach to mimicking human-generated short stories in natural language. ",
|
| 513 |
+
"bbox": [
|
| 514 |
+
173,
|
| 515 |
+
712,
|
| 516 |
+
825,
|
| 517 |
+
863
|
| 518 |
+
],
|
| 519 |
+
"page_idx": 4
|
| 520 |
+
},
|
| 521 |
+
{
|
| 522 |
+
"type": "text",
|
| 523 |
+
"text": "4 Coherent Language Generation - CLUTRR ",
|
| 524 |
+
"text_level": 1,
|
| 525 |
+
"bbox": [
|
| 526 |
+
173,
|
| 527 |
+
89,
|
| 528 |
+
558,
|
| 529 |
+
107
|
| 530 |
+
],
|
| 531 |
+
"page_idx": 5
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"type": "text",
|
| 535 |
+
"text": "We apply our dual-system approach to a dataset of natural language using the CLUTRR dataset. CLUTRR contains human-written stories about people and their family relationships (see example in Figure 3). As with bAbI, CLUTRR was originally designed as a Question Answering challenge; instead, we use it to evaluate coherent language generation by querying models to generate complete CLUTRR-style stories or to complete partially-generated stories. Our particular aim is to produce stories with coherent and logically consistent family relationships. As above, our language generation setup consists of pre-trained language models acting as our System 1 proposer, a minimal world model as System 2, and a neural semantic parser (implemented via few-shot GPT-3 prediction) as a bridge between the two systems. We use human judgments to assess whether our neuro-symbolic, dual-system model produces more consistent and coherent stories relative to a baseline. ",
|
| 536 |
+
"bbox": [
|
| 537 |
+
173,
|
| 538 |
+
123,
|
| 539 |
+
825,
|
| 540 |
+
262
|
| 541 |
+
],
|
| 542 |
+
"page_idx": 5
|
| 543 |
+
},
|
| 544 |
+
{
|
| 545 |
+
"type": "text",
|
| 546 |
+
"text": "4.1 Model specification ",
|
| 547 |
+
"text_level": 1,
|
| 548 |
+
"bbox": [
|
| 549 |
+
174,
|
| 550 |
+
282,
|
| 551 |
+
346,
|
| 552 |
+
297
|
| 553 |
+
],
|
| 554 |
+
"page_idx": 5
|
| 555 |
+
},
|
| 556 |
+
{
|
| 557 |
+
"type": "text",
|
| 558 |
+
"text": "Kristin and her son Justin went to visit her mother Carol on a nice Sunday afternoon.They went out for a movie together and had a good time. ",
|
| 559 |
+
"bbox": [
|
| 560 |
+
500,
|
| 561 |
+
314,
|
| 562 |
+
650,
|
| 563 |
+
348
|
| 564 |
+
],
|
| 565 |
+
"page_idx": 5
|
| 566 |
+
},
|
| 567 |
+
{
|
| 568 |
+
"type": "text",
|
| 569 |
+
"text": "Q:How is Carol related to Justin ? ",
|
| 570 |
+
"bbox": [
|
| 571 |
+
679,
|
| 572 |
+
319,
|
| 573 |
+
816,
|
| 574 |
+
328
|
| 575 |
+
],
|
| 576 |
+
"page_idx": 5
|
| 577 |
+
},
|
| 578 |
+
{
|
| 579 |
+
"type": "text",
|
| 580 |
+
"text": "As our System 1 proposal model, we used pretrained neural models to produce candidate generations one sentence at a time. We experimented with GPT-3 as our System 1 model (which we used above for bAbI), but found generations too unreliable, often outputting the empty string. Instead, we used a BART model (Lewis et al., 2019) that was fine-tuned on the ",
|
| 581 |
+
"bbox": [
|
| 582 |
+
174,
|
| 583 |
+
310,
|
| 584 |
+
483,
|
| 585 |
+
420
|
| 586 |
+
],
|
| 587 |
+
"page_idx": 5
|
| 588 |
+
},
|
| 589 |
+
{
|
| 590 |
+
"type": "text",
|
| 591 |
+
"text": "CLUTRR training corpus. This model also gives us an opportunity to compare against a best-case neural “single-system” baseline, specifically fine-tuned on story data. To maintain a state of family relations, we use a constraint solver in our “System $2 ^ { \\circ }$ to encode family relationships (e.g., child(x, ${ \\tt y } )$ , spouse $\\mathbf { \\Psi } ( \\mathbf { x } , \\mathbf { \\Psi } z ) ,$ ) and check that the candidate utterances do not contradict the previous statements (e.g., a person cannot be their own child or married to their sibling). We implemented the world model as a set of logical relations and constraints using the Z3 solver (De Moura & Bjørner, 2008). For instance, we require that the parent of $\\mathtt { x }$ cannot also be the uncle of x: For all x, y, $\\mathtt { u n c l e ( x , y ) } \\Rightarrow \\neg \\mathtt { c h i l d ( y , x ) }$ . To check a candidate utterance, we query the solver to determine if the set of constraints is satisfiable or if there is a contradiction. The full set of constraints and other details can be found in the Appendix. We again used GPT-3 as our semantic parser, extracting parses for each candidate utterance via few-shot learning. This parsing approach worked well, even for the natural language in this domain. We observed that parsing with GPT-3 was more successful when the target parse was naturalistic, i.e., “Bob is Joe’s father.” rather than “father(Bob, Joe)”. The parsing prompt is reproduced in full in the Appendix. ",
|
| 592 |
+
"bbox": [
|
| 593 |
+
173,
|
| 594 |
+
421,
|
| 595 |
+
826,
|
| 596 |
+
613
|
| 597 |
+
],
|
| 598 |
+
"page_idx": 5
|
| 599 |
+
},
|
| 600 |
+
{
|
| 601 |
+
"type": "image",
|
| 602 |
+
"img_path": "images/ec4fa337894acae8383e081ea66d706994e95a5c4138459856cf540cc4c46a35.jpg",
|
| 603 |
+
"image_caption": [
|
| 604 |
+
"Figure 4: Example trial from CLUTRR human judgement experiment. Participants were instructed to select which of two options makes the most sense given the prompt. One option was generated by the System 1 model only (“single-system”), while the other was generated by the dual-system model. "
|
| 605 |
+
],
|
| 606 |
+
"image_footnote": [],
|
| 607 |
+
"bbox": [
|
| 608 |
+
181,
|
| 609 |
+
638,
|
| 610 |
+
459,
|
| 611 |
+
782
|
| 612 |
+
],
|
| 613 |
+
"page_idx": 5
|
| 614 |
+
},
|
| 615 |
+
{
|
| 616 |
+
"type": "image",
|
| 617 |
+
"img_path": "images/23551b86728bcb3d12e87976cf8ca4400fe58d0284de9a84ef95c28f8e78effb.jpg",
|
| 618 |
+
"image_caption": [
|
| 619 |
+
"Figure 3: Sample story from the CLUTRR dataset. Each story consists of a sequence of humangenerated sentences concerning family relationships. Adapted from Sinha et al. (2019). ",
|
| 620 |
+
"Figure 5: CLUTRR human judgment experiment results. Bars denote proportions of dual-system generations selected as making more sense over single-system generations, in each of four conditions. Error-bars denote bootstrapped $9 5 \\%$ confidence intervals of the item means. The points denote means for each individual item in the experiment and are jittered horizontally for clarity. "
|
| 621 |
+
],
|
| 622 |
+
"image_footnote": [],
|
| 623 |
+
"bbox": [
|
| 624 |
+
496,
|
| 625 |
+
626,
|
| 626 |
+
795,
|
| 627 |
+
780
|
| 628 |
+
],
|
| 629 |
+
"page_idx": 5
|
| 630 |
+
},
|
| 631 |
+
{
|
| 632 |
+
"type": "table",
|
| 633 |
+
"img_path": "images/4ba28e7b17b17987d160c543b82e1a018ff9c6ce24889db658739cb519cac8b4.jpg",
|
| 634 |
+
"table_caption": [
|
| 635 |
+
"Table 1: Statistics from CLUTRR story generation. We report the percentage of generations (on both a per-line and per-story basis) for which the System 2 world model did not detect an error. The dual-system model is able to detect many inconsistencies in the neural single-system generations, and most can be corrected by re-sampling new candidates (up to a limit of ten). "
|
| 636 |
+
],
|
| 637 |
+
"table_footnote": [],
|
| 638 |
+
"table_body": "<table><tr><td rowspan=\"2\"></td><td colspan=\"2\">% w/out error detected (per line)</td><td colspan=\"2\">% w/out error detected (per story)</td></tr><tr><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td><td>single-system (neural gen. only)</td><td>dual-system (neural gen.+world model)</td></tr><tr><td>prompt from dataset</td><td>82.8</td><td>97.1</td><td>60</td><td>96.1</td></tr><tr><td>prompt from model</td><td>71.9</td><td>96.3</td><td>36.4</td><td>93.5</td></tr></table>",
|
| 639 |
+
"bbox": [
|
| 640 |
+
171,
|
| 641 |
+
159,
|
| 642 |
+
825,
|
| 643 |
+
231
|
| 644 |
+
],
|
| 645 |
+
"page_idx": 6
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"type": "text",
|
| 649 |
+
"text": "4.2 Human judgments ",
|
| 650 |
+
"text_level": 1,
|
| 651 |
+
"bbox": [
|
| 652 |
+
174,
|
| 653 |
+
247,
|
| 654 |
+
343,
|
| 655 |
+
263
|
| 656 |
+
],
|
| 657 |
+
"page_idx": 6
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"type": "text",
|
| 661 |
+
"text": "We test our dual-system neural generation $^ +$ world model method in its ability to generate stories that are deemed by naive human participants to be more naturalistic and coherent than those generated from the baseline models. Specifically, we asked participants to select which of two continuations made the most sense to them, where one continuation was generated from the neural model alone (single-system) and the other from a dual-system model (either the world model System 2 or the neural NLI System 2). ",
|
| 662 |
+
"bbox": [
|
| 663 |
+
173,
|
| 664 |
+
275,
|
| 665 |
+
825,
|
| 666 |
+
359
|
| 667 |
+
],
|
| 668 |
+
"page_idx": 6
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"type": "text",
|
| 672 |
+
"text": "Participants. Participants $\\mathbf { N } = 1 0 1$ ) were recruited on the crowd-sourcing platform Prolific and compensated $\\$ 2$ for the task ( ${ \\sim } 1 5$ minutes, so roughly $\\$ 8/\\mathrm{ h o u r }$ ). Participants gave informed consent, and the study was approved by MIT’s IRB. 21 participants were excluded for failing an instruction quiz, incorrectly answering more than one of five filler questions, or finishing the task too quickly. The data we collected contains no personally identifiable information or offensive content. ",
|
| 673 |
+
"bbox": [
|
| 674 |
+
174,
|
| 675 |
+
364,
|
| 676 |
+
825,
|
| 677 |
+
434
|
| 678 |
+
],
|
| 679 |
+
"page_idx": 6
|
| 680 |
+
},
|
| 681 |
+
{
|
| 682 |
+
"type": "text",
|
| 683 |
+
"text": "Procedure. Participants began the experiment by reading a set of instructions and answering comprehension questions. On each main trial, participants were shown a prompt consisting of several sentences and were asked to choose which of two possible continuations made the most sense (an example trial is shown in Figure 4). Participants were instructed that if a name appeared multiple times within a trial, then it referred to the same person, whereas if a name appeared across trials, then it was not referring to the same person. For each trial, one continuation option was generated by the neural only single-system baseline, while the other was a dual-system generation. We selected generations from the neural only baseline that were rejected by the System 2 model in order to maximize the differences between the models’ generations; thus, human judgments pertain to generations that the models disagreed on. Each participant performed between 20 and 26 trials. ",
|
| 684 |
+
"bbox": [
|
| 685 |
+
173,
|
| 686 |
+
440,
|
| 687 |
+
825,
|
| 688 |
+
579
|
| 689 |
+
],
|
| 690 |
+
"page_idx": 6
|
| 691 |
+
},
|
| 692 |
+
{
|
| 693 |
+
"type": "text",
|
| 694 |
+
"text": "Materials. Participants were randomly assigned to one of four between-participant conditions, which varied according to the kind of prompt and the kind of dual-system model. The prompt was either generated from the model (up to the point of disagreement between System 1 and System 2 models; “Prompts from model” condition) or taken completely from the length 4 CLUTRR systematic generalization test dataset (“Prompts from dataset” condition). To generate prompts for the “from model” condition, we took the first sentence of each story from the CLUTRR test dataset and generated subsequent prompt sentences from the dual-system model; sentences were generated until the two systems disagreed (i.e., System 1 generated a sentence that System 2 rejected), at which point the “rejected sentence” served as the neural only (single-system) baseline generation and the first resampled sentence that System 2 accepted served as the dual-system generation. Prompts were sampled to a maximum length of four sentences. The dual-system model shown to participants used a System 2 based on either our constraint-based “world model” or the neural NLI baseline. ",
|
| 695 |
+
"bbox": [
|
| 696 |
+
174,
|
| 697 |
+
585,
|
| 698 |
+
825,
|
| 699 |
+
751
|
| 700 |
+
],
|
| 701 |
+
"page_idx": 6
|
| 702 |
+
},
|
| 703 |
+
{
|
| 704 |
+
"type": "text",
|
| 705 |
+
"text": "Table 1 catalogs critical statistics from the stimulus generation process. We generated vignettes from the System 1 model and report the percentage of System 1 generations which are deemed correct by the System 2 model.3 We also report the percentage of generations corrected by the System 2 model (i.e., if System 1 made an error, could System 2 fix it within 10 attempts?). We report these statistics on both a per-story and per-line basis. According to System 2, the System 1 generation model makes a lot of errors (only $3 6 . 4 \\%$ of stories and $7 1 . 9 \\%$ of lines were error-free, in the “from model\" condition). In most instances, re-sampling new generations yields stories that, according to ",
|
| 706 |
+
"bbox": [
|
| 707 |
+
174,
|
| 708 |
+
757,
|
| 709 |
+
825,
|
| 710 |
+
854
|
| 711 |
+
],
|
| 712 |
+
"page_idx": 6
|
| 713 |
+
},
|
| 714 |
+
{
|
| 715 |
+
"type": "table",
|
| 716 |
+
"img_path": "images/d21556f194dd69a45e77703bda990cd49f2741ef73361dbb4797e172924c1aa8.jpg",
|
| 717 |
+
"table_caption": [
|
| 718 |
+
"Table 2: Accuracy on $\\mathrm { g } \\mathrm { S C A N }$ splits. Models were trained on 5000 examples (only $2 . 5 \\%$ of the gSCAN training data). See Appendix Table 4 for additional results.) "
|
| 719 |
+
],
|
| 720 |
+
"table_footnote": [],
|
| 721 |
+
"table_body": "<table><tr><td>Test split:</td><td>single-system5</td><td>dual-system</td></tr><tr><td>dev</td><td>71.7</td><td>83.3</td></tr><tr><td>random</td><td>57.2</td><td>74.7</td></tr><tr><td>yellow squares</td><td>68.1</td><td>81.3</td></tr><tr><td>red squares</td><td>64.9</td><td>78.1</td></tr><tr><td>novel direction</td><td>0.0</td><td>0.01</td></tr><tr><td>relativity</td><td>41.0</td><td>53.6</td></tr><tr><td>class inference</td><td>68.1</td><td>76.2</td></tr><tr><td>adverb (k=1)</td><td>0.0</td><td>0.0</td></tr><tr><td>adverb to verb</td><td>20.8</td><td>21.8</td></tr><tr><td colspan=\"3\"></td></tr><tr><td colspan=\"3\">³From Heinze-Deml & Bouchacourt (2020)</td></tr></table>",
|
| 722 |
+
"bbox": [
|
| 723 |
+
174,
|
| 724 |
+
142,
|
| 725 |
+
504,
|
| 726 |
+
296
|
| 727 |
+
],
|
| 728 |
+
"page_idx": 7
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"type": "image",
|
| 732 |
+
"img_path": "images/6b309f49955634199fe29a9959b4f5d1362ff58d0f63e41b64e1e429d4876dcf.jpg",
|
| 733 |
+
"image_caption": [
|
| 734 |
+
"Figure 6: Schematic of our dual-system approach to $\\mathrm { g S C A N }$ . We train a neural sequence model to predict both a distribution over action sequences, and a distribution over target locations. At test time, we decode candidate action sequences from the model, execute them on the gridworld, and only accept a sequence that brings the agent to the predicted target location (shown in green). "
|
| 735 |
+
],
|
| 736 |
+
"image_footnote": [],
|
| 737 |
+
"bbox": [
|
| 738 |
+
516,
|
| 739 |
+
65,
|
| 740 |
+
838,
|
| 741 |
+
193
|
| 742 |
+
],
|
| 743 |
+
"page_idx": 7
|
| 744 |
+
},
|
| 745 |
+
{
|
| 746 |
+
"type": "text",
|
| 747 |
+
"text": "System 2, no longer contain logical errors within a budget of 10 samples $9 3 . 5 \\%$ of stories and $9 6 . 3 \\%$ of lines were error-free, respectively). ",
|
| 748 |
+
"bbox": [
|
| 749 |
+
171,
|
| 750 |
+
318,
|
| 751 |
+
823,
|
| 752 |
+
347
|
| 753 |
+
],
|
| 754 |
+
"page_idx": 7
|
| 755 |
+
},
|
| 756 |
+
{
|
| 757 |
+
"type": "text",
|
| 758 |
+
"text": "Results. The human evaluation indicates that System 2 is indeed correcting genuine errors in the stories. As summarized in Figure 5, participants strongly preferred the dual-system neural generation $^ +$ world model continuations in comparison to the neural only single-system continuations (proportion preferring dual-system $= 0 . 8 4$ ; bootstrapped $9 5 \\%$ confidence interval [0.77, 0.89] and 0.79 [0.77, 0.89] for the “from dataset” and “from model” prompt conditions, respectively). The dual-system approach, however, did not improve generation quality when the System 2 was based on an off-the-shelf neural NLI model (Proportion preferring dual-system $= 0 . 5 1$ ; [0.40, 0.64] for “from dataset”; 0.58 [0.48, 0.68] for “from model”). Thus, when using a minimal world model, the dual-system approach dramatically improves logical consistency without any need for additional training or fine-tuning. People clearly prefer neuro-symbolic generations from the dual-system model over purely neural generations from a single-system model.4 ",
|
| 759 |
+
"bbox": [
|
| 760 |
+
173,
|
| 761 |
+
352,
|
| 762 |
+
826,
|
| 763 |
+
503
|
| 764 |
+
],
|
| 765 |
+
"page_idx": 7
|
| 766 |
+
},
|
| 767 |
+
{
|
| 768 |
+
"type": "text",
|
| 769 |
+
"text": "5 Grounded Instruction Following ",
|
| 770 |
+
"text_level": 1,
|
| 771 |
+
"bbox": [
|
| 772 |
+
174,
|
| 773 |
+
525,
|
| 774 |
+
477,
|
| 775 |
+
542
|
| 776 |
+
],
|
| 777 |
+
"page_idx": 7
|
| 778 |
+
},
|
| 779 |
+
{
|
| 780 |
+
"type": "text",
|
| 781 |
+
"text": "The dual-system approach offers a general-purpose means of improving upon generative, neural sequence models by incorporating logical constraints. To highlight its generality, we examine how the dual-system perspective can be deployed in a very different domain: grounded instruction following. In Heinze-Deml & Bouchacourt (2020), a learned target location predictor was used to increase the accuracy of a neural action sequence generation model. Here, we show how to increase performance further by enforcing consistency between the target location predictor and the action sequence generator in our dual-system framework. ",
|
| 782 |
+
"bbox": [
|
| 783 |
+
174,
|
| 784 |
+
558,
|
| 785 |
+
825,
|
| 786 |
+
654
|
| 787 |
+
],
|
| 788 |
+
"page_idx": 7
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"type": "text",
|
| 792 |
+
"text": "We use the gSCAN benchmark (Ruis et al., 2020), a recently proposed grounded instruction following dataset designed to measure compositional generalization in neural systems. Given an initial gridworld state and an instruction, e.g., “walk to the big square,” an agent must predict the sequence of low-level actions which achieve the goal, e.g., “TURN LEFT, WALK, TURN LEFT, WALK” (See Figure 6). The dataset contains several test splits, each testing different aspects of compositional generalization. ",
|
| 793 |
+
"bbox": [
|
| 794 |
+
174,
|
| 795 |
+
660,
|
| 796 |
+
825,
|
| 797 |
+
731
|
| 798 |
+
],
|
| 799 |
+
"page_idx": 7
|
| 800 |
+
},
|
| 801 |
+
{
|
| 802 |
+
"type": "text",
|
| 803 |
+
"text": "Our model builds on Heinze-Deml & Bouchacourt (2020) by using an LSTM to predict the correct action sequence and target location. Given a command $c$ and an initial gridworld state $s$ , the neural network defines two distributions: a distribution over action sequences $q _ { a } ( a | c , s )$ and a distribution over target grid locations $q _ { l o c } ( l | c , s )$ . Heinze-Deml & Bouchacourt (2020) showed that when these distributions share parameters, using location prediction as an auxiliary loss improves the accuracy of the action sequence prediction model. We can further exploit these two models by noticing that when a predicted action sequence is not consistent with a predicted target location, then either the action sequence or the target location must be incorrect. Since the target location is much simpler to predict, and thus much more likely to be correctly predicted, if a predicted action sequence is not consistent with the predicted target location, then the action sequence is most likely incorrect. Our dual-system framework can use this property to increase action sequence prediction accuracy. Consider the initial state and command in Figure 6. Our model predicts candidate action sequences, and also predicts that the most likely target location is the grid containing the bigger yellow square (highlighted in red). The model then executes the candidate action sequences, and only accepts a sequence which results in the agent standing in the target location. ",
|
| 804 |
+
"bbox": [
|
| 805 |
+
173,
|
| 806 |
+
736,
|
| 807 |
+
825,
|
| 808 |
+
848
|
| 809 |
+
],
|
| 810 |
+
"page_idx": 7
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"type": "text",
|
| 814 |
+
"text": "",
|
| 815 |
+
"bbox": [
|
| 816 |
+
174,
|
| 817 |
+
92,
|
| 818 |
+
825,
|
| 819 |
+
188
|
| 820 |
+
],
|
| 821 |
+
"page_idx": 8
|
| 822 |
+
},
|
| 823 |
+
{
|
| 824 |
+
"type": "text",
|
| 825 |
+
"text": "In the language of our dual-system approach, we treat the distribution over actions $q _ { a } ( a | c , s )$ as our System 1 proposal model. The distribution over target locations $q _ { l o c } ( l | c , s )$ serves as a fact extractor model, which extract a location constraint $l$ . As a minimal world model, we use a deterministic gridworld execution model $T ( a , s _ { 0 } ) \\to s _ { f }$ , which takes a state and action and predicts the resulting state. At test time, we first extract the predicted location as $l = \\arg \\operatorname* { m a x } _ { l ^ { \\prime } } q _ { l o c } ( l ^ { \\prime } | c )$ We then search through the possible action sequences from $q _ { a } ( \\cdot | c )$ , conditioned on agreement with $l$ . In our experiments, we use a sample-based search with a maximum budget of 50 samples. We trained models on random subsets of the gSCAN training set of varying sizes: 5000 datapoints, 8000 datapoints, and 20000 datapoints $2 . 5 \\%$ , $4 \\%$ and $10 \\%$ of the original training set, respectively). ",
|
| 826 |
+
"bbox": [
|
| 827 |
+
173,
|
| 828 |
+
194,
|
| 829 |
+
825,
|
| 830 |
+
319
|
| 831 |
+
],
|
| 832 |
+
"page_idx": 8
|
| 833 |
+
},
|
| 834 |
+
{
|
| 835 |
+
"type": "text",
|
| 836 |
+
"text": "Results. The results show that the System 2 execution model improves performance without the need for any additional training (see Table 2 for results training on 5000 examples). In contrast to the single-system model, the dual-system model allows for sampling many candidate action sequences from the neural network, accepting only consistent sequences. This guess-and-check approach greatly increases the evaluation accuracy, improving upon prior work on gSCAN, particularly in low-data regimes. ",
|
| 837 |
+
"bbox": [
|
| 838 |
+
174,
|
| 839 |
+
325,
|
| 840 |
+
825,
|
| 841 |
+
409
|
| 842 |
+
],
|
| 843 |
+
"page_idx": 8
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"type": "text",
|
| 847 |
+
"text": "6 Limitations ",
|
| 848 |
+
"text_level": 1,
|
| 849 |
+
"bbox": [
|
| 850 |
+
174,
|
| 851 |
+
446,
|
| 852 |
+
302,
|
| 853 |
+
464
|
| 854 |
+
],
|
| 855 |
+
"page_idx": 8
|
| 856 |
+
},
|
| 857 |
+
{
|
| 858 |
+
"type": "text",
|
| 859 |
+
"text": "In its current form, our approach is most useful in domains where naturalistic, learned generation is necessary and where a small number of mission-critical logical constraints can be explicitly articulated. Our system will be less useful when constraints are more difficult to articulate (e.g., creative domains such as writing poetry) or when there are many constraints, since the minimal world model must be hand-engineered. Enforcing strict constraints may also pose risks: if the constraints are not only logical but cultural, they may be harmful if misapplied. However, these constraints must be articulated explicitly in a symbolic model, and are thus easier to identify and correct. ",
|
| 860 |
+
"bbox": [
|
| 861 |
+
174,
|
| 862 |
+
489,
|
| 863 |
+
825,
|
| 864 |
+
588
|
| 865 |
+
],
|
| 866 |
+
"page_idx": 8
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"type": "text",
|
| 870 |
+
"text": "The current few-shot parsing technique may also suffer from a limited capacity. For more complex domains, the number of examples required to specify the desired parsing behavior may be too large (i.e., they may not fit in the input window) or too complex for a model to perform parsing accurately. While some tasks may not be suitable, the complexity of the world model need not necessarily increase hand-in-hand with the complexity of the application domain. A dual-system model will be most successful when tracking just a few critical variables (e.g., tracking consistency in family relations, as in our experiments, or tracking scheduling constraints when discussing a team plan). ",
|
| 871 |
+
"bbox": [
|
| 872 |
+
174,
|
| 873 |
+
593,
|
| 874 |
+
825,
|
| 875 |
+
690
|
| 876 |
+
],
|
| 877 |
+
"page_idx": 8
|
| 878 |
+
},
|
| 879 |
+
{
|
| 880 |
+
"type": "text",
|
| 881 |
+
"text": "A promising direction for future work is to incorporate learning into the System 2 world model. Currently, the minimal world knowledge that exists in System 2 can be easily modified, but changes must be made by hand. Improvements would come from automatically learning and updating this structured knowledge, possibly by incorporating neuro-symbolic learning techniques (Ellis et al., 2020; Mao et al., 2019), or other neuro-symbolic integration work such as Tsamoura et al. (2021); Michael & Valiant (2008). ",
|
| 882 |
+
"bbox": [
|
| 883 |
+
174,
|
| 884 |
+
696,
|
| 885 |
+
825,
|
| 886 |
+
780
|
| 887 |
+
],
|
| 888 |
+
"page_idx": 8
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"type": "text",
|
| 892 |
+
"text": "Learning could improve our dual-system approach in other ways, e.g., by training a neural module to mimic the actions of a symbolic System 2. The symbolic System 2 judgments could be used as a source of supervision; candidate utterances rejected by the symbolic System 2 model could be used as examples of contradictory sentences, and accepted utterances could be used as examples of noncontradictory statements. This oversight could help train a neural System 2 contradiction-detection model capable of more subtleties than its symbolic counterpart, especially in domains where labeled examples are otherwise unavailable. This approach may also help us understand aspects of human learning, where certain tasks that require slower, logical reasoning can be habitualized over time and tackled by faster, more intuitive reasoning. ",
|
| 893 |
+
"bbox": [
|
| 894 |
+
174,
|
| 895 |
+
786,
|
| 896 |
+
825,
|
| 897 |
+
911
|
| 898 |
+
],
|
| 899 |
+
"page_idx": 8
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"type": "text",
|
| 903 |
+
"text": "Recent work (Li et al., 2021) has shown that large pre-trained neural models learn to approximately represent certain types of structured semantic information. However, it is not yet clear how representational fidelity translates to logical coherence during generative tasks. Our current approach allows us to explicitly fix logical errors in generation, which may ultimately be caused by representational errors. Understanding how we might leverage our approach to improve the representation of structured knowledge within neural models is a promising direction for future work, which could lead to increased generation consistency and coherence. ",
|
| 904 |
+
"bbox": [
|
| 905 |
+
174,
|
| 906 |
+
92,
|
| 907 |
+
825,
|
| 908 |
+
188
|
| 909 |
+
],
|
| 910 |
+
"page_idx": 9
|
| 911 |
+
},
|
| 912 |
+
{
|
| 913 |
+
"type": "text",
|
| 914 |
+
"text": "7 Conclusion ",
|
| 915 |
+
"text_level": 1,
|
| 916 |
+
"bbox": [
|
| 917 |
+
174,
|
| 918 |
+
208,
|
| 919 |
+
299,
|
| 920 |
+
224
|
| 921 |
+
],
|
| 922 |
+
"page_idx": 9
|
| 923 |
+
},
|
| 924 |
+
{
|
| 925 |
+
"type": "text",
|
| 926 |
+
"text": "Inspired by dual process theories from cognitive science, we combine the respective strengths of neural and symbolic approaches to build more robust models that can more effectively incorporate domain knowledge. For language generation, we showed that equipping neural generation with a minimal symbolic world model increased language coherence and consistency. For grounded instruction following, we showed that requiring test-time consistency between predicted action sequences and goal locations led to improved performance, especially in low-data regimes. Our neuro-symbolic approach can readily be applied to other domains and types of prior knowledge, as a lightweight way of improving the coherence and consistency of powerful neural sequence models. ",
|
| 927 |
+
"bbox": [
|
| 928 |
+
174,
|
| 929 |
+
239,
|
| 930 |
+
825,
|
| 931 |
+
351
|
| 932 |
+
],
|
| 933 |
+
"page_idx": 9
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"type": "text",
|
| 937 |
+
"text": "This paper just scratches the surface of how structured knowledge can make neural systems more robust; we hope to inspire further work into neuro-symbolic systems which possess the robustness and commonsense necessary for human-level intelligence. ",
|
| 938 |
+
"bbox": [
|
| 939 |
+
176,
|
| 940 |
+
356,
|
| 941 |
+
825,
|
| 942 |
+
398
|
| 943 |
+
],
|
| 944 |
+
"page_idx": 9
|
| 945 |
+
},
|
| 946 |
+
{
|
| 947 |
+
"type": "text",
|
| 948 |
+
"text": "Acknowledgments ",
|
| 949 |
+
"text_level": 1,
|
| 950 |
+
"bbox": [
|
| 951 |
+
176,
|
| 952 |
+
414,
|
| 953 |
+
303,
|
| 954 |
+
428
|
| 955 |
+
],
|
| 956 |
+
"page_idx": 9
|
| 957 |
+
},
|
| 958 |
+
{
|
| 959 |
+
"type": "text",
|
| 960 |
+
"text": "We thank Laura Ruis, Jacob Andreas, Yewen (Evan) Pu, Joe O’Connor and Guy Davidson for helpful comments on an earlier version of this manuscript. MN is supported by a NSF Graduate Research Fellowship. ",
|
| 961 |
+
"bbox": [
|
| 962 |
+
174,
|
| 963 |
+
438,
|
| 964 |
+
825,
|
| 965 |
+
479
|
| 966 |
+
],
|
| 967 |
+
"page_idx": 9
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"type": "text",
|
| 971 |
+
"text": "References ",
|
| 972 |
+
"text_level": 1,
|
| 973 |
+
"bbox": [
|
| 974 |
+
174,
|
| 975 |
+
500,
|
| 976 |
+
266,
|
| 977 |
+
515
|
| 978 |
+
],
|
| 979 |
+
"page_idx": 9
|
| 980 |
+
},
|
| 981 |
+
{
|
| 982 |
+
"type": "text",
|
| 983 |
+
"text": "Andreas, J., Bufe, J., Burkett, D., Chen, C., Clausman, J., Crawford, J., Crim, K., DeLoach, J., Dorner, L., Eisner, J., et al. Task-oriented dialogue as dataflow synthesis. Transactions of the Association for Computational Linguistics, 8:556–571, 2020. \nBrown, T. B., Mann, B., Ryder, N., Subbiah, M., Kaplan, J., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. \nDe Moura, L. and Bjørner, N. Z3: An efficient smt solver. In Tools and Algorithms for the Construction and Analysis of Systems, pp. 337–340. Springer, 2008. \nDeng, Y., Bakhtin, A., Ott, M., Szlam, A., and Marc’Aurelio Ranzato. Residual energy-based models of text generation. In International Conference on Learning Representations (ICLR), pp. 1–18, 2020. \nDevlin, J., Uesato, J., Bhupatiraju, S., Singh, R., Mohamed, A.-r., and Kohli, P. Robustfill: Neural program learning under noisy i/o. ICML, 2017. \nEllis, K., Wong, C., Nye, M., Sable-Meyer, M., Cary, L., Morales, L., Hewitt, L., Solar-Lezama, A., and Tenenbaum, J. B. Dreamcoder: Growing generalizable, interpretable knowledge with wake-sleep bayesian program learning. arXiv preprint arXiv:2006.08381, 2020. \nEvans, J. S. B. In two minds: dual-process accounts of reasoning. Trends in cognitive sciences, 7(10): 454–459, 2003. \nFrederick, S. Cognitive reflection and decision making. Journal of Economic perspectives, 19(4): 25–42, 2005. \nGarcez, A. d. and Lamb, L. C. Neurosymbolic ai: The 3rd wave. arXiv preprint arXiv:2012.05876, 2020. \nGoyal, A. and Bengio, Y. Inductive biases for deep learning of higher-level cognition. arXiv preprint arXiv:2011.15091, 2020. \nGoyal, A., Didolkar, A., Ke, N. R., Blundell, C., Beaudoin, P., Heess, N., Mozer, M., and Bengio, Y. Neural production systems. CoRR, abs/2103.01937, 2021. URL https://arxiv.org/abs/ 2103.01937. \nHeinze-Deml, C. and Bouchacourt, D. Think before you act: A simple baseline for compositional generalization. arXiv preprint arXiv:2009.13962, 2020. \nHerzig, J. and Berant, J. Span-based semantic parsing for compositional generalization. arXiv preprint arXiv:2009.06040, 2020. \nHoltzman, A., Buys, J., Forbes, M., Bosselut, A., Golub, D., and Choi, Y. Learning to write with cooperative discriminators. arXiv preprint arXiv:1805.06087, 2018. \nHua, X. and Wang, L. Pair: Planning and iterative refinement in pre-trained transformers for long text generation. In EMNLP, 2020. \nKahneman, D. Thinking, fast and slow. kindle ed, 2013. \nKurita, S. and Cho, K. Generative language-grounded policy in vision-and-language navigation with bayes’ rule. arXiv preprint arXiv:2009.07783, 2020. \nLake, B. M. and Murphy, G. L. Word meaning in minds and machines. arXiv preprint arXiv:2008.01766, 2020. \nLake, B. M., Ullman, T. D., Tenenbaum, J. B., and Gershman, S. J. Building machines that learn and think like people. Behavioral and Brain Sciences, 40:E253, 2017. \nLewis, M., Liu, Y., Goyal, N., Ghazvininejad, M., Mohamed, A., Levy, O., Stoyanov, V., and Zettlemoyer, L. Bart: Denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. arXiv preprint arXiv:1910.13461, 2019. \nLi, B. Z., Nye, M., and Andreas, J. Implicit representations of meaning in neural language models. arXiv preprint arXiv:2106.00737, 2021. \nLiang, C., Berant, J., Le, Q. V., Forbus, K., and Lao, N. Neural symbolic machines: Learning semantic parsers on freebase with weak supervision. In Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 23–33, Vancouver, Canada, 2017. URL http://aclanthology.coli.uni-saarland.de/pdf/P/P17/P17-1003.pdf. \nLiang, P. Learning executable semantic parsers for natural language understanding. Communications of the ACM, 59(9):68–76, 2016. \nLiu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019. \nLoshchilov, I. and Hutter, F. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101, 2017. \nLu, X., West, P., Zellers, R., Bras, R. L., Bhagavatula, C., and Choi, Y. Neurologic decoding:(un) supervised neural text generation with predicate logic constraints. arXiv preprint arXiv:2010.12884, 2020. \nMao, J., Gan, C., Kohli, P., Tenenbaum, J. B., and Wu, J. The neuro-symbolic concept learner: Interpreting scenes, words, and sentences from natural supervision. arXiv preprint arXiv:1904.12584, 2019. \nMartin, L. J., Ammanabrolu, P., Hancock, W., Singh, S., Harrison, B., and Riedl, M. O. Event representations for automated story generation with deep neural nets. In AAAI, 2018. \nMarzoev, A., Madden, S., Kaashoek, M. F., Cafarella, M., and Andreas, J. Unnatural language processing: Bridging the gap between synthetic and natural language data. arXiv preprint arXiv:2004.13645, 2020. \nMiao, N., Zhou, H., Mou, L., Yan, R., and Li, L. Cgmh: Constrained sentence generation by metropolis-hastings sampling. In AAAI, 2019. \nMichael, L. and Valiant, L. G. A first experimental demonstration of massive knowledge infusion. 2008. \nMou, L., Lu, Z., Li, H., and Jin, Z. Coupling distributed and symbolic execution for natural language queries. In Precup, D. and Teh, Y. W. (eds.), Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pp. 2518–2526. PMLR, 06–11 Aug 2017. URL http://proceedings.mlr.press/v70/mou17a.html. \nMuhlgay, D., Herzig, J., and Berant, J. Value-based search in execution space for mapping instructions to programs. pp. 1942–1954, 01 2019. doi: 10.18653/v1/N19-1193. \nNie, Y., Williamson, M., Bansal, M., Kiela, D., and Weston, J. I like fish, especially dolphins: Addressing contradictions in dialogue modelling. arXiv preprint arXiv:2012.13391, 2020. \nNye, M. I., Solar-Lezama, A., Tenenbaum, J. B., and Lake, B. M. Learning compositional rules via neural program synthesis. arXiv preprint arXiv:2003.05562, 2020. \nPieraccini, R., Tzoukermann, E., Gorelov, Z., Gauvain, J.-L., Levin, E., Lee, C.-H., and Wilpon, J. A speech understanding system based on statistical representation of semantics. In [Proceedings] ICASSP-92: 1992 IEEE International Conference on Acoustics, Speech, and Signal Processing, volume 1, pp. 193–196 vol.1, 1992. doi: 10.1109/ICASSP.1992.225939. \nRadford, A., Wu, J., Child, R., Luan, D., Amodei, D., and Sutskever, I. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019. \nRamesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., and Sutskever, I. Zero-shot text-to-image generation. arXiv preprint arXiv:2102.12092, 2021. \nRuis, L., Andreas, J., Baroni, M., Bouchacourt, D., and Lake, B. M. A benchmark for systematic generalization in grounded language understanding. arXiv preprint arXiv:2003.05161, 2020. \nSchlag, I. and Schmidhuber, J. Learning to reason with third-order tensor products. CoRR, abs/1811.12143, 2018. URL http://arxiv.org/abs/1811.12143. \nSerafini, L. and d’Avila Garcez, A. S. Logic tensor networks: Deep learning and logical reasoning from data and knowledge. CoRR, abs/1606.04422, 2016. URL http://arxiv.org/abs/1606. 04422. \nShen, S., Fried, D., Andreas, J., and Klein, D. Pragmatically informative text generation. arXiv preprint arXiv:1904.01301, 2019. \nShin, R., Lin, C. H., Thomson, S., Chen, C., Roy, S., Platanios, E. A., Pauls, A., Klein, D., Eisner, J., and Van Durme, B. Constrained language models yield few-shot semantic parsers. arXiv preprint arXiv:2104.08768, 2021. \nSinha, K., Sodhani, S., Dong, J., Pineau, J., and Hamilton, W. L. Clutrr: A diagnostic benchmark for inductive reasoning from text. arXiv preprint arXiv:1908.06177, 2019. \nSmith, E. M., Gonzalez-Rico, D., Dinan, E., and Boureau, Y.-L. Controlling style in generated dialogue. arXiv preprint arXiv:2009.10855, 2020. \nSpelke, E. S. and Kinzler, K. D. Core knowledge. Developmental Science, 10(1):89–96, 2007. \nSu, Y. and Yan, X. Cross-domain semantic parsing via paraphrasing. arXiv preprint arXiv:1704.05974, 2017. \nTsamoura, E., Hospedales, T., and Michael, L. Neural-symbolic integration: A compositional perspective. Proceedings of the AAAI Conference on Artificial Intelligence, 35(6):5051–5060, May 2021. URL https://ojs.aaai.org/index.php/AAAI/article/view/16639. \nWelleck, S., Weston, J., Szlam, A., and Cho, K. Dialogue natural language inference. arXiv preprint arXiv:1811.00671, 2018. \nWeston, J., Bordes, A., Chopra, S., Rush, A. M., van Merriënboer, B., Joulin, A., and Mikolov, T. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015. \nXu, J., Ren, X., Zhang, Y., Zeng, Q., Cai, X., and Sun, X. A skeleton-based model for promoting coherence among sentences in narrative story generation. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pp. 4306–4315, Brussels, Belgium, OctoberNovember 2018. Association for Computational Linguistics. doi: 10.18653/v1/D18-1462. URL https://www.aclweb.org/anthology/D18-1462. \nXu, J., Ju, D., Li, M., Boureau, Y.-L., Weston, J., and Dinan, E. Recipes for safety in open-domain chatbots. arXiv preprint arXiv:2010.07079, 2020a. \nXu, S., Semnani, S. J., Campagna, G., and Lam, M. S. Autoqa: From databases to qa semantic parsers with only synthetic training data. arXiv preprint arXiv:2010.04806, 2020b. ",
|
| 984 |
+
"bbox": [
|
| 985 |
+
171,
|
| 986 |
+
523,
|
| 987 |
+
828,
|
| 988 |
+
912
|
| 989 |
+
],
|
| 990 |
+
"page_idx": 9
|
| 991 |
+
},
|
| 992 |
+
{
|
| 993 |
+
"type": "text",
|
| 994 |
+
"text": "",
|
| 995 |
+
"bbox": [
|
| 996 |
+
169,
|
| 997 |
+
41,
|
| 998 |
+
828,
|
| 999 |
+
912
|
| 1000 |
+
],
|
| 1001 |
+
"page_idx": 10
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"type": "text",
|
| 1005 |
+
"text": "",
|
| 1006 |
+
"bbox": [
|
| 1007 |
+
169,
|
| 1008 |
+
32,
|
| 1009 |
+
828,
|
| 1010 |
+
917
|
| 1011 |
+
],
|
| 1012 |
+
"page_idx": 11
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"type": "text",
|
| 1016 |
+
"text": "",
|
| 1017 |
+
"bbox": [
|
| 1018 |
+
171,
|
| 1019 |
+
90,
|
| 1020 |
+
828,
|
| 1021 |
+
377
|
| 1022 |
+
],
|
| 1023 |
+
"page_idx": 12
|
| 1024 |
+
}
|
| 1025 |
+
]
|
parse/train/P7GUAXxS3ym/P7GUAXxS3ym_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/P7GUAXxS3ym/P7GUAXxS3ym_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJgw51HFDr/SJgw51HFDr.md
ADDED
|
@@ -0,0 +1,455 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPARSE WEIGHT ACTIVATION TRAINING
|
| 2 |
+
|
| 3 |
+
Anonymous authors Paper under double-blind review
|
| 4 |
+
|
| 5 |
+
# ABSTRACT
|
| 6 |
+
|
| 7 |
+
Training convolutional neural networks (CNNs) is time consuming. Prior work has explored how to reduce the computational demands of training by eliminating gradients with relatively small magnitude. We show that eliminating small magnitude components has limited impact on the direction of high-dimensional vectors. However, in the context of training a CNN, we find that eliminating small magnitude components of weight and activation vectors allows us to train deeper networks on more complex datasets versus eliminating small magnitude components of gradients. We propose Sparse Weight Activation Training (SWAT), an algorithm that embodies these observations. SWAT reduces computations by $50 \%$ to $80 \%$ with better accuracy at a given level of sparsity versus the Dynamic Sparse Graph algorithm. SWAT also reduces memory footprint by $23 \%$ to $37 \%$ for activations and $50 \%$ to $80 \%$ for weights.
|
| 8 |
+
|
| 9 |
+
# 1 INTRODUCTION
|
| 10 |
+
|
| 11 |
+
The usage of convolutional neural networks (CNNs) has dominated a wide variety of complex computer vision tasks, such as object recognition (Krizhevsky et al., 2012; Szegedy et al., 2015), object detection (Szegedy et al., 2013; Ren et al., 2015), and image restoration (Dong et al., 2014; Zhang et al., 2017). However, CNNs are compute and memory intensive; even a moderately sized CNN model, like ResNet-50 with tens of millions of parameters, requires billions of floating-point operations and consumes tens of gigabytes to store weights and activations during training.
|
| 12 |
+
|
| 13 |
+
Previous works propose techniques for reducing computations and memory consumption during CNN training. Such techniques include quantization where every operation is quantized in lowprecision during training such a (Zhou et al., 2016; Choi et al., 2018; Wu et al., 2016; Wang et al., 2018), or, use fixed-point integers instead of floating-point numbers (Wu et al., 2018; Das et al., 2018).
|
| 14 |
+
|
| 15 |
+
An orthogonal approach to reduce computations is sparsification, a process in which we eliminate computations involving small values. meProp (Sun et al., 2017; Wei et al., 2017) sparsifies backpropagating by selecting a subset of output gradients in each layer. Using only the top $5 \%$ of the gradients (ranked by magnitude), meProp can train a CNN and MLP on MNIST dataset without accuracy loss. The computational flow of meProp is shown in Figure 1a and 1b. meProp does not modify the forward pass. In the backward pass meProp performs a “Top-K” operation on the output activation gradients which sets components not ranked in the Top-K by magnitude to zero. It then uses the sparsified output activation gradients to (potentially more efficiently) compute the input activation and weight gradients. Our experiments suggest meProp fails to converge on larger networks and datasets.
|
| 16 |
+
|
| 17 |
+
Recently, Liu et al. (2019) proposed a method of reducing computation during training and inference by constructing a dynamic sparse graph (DSG) using random projection for dimensionality reduction. DSG loses accuracy on ImageNet dataset.
|
| 18 |
+
|
| 19 |
+
In this work, we propose an alternative technique, Sparse Weight Activation Training (SWAT), that can train deep CNNs on complex data sets like ImageNet. Compared to DSG, SWAT is a straightforward technique which uses less expensive Top-K operation, inspired by meProp, while achieving better accuracy than DSG on ImageNet.
|
| 20 |
+
|
| 21 |
+
This paper provides the following contributions:
|
| 22 |
+
|
| 23 |
+
• It shows that dropping gradients during back-propagation is harmful to network convergence especially when training a deeper model on a complex dataset. In this case the model suffers high accuracy loss.
|
| 24 |
+
• It proposes SWAT, a sparse training algorithm that can train a broad range of deep CNNs with minimal accuracy loss on complex datasets like CIFAR10, CIFAR100, and ImageNet. SWAT reduces the total number of operations during training by $50 \% - 8 0 \%$ . It also achieves $23 \% - 3 7 \%$ activation and $50 \% - 8 0 \%$ weight footprint reduction during the backward pass. SWAT algorithm uses sparse weight both in the forward and backward passes, and therefore model learns sparse weights, i.e., a pruned architecture; If the model has been trained using SWAT with $S \%$ sparsity during training, then during inference, weight can be pruned to $S \%$ without sacrificing any loss in accuracy.
|
| 25 |
+
• We perform empirical studies to provide insight into why ‘SWAT performs well; we showed that Top-K sparsification in general preserves direction in high-dimensional space.
|
| 26 |
+
|
| 27 |
+
# 2 SPARSITY INDUCED TRAINING
|
| 28 |
+
|
| 29 |
+
# 2.1 PRELIMINARIES
|
| 30 |
+
|
| 31 |
+
Let us consider a deep CNN with $\mathrm { L }$ convolutional layers trained using mini-batch stochastic gradient descent, where the $l ^ { t h }$ layer maps the input activation $\left( a _ { l - 1 } \right)$ using function $f _ { l }$ from $\large \mathbf { \large { R } } ^ { N \times C _ { l - 1 } \times H _ { l - 1 } \times W _ { l - 1 } } R ^ { N \times C _ { l } \times \large { H _ { l } \times W _ { l } } }$ . $f _ { l }$ computes $C _ { l }$ channel of output feature maps, each of dimension $R ^ { H _ { l } \times W _ { l } }$ , using $C _ { l - 1 }$ channels of input feature maps of dimension $R ^ { H _ { l - 1 } \times \hat { W } _ { l - 1 } }$ fo r each of the $N$ samples in the mini-batch. The ${ { l } ^ { t h } }$ layer has weights $w _ { l } \in R ^ { C _ { l } \times C _ { l - 1 } \times H _ { f } \times W _ { f } }$ . The forward pass of the $l ^ { t h }$ layer can be defined as:
|
| 32 |
+
|
| 33 |
+
$$
|
| 34 |
+
a _ { l } = f _ { l } ( a _ { l - 1 } , w _ { l } )
|
| 35 |
+
$$
|
| 36 |
+
|
| 37 |
+
During back-propagation the ${ { l } ^ { t h } }$ layer receives the gradient of the loss $L$ w.r.t its output activation $( \bigtriangledown a _ { l } )$ . This is used to compute the gradient of the loss w.r.t its input activation $( \bigtriangledown a _ { l - 1 } )$ and weight $( \bigtriangledown _ { w _ { l } } )$ . Thus, the backward pass for the $l ^ { t h }$ layer can be defined as:
|
| 38 |
+
|
| 39 |
+
$$
|
| 40 |
+
\begin{array} { r } { \nabla _ { a _ { l - 1 } } = F _ { l } ( \nabla _ { a _ { l } } , w _ { l } ) } \\ { \nabla _ { w _ { l } } = F _ { l } ( \nabla _ { a _ { l } } , a _ { l - 1 } ) } \end{array}
|
| 41 |
+
$$
|
| 42 |
+
|
| 43 |
+

|
| 44 |
+
Figure 1: meProp versus SWAT (a) Shows the forward and backward pass of MeProp and SWAT for a fully connected layer. (b) Computational flow of meProp for any layer $l$ (c) Computational flow of SWAT for any layer $l$ .
|
| 45 |
+
|
| 46 |
+
# 2.2 SPARSE WEIGHT ACTIVATION TRAINING
|
| 47 |
+
|
| 48 |
+
Our goal is to reduce the computations required during the training process. SWAT does this by effectively transforming small magnitude components of vectors into zero values. Since multiplication of any number by zero results in zero the multiplication is not necessary. Such a sparsification process can be applied in a number of ways in the context of the backpropagation algorithm. Ideally, the modified training algorithm will retain both model accuracy and rate of convergence.
|
| 49 |
+
|
| 50 |
+
We explore the sensitivity to applying this sparsification process at different points. We look at the sensitivity of the model convergence to sparse input i.e. weight $( w _ { l } )$ and input activation $( a _ { l } )$ for forward pass and weights $( w _ { l } )$ , input activation $( a _ { l } )$ and output activation gradient $( \bigtriangledown a _ { l } )$ for the backward pass as shown in Equation 1 , 2 and 3.
|
| 51 |
+
|
| 52 |
+
Figure 2a shows the result of our analysis of sparsification in the forward pass. Here we train ResNet-18 on CIFAR-100 after modifying the forward pass to use sparse inputs in Equation 1 for weights $( w _ { l } )$ and separately activations $( a _ { l } )$ while keeping the backward pass unchanged (i.e., only the forward pass computation is sparse). The results show that network convergence is more tolerant to sparse weights $( w _ { l } )$ compared to sparse activations $( a _ { l } )$ . Thus, as shown in Figure 1a and 1c, SWAT uses sparse weights in the forward pass.
|
| 53 |
+
|
| 54 |
+
Figure 2b shows the result of our analysis of sparsification in the backward pass. We modify Equation 2 and Equation 3 to sparsify either output gradient $( \bigtriangledown a _ { l } )$ , as in meProp (see Figure 1b), or sparsify activations $( a _ { l } )$ and weights $( w _ { l } )$ . The results show accuracy is extremely sensitive to sparsification of output gradients. Such sparsity consistently results in networks converging to lower accuracy compared to using sparse activations and weights. Thus, as shown in Figure 1a and 1c, SWAT uses sparse weights and activations in the backward pass. The overall SWAT training algorithm is presented in Algorithm 1.
|
| 55 |
+
|
| 56 |
+
SWAT uses sparse computation in both the forward and the backward passes, while meProp (Sun et al., 2017) uses sparse computation only in the backward pass. SWAT uses sparse weights and activations in the backward pass allowing compression of weights and activations in the forward pass1. Effectively, reducing overall memory access overhead of fetching weights in the backward pass and activation storage overhead because only Top- $K \%$ are saved. This memory benefit is not present for meProp since dense weights and activations are needed in the backward pass, whereas there is no storage benefit of sparsifying the output gradients since they are temporary values generated during back-propagation.
|
| 57 |
+
|
| 58 |
+

|
| 59 |
+
Figure 2: Convergence Analysis: (a) Sensitivity Analysis of ResNet18 for the Forward Pass on the CIFAR100 dataset. (b) Sensitivity Analysis of ResNet18 for the Backward Pass on the CIFAR100 dataset. (c) Shows the training curve of ResNet18 on ImageNet for meProp and SAW algorithm. Learning rate is reduced by $\frac { 1 } { 1 0 } ^ { \mathit { \bar { t } h } }$ at $3 0 ^ { t h }$ and $4 0 ^ { t h }$ epoch.
|
| 60 |
+
|
| 61 |
+
To compare SWAT’s approach to that of meProp, we use a variant of SWAT that only sparsifies the backward pass; we shall refer to this version of SWAT as SAW (Sparse Activation and Weight back-propagation). We compare the performance of the meProp and SAW with deep networks, and complex datasets2. Figure 2c shows SAW and meProp convergence of ResNet18 with the ImageNet dataset; it compares the performance of meProp at $30 \%$ and $50 \%$ sparsity to SAW $80 \%$ sparsity. As we can see, meProp converges to a good solution at sparsity of $30 \%$ . However, at $50 \%$ sparsity, meProp suffers from overfitting and fails to generalize (between epochs 5 to 30), and at the same time, it is unable to reach an accuracy level above $45 \%$ . These results suggest that dropping output activation gradient $( \bigtriangledown a _ { l } )$ is generally harmful during back-propagation. On the other hand, SAW succeeds to converge to an accuracy of $64 \%$ even at a much higher sparsity of $80 \%$ .
|
| 62 |
+
|
| 63 |
+
Algorithm 1: Training an $L$ layer network using SWAT or SAW Algorithm
|
| 64 |
+
|
| 65 |
+
<table><tr><td colspan="3">The data: A mini-batch of inputs & targets (ao,a*), training iteration t, previous weights wt, learning rate n. The result: Update weights wt+1.</td></tr><tr><td colspan="3">Step 1.Forward Computation; end forl=1 toL do</td></tr><tr><td>if l==‘ConvolutionLayer' or‘LinearLayer' then</td><td></td><td>Step 2.Backward Computation;</td></tr><tr><td>if algorithm ==‘SWAT' then</td><td>aL</td><td>Compute the gradient of the output layer aloss(aL,a*). daL</td></tr><tr><td>at← forward(wt,at-1);</td><td>wt↑ frOPk(wt);</td><td>for l=L to 1 do</td></tr><tr><td>at-1fTOPK(at-1);</td><td></td><td>wt,al-1 ← save_for_backwardl;</td></tr><tr><td>else</td><td></td><td>Val-1 ← backward_input(Va,wt);</td></tr><tr><td></td><td></td><td>Vw-介</td></tr><tr><td></td><td>// algorithm == `SAW';</td><td>backward_weight(Va,at-1);</td></tr><tr><td>at ↔ forward(wt,at-1)</td><td></td><td></td></tr><tr><td>wt← frOPK(wt);</td><td>end</td><td></td></tr><tr><td>a-1←fTOPk(a-1);</td><td></td><td></td></tr><tr><td>end</td><td></td><td>Step 3.Parameter Update;</td></tr><tr><td>save_for_backwardl ← wt,al-1;</td><td></td><td>for l=1 to L do</td></tr><tr><td></td><td></td><td>wt+1 ← Optimizer(wt,Vw,n);</td></tr><tr><td>else</td><td></td><td></td></tr><tr><td></td><td>end</td><td></td></tr><tr><td>al ↑ forward(wt,al-1);</td><td></td><td></td></tr><tr><td></td><td></td><td></td></tr><tr><td>save for_backwardl ← wt,al-1;</td><td></td><td></td></tr></table>
|
| 66 |
+
|
| 67 |
+
Top-K Selection: Given CNNs operate on tensors with many dimensions, there are several options for how to select which components are set to zero during sparsification. Our CNNs operate on fourth-order tensors, $T ~ \in ~ \hat { R } ^ { N \times C \times H \times W }$ . Below we evaluate three variants of the Top-K operation illustrated in the right side of Figure 3. We also compared against a null hypothesis in which randomly selected components of a tensor are set to zero.
|
| 68 |
+
|
| 69 |
+

|
| 70 |
+
Figure 3: Different ways of performing top- $\mathbf { \delta } \cdot \mathbf { k }$ operation. ‘N’ denotes the #samples in the minibatch or filters in the layer, ‘C’ denotes the #channels in the layer. $\mathbf { \hat { H } } ^ { \prime }$ and ‘W’ denote the height and width of the filter/activation map in the layer. Color represent the selected activations/weights by the Top-K operation.
|
| 71 |
+
|
| 72 |
+
The first variant, labeled TOPK-NCHW in Figure 3, selects activations and weights to set to zero by considering the entire mini-batch. This variant performs Top-K operation over the entire tensor, $\bar { f } _ { T O P K } ^ { \{ N , C , H , W \} } ( \bar { T } )$ , where the superscript represents the dimension along which the Top-K operation is performed. The second variant (TOPK-CHW) performs Top-K operation over the dimensions $C , H$ and W i.e., f {C,H,W }T OP K (T ) , i.e., selects K % of input activations from every mini-batch sample and $K \%$ of weights from every filter in the layer. The third variant (TOPK-HW) is the strictest form of
|
| 73 |
+
|
| 74 |
+
Top-K operation. It select $K \%$ of activations or weights from all channels, and thereby performing the Top-K operation over the dimension $H$ and $W$ , i.e., $f _ { T O P K } ^ { \{ H , W \} } ( T _ { H , W } )$ .
|
| 75 |
+
|
| 76 |
+
The left side of Figure 3 shows the accuracy achieved on ResNet-18 for CIFAR100 when using SAW configured with each of these Top-K variants along with a variant where a random subset of components is set to zero. The results show, first, that randomly selecting works only for low sparsity. At high sparsity all variants of Top- $\mathbf { \nabla } \cdot \mathbf { K }$ outperform random selection by a considerable margin. Second, they show that the more constrainted the Top-K operation the less accuracy achieved. Constraining Top-K results in selecting some activations or weights which are quite small. Similarly, some essential activations and weights are discarded just to satisfy the constraint.
|
| 77 |
+
|
| 78 |
+
# 3 RESULTS
|
| 79 |
+
|
| 80 |
+
In this section, we present our experimental results of SWAT algorithm on different architectures and datasets and we quantify the theoretical reduction in compute and memory bandwidth achievable using SWAT.
|
| 81 |
+
|
| 82 |
+
# 3.1 EXPERIMENTAL SETUP
|
| 83 |
+
|
| 84 |
+
We implement SWAT and SAW algorithms in PyTorch Framework (Paszke et al., 2017); models are trained on three different datasets: CIFAR10, CIFAR100 (Krizhevsky et al., 2009) and ImageNet ILSVRC2012 (Deng et al., 2009) and are evaluated on four different architectures ResNet18, 34, 50, 101 (He et al., 2016), Wide Residual Networks (Zagoruyko & Komodakis, 2016), DenseNet-BC-121 (Huang et al., 2017), and VGG-16 (Simonyan & Zisserman, 2014) with batchnormalization (Ioffe & Szegedy, 2015). Batch-Normalization statistics are computed using the running average (with momentum 0.9). We use SGD with momentum as our optimization algorithm with an initial learning rate of 0.1, momentum of 0.9 and weight decay $\lambda$ of 0.0001.
|
| 85 |
+
|
| 86 |
+
For CIFAR10 and CIFAR100 dataset, ResNet, VGG, and DenseNet models are trained for 150 epochs, and learning rate are reduced by $( 1 / 1 0 ) ^ { t h }$ at the 50-th and the 100-th epoch whereas WRN is trained for 200 epochs and the learning rate is annealed by a factor of $( 1 / 5 ) ^ { t h }$ at 60-th, 120-th and 160-th epoch. ResNet, VGG, and WRN are trained using a batch-size of 128 whereas DenseNet is trained with a batch-size of 64. We run each experiment with three different seeds and use the average value for all the plots.
|
| 87 |
+
|
| 88 |
+
For training on ImageNet dataset, we use $2 2 4 \times 2 2 4$ random crops from the input images or its horizontal flip and the input image is normalized by the per-color mean and standard deviation. Networks are trained for 50 epochs with the mini batch-size of 256 samples, and the learning rate are reduced by $( 1 / 1 0 ) ^ { t h }$ after 30-th and 40-th epoch.
|
| 89 |
+
|
| 90 |
+
# 3.2 ACCURACY ANALYSIS
|
| 91 |
+
|
| 92 |
+
In this section, we provide a comprehensive analysis of SWAT and SAW algorithms and show the influence of sparsity on validation accuracy; thereby showing the potential of reducing computation during training with negligible accuracy loss. We furthermore discuss the impact on rate of convergence and the robustness of the algorithm on a wide range of models with different depths and widths. Last, we provide an alternative to Top-K for efficient software/hardware implementation.
|
| 93 |
+
|
| 94 |
+
Accuracy on CIFAR10 and CIFAR100: Figure 4 shows the accuracy of the SWAT and SAW algorithms at different sparsity budgets on CIFAR10 and CIFAR100 dataset. From the graph, we can conclude that models can be trained using SWAT and SAW algorithm up to $6 0 \%$ sparsity with almost zero accuracy loss and suffer only a slight accuracy loss at $7 0 \%$ sparsity. For CIFAR10 dataset at $7 0 \%$ sparsity, VGG-16 and DenseNet-121 have an accuracy loss of around $0 . 5 7 \%$ for SWAT $( 0 . 2 6 \%$ for SAW) and $0 . 4 \%$ for SWAT $( 0 . 2 3 \%$ for SAW) whereas ResNet-18 gains an accuracy of $0 . 0 2 \%$ for SWAT ( $0 . 1 \%$ for SAW). For CIFAR100 dataset at $7 0 \%$ sparsity, ResNet-18, VGG-16 and DenseNetBC-121 lose an accuracy of around $0 . 5 \%$ , $0 . 4 1 \%$ and $0 . 6 8 \%$ for SAW and $0 . 4 \%$ , $0 . 9 9 \%$ and $1 . 7 8 \%$ for SWAT respectively. At $8 0 \%$ sparsity the accuracy loss on CIFAR10 and 100 is less than $1 . 8 \%$ for SAW and less than $2 . 5 \%$ for SWAT.
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
Figure 4: Comprehensive analysis of sparsity vs accuracy trade-off: (a) Accuracy of SWAT and SAW algorithms on CIFAR10 dataset. (b) Accuracy of SWAT and SAW algorithms on CIFAR100 dataset. The dashed line represents the baseline accuracy for the corresponding model. Datapoints for SAW algorithm are represented as dots whereas for SWAT algorithm they are represented as stars.
|
| 98 |
+
|
| 99 |
+

|
| 100 |
+
Figure 5: Trend of SWAT algorithm on ImageNet dataset: (a) Validation curve of SWAT algorithm (b) Validation Accuracy of SWAT, SAW and DSG algorithms at different sparsity constraints. Dotted line represents the baseline back-propagation algorithm. ‘RN18’ represent ResNet18, ‘DN121’ represent DenseNet-BC-121 and ‘DSG’ denote the results reported by the Dynamic Sparse Graph(Liu et al., 2019) algorithm.
|
| 101 |
+
|
| 102 |
+
Accuracy on ImageNet: Figure 5a shows the validation curve of the SWAT algorithm on ImageNet dataset for three different architectures and Figure 5b shows the accuracy obtained by the SWAT and SAW algorithms. The result shows that the SWAT and SAW algorithms lose negligible accuracy at $5 0 \%$ sparsity for all three architectures. The solution is within an accuracy loss of $0 . 2 6 - 1 . 0 1 \dot { \% }$ compared to the baseline solution. For high sparsity of $7 0 \%$ , ResNet-18, VGG-16 and DenseNet-BC-121 lose only around $1 . 5 2 \%$ , $1 . 6 \%$ and $2 . 2 6 \%$ accuracy for the SWAT and $1 . 4 2 \%$ , $1 . 2 8 \%$ and $1 . 8 2 \%$ for the SAW algorithm respectively. Both the algorithms perform better than the DSG algorithm proposed by (Liu et al., 2019), which accelerates training by performing dimensionality reduction search and performing the forward and backward passes in low dimensional space. The accuracy loss of DSG at $5 0 \%$ sparsity is around $2 . 8 3 \%$ for ResNet-18 and $1 . 5 4 \%$ for VGG-16 compared to the SWAT accuracy loss of $0 . 2 7 \%$ and $0 . 8 6 \%$ for ResNet-18 and VGG-16 respectively.
|
| 103 |
+
|
| 104 |
+
Impact on rate of Convergence: We define the rate of convergence is the number of epochs it takes to reach the saturation accuracy. Figure 5a shows the validation curve of SWAT algorithm when training ResNet-18, VGG-16 and DenseNet-BC-121 on ImageNet dataset. As shown in Figure, when the learning rate is 0.1 (i.e. between epoch 0 and 30) the SWAT algorithm reaches the saturation accuracy around the 15th epoch approximately the same epoch when the baseline algorithm also reaches saturation. Similarly, when the learning rate is 0.01 (i.e. between epoch 0-40th) both SWAT and the baseline saturate at epoch $3 5 \mathrm { t h }$ . The experiment at $5 0 \%$ and $7 0 \%$ sparsity shows that SWAT algorithm converges with slight accuracy loss but at the same rate compared to the baseline algorithm.
|
| 105 |
+
|
| 106 |
+
Influence of Depth and Width: Network depth (#layers) and width (#channels) are two important design criteria. Previous studies (Lu et al., 2017; Raghu et al., 2017; Sharir & Shashua, 2018) have found that both depth and width affect network expressivity. Increasing network depth helps in learning complex abstraction, whereas increasing width helps in learning more features. Ideally, we want SWAT and SAW algorithms to work with models of varying depth and width. Therefore, we study the influence of depth and width on the SWAT and SAW algorithms. Figure 6a shows the accuracy of ResNet-50, ResNet-101 and WRN-28-10 on CIFAR100 datasets at four different sparsities $0 \%$ , $5 0 \%$ , $7 0 \%$ and $8 0 \%$ . The result for deeper networks shows that enforcing sparsity up to $7 0 \%$ is beneficial for training as the ResNet-50 and ResNet-100 converged to an accuracy higher than the baseline training. At $8 0 \%$ sparsity, ResNet-101 loses accuracy of a mere $0 . 1 8 \%$ whereas ResNet-50 still has an accuracy advantage of $0 . 1 9 \%$ over the baseline. WRN-28-10 lose accuracy on training with SWAT and SAW algorithm, but the accuracy loss is only $0 . 6 7 \%$ for SAW and $0 . 4 9 \%$ for SWAT at $7 0 \%$ sparsity.
|
| 107 |
+
|
| 108 |
+

|
| 109 |
+
Figure 6: (a) Influence of Depth and Width: Accuracy of SAW and SWAT algorithms on CI FAR100 dataset for ResNet-50,101 and WRN-28-10 (b) Threshold value (K-th largest values) in Top-K operation of different layers during training
|
| 110 |
+
|
| 111 |
+
Efficient Top-K Implementation: Top- $K ^ { 3 }$ operation on 1 dimensional array of size $n$ can be naively implemented using sorting. The computational complexity of a naive Top- $\mathbf { \nabla } \cdot \mathbf { K }$ operation is $O ( n \log n )$ . The computational complexity can be reduced to $O ( n )$ , if the $\mathbf { k }$ -th largest element can be found in $O ( n )$ time, since for this case the Top-K operation can be implemented by a threshold operation. The K-th largest element can be computed in $O ( n )$ average time using quickselect (Hoare, 1961) or in $\theta ( n )$ time using BFPRT (Blum et al., 1973) or introselect (Musser, 1997). The computation can be further reduced since we found experimentally that for a given layer, the K-th largest elements is almost constant during training as shown in Figure 6b. So we don’t need to compute the K-th largest elements during every training iteration and can be computed once in a while after multiple iterations.
|
| 112 |
+
|
| 113 |
+
3.3 COMPUTATIONAL AND MEMORY OVERHEAD REDUCTION DURING TRAINING
|
| 114 |
+
|
| 115 |
+
In this section, we will quantify the reduction in computational and memory overhead, using SWAT, over the baseline training algorithm.
|
| 116 |
+
|
| 117 |
+
Computation Reduction: SWAT sparsifying the computation in During CNN training, most of the computation is in the convolution and fully connected layer, therefore sparsifying the computation in both of these layers can result in linear speed-up during training. Figure 7 shows the computational reduction possible by SWAT for three different architecture while training on ImageNet dataset. SWAT achieves a computation reduction of $2 \mathbf { x }$ , $3 . 3 \mathrm { x }$ , and $5 \mathbf { x }$ at $50 \%$ , $70 \%$ , and $80 \%$ sparsity respectively. Note that the overall overhead of implementing efficient Top-K operation using BFRT/introselect $^ +$ thresholding, as described in the pre
|
| 118 |
+
|
| 119 |
+
algorithm is accelerating CNN training by both the forward and the backward pass.
|
| 120 |
+
|
| 121 |
+

|
| 122 |
+
Figure 7: Computational reduction in SWAT at different sparsity. “RN” denotes ResNet, “DN” denote DenseNet (Dataset: ImageNet)
|
| 123 |
+
|
| 124 |
+
vious section, is only $1 \%$ additional computation during training. Another benefit of using SWAT
|
| 125 |
+
|
| 126 |
+
is that the model learns a sparse architecture and therefore, sparse weights are used during Inference.
|
| 127 |
+
Thus, the same computational benefit of $2 { - } 5 \mathbf { x }$ is possible for Inference as well.
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 8: Reduction in memory accesses during the backward pass. (a) Reduction in parameter access (b) Reduction in activation access per sample (Dataset: ImageNet)
|
| 131 |
+
|
| 132 |
+
Memory Overhead Reduction: During training, most of the weights and activations are stored in DRAM and accessing DRAM consumes three orders of magnitude more energy consumption than computation (Horowitz). So reducing the memory access during training will directly reduce the energy consumption. SWAT algorithm uses sparse input activation $\left( a _ { l - 1 } \right)$ and weight $( w _ { l - 1 } )$ in the backward, so input activation and weight can be compressed and stored in the memory in sparse format thereby reducing the DRAM access in the backward pass. Figure 8a shows the reduction of $2 \mathbf { x }$ , $3 . 3 \mathrm { x }$ , and ${ 5 } \mathbf { x }$ at sparsity of $50 \%$ , $70 \%$ and $80 \%$ in the parameters access in the backward pass. The other significant memory overhead is saving the activation, and this overhead is dependent not only on the model size but also on the batch-size used during training. Figure 8b shows the activation memory overhead for different architectures for a mini-batch size of 1. The graph only shows the activation of batch-normalization and convolutional layer since memory overhead for the activations of the linear layer is negligible compared to them. Note that SWAT algorithm sparsifies the computation of the linear, and convolutional layers, so full input activation of the batch-normalization layer are saved for the backward pass. Thus, SWAT algorithm achieves activation compression of around 1.3x, 1.5x, and $1 . 7 \mathbf { x }$ at sparsity of around $50 \%$ , $70 \%$ , and $80 \%$ . The activation of batch-normalization layer limits the overall activation compression.
|
| 133 |
+
|
| 134 |
+
# 4 EXPERIMENTAL ANALYSIS OF SWAT BEHAVIOUR
|
| 135 |
+
|
| 136 |
+
In this section, we will give some experimental evidence which explains why the SWAT algorithm is working so well in practice. The experiment shows the general behavior of vector sparsification in high dimensional space. Let us first define two new terminologies which we are going to use in this section: “Top-K sparsification” and “Sparsification Angle”4. Top-K sparsification of a vector $v$ selects $K \%$ of the highest magnitude component and set the rest of the component to zero. Sparsification angle is the angle between the original and the Top-K sparsified instance of that vector.
|
| 137 |
+
|
| 138 |
+
# 4.1 VECTOR SPARSIFICATION IN HIGH-DIMENSIONAL SPACE
|
| 139 |
+
|
| 140 |
+
A vector in high-dimensional space behaves differently from their low dimensional counterpart. It is well known that in high-dimension, two independent isotropic vectors tend to be orthogonal. Recently Anderson & Berg (2017) extended the analysis of the geometry of high-dimensional vectors to binary vectors. They proved that the angle between any random vector, drawn from a rotationally invariant distribution, and its binarized version would be concentrated around $3 7 ^ { \circ }$ . Thus, binarization of high dimensional vector approximately preserves their direction. We apply a similar kind of geometry analysis to high dimensional sparsified vectors. We show that sparsification indeed preserves direction in high-dimensional space, which is contrary to our low-dimensional intuition.
|
| 141 |
+
|
| 142 |
+
The first question we need to answer is how should we sparsify a vector $v ~ \in ~ R ^ { d }$ such that the sparsification angle is minimum between the original and the sparsified instance of the original vector (has only $K \%$ non-zero component). We found that the cosine angle is minimum when the $K \%$ non-zero component corresponds to the $K \%$ highest magnitude component, i.e., Top K sparsification. The proof is in the appendix.
|
| 143 |
+
|
| 144 |
+
We did an experiment for analyzing how Top K sparsification affect angle as shown in Figure 9a, Here we are showing the sparsification angle distribution for a 1000 dimensional vector drawn from standard normal distribution at different sparsity. The peak of sparsification angle at $9 0 \%$ sparsity is concentrated around $4 8 ^ { \circ }$ which is much less than peak of random vectors which is concentrated around $9 0 ^ { \circ }$ . Similarly, the peak up to $8 0 \%$ sparsity is concentrated at an angle of $3 6 . 4 ^ { \circ }$ only. This suggest that deviation caused by sparsification is indeed small in high-dimension.
|
| 145 |
+
|
| 146 |
+
For our next experiment shown in Figure 9b, we study how much a vector of a given dimension, drawn from standard normal distribution, can be maximally sparsified such that the sparsification angle is less than $\delta$ . We can see that the percentage of Top-K components needed for $\delta = \{ 2 0 ^ { \circ } , \bar { 3 } 0 ^ { \circ } , 4 0 ^ { \circ } \}$ is around only $4 3 \%$ , $2 9 \%$ and $1 8 \%$ respectively with a variance less than $3 \%$ as shown in Figure ${ 9 \mathrm { c } }$ . Thus, these experiment suggest that a high-dimensional vector can be sparsified up to $7 0 \%$ , which will lead a deviation $( \delta )$ of only $3 0 ^ { \circ }$ . All the above experimental results are dependent on the distribution from which random vectors are drawn, in Figure 9e, we calculate the sparsification angle during training ResNet18 on CIFAR100 dataset at $7 0 \%$ Sparsity. Here the sparsification angle for weight and activation is less than $3 6 ^ { \circ }$ for all the layer in the network. So the experiment suggests that the above analysis is applicable during training.
|
| 147 |
+
|
| 148 |
+

|
| 149 |
+
Figure 9: Vector sparsification in high-dimension approximately preserves the direction:(a) Shows the sparsification angle distribution at different Top-K percentage for a 1000 dimensional vector in 10, 000 trials. Random represents the angle distribution between 2 random vectors. (b) and (c) Shows the percentage of Top-K components needed for sparsification angle to be within $\delta$ in 1000 trials and the variance in those trials. (d) Shows the relation between Top-K sparsification and the sparsification angle in 1000 trials. (e) Shows how the sparsification angle (at $7 0 \%$ sparsification) varies during training for ResNet-18 architecture on CIFAR100 dataset.
|
| 150 |
+
|
| 151 |
+
# 5 RELATED WORK
|
| 152 |
+
|
| 153 |
+
We can classify most of the previous studies which focus on accelerating training or inference in the following broad categories:
|
| 154 |
+
|
| 155 |
+
Pruning: Most of the pruning work focuses on inference optimization. Weight pruning can be classified into two broad categories of structured and unstructured pruning. The idea of unstructured pruning can be traced back to LeCun et al. (1990); Hassibi & Stork (1993), which prune the network using the saliency of parameters derived from the second-order information of loss function. Han et al. (2015b;a) pruned network parameters using a magnitude based method. There are several other unstructured pruning methods such as Molchanov et al. (2017); Louizos et al. (2017), but the drawback of all these methods is that it is difficult to extract parallelism on hardware. In contrast, structured pruning such as Liu et al. (2017); Li et al. (2016b); He et al. (2017); Luo et al. (2017); Wen et al. (2016); Molchanov et al. (2016) removes entire channels or filters at a time which preserves the inherent regular computation structure, and therefore it is easy to extract parallelism on hardware.
|
| 156 |
+
|
| 157 |
+
Quantization: Quantized networks can be used to accelerate both training and inference since energy consumption in the hardware is directly proportional to bit-width of the operands. There are many works which focus on quantizing weights for efficient inference such as McDonnell (2018); Wu et al. (2016); Zhu et al. (2016); Li et al. (2016a); Courbariaux et al. (2015) whereas much other work focuses on accelerating training as well, such as Banner et al. (2018); Choi et al. (2018); Wang et al. (2018); Lin et al. (2017a); Zhou et al. (2016); Courbariaux et al. (2016); Rastegari et al. (2016); Gupta et al. (2015). Some of the other work such as Zhao et al. (2019); McKinstry et al. (2018); Zhou et al. (2017); Mellempudi et al. (2017) shows that training from scratch is not necessary for finding the quantized model, but one can find a quantized model from pre-trained full precision models. Other work focuses on discrete training and inference using Integers such as Wu et al. (2018); Das et al. (2018); Jacob et al. (2018); Lin et al. (2016) since integer added/multiplier is more efficient than floating-point adder/multiplier. Few studies such as Louizos et al. (2019); Jung et al. (2019); Zhang et al. (2018); Zhou et al. (2018); Hou & Kwok (2018); Hou et al. (2016) formulate the quantization as an optimization problem to minimize the accuracy loss due to quantization. Few other work such as Yang et al. (2019); De Sa et al. (2018) focus on improving the learning algorithm by proposing novel stochastic averaging of the low precision iterates or using SVRG to reduce the variance and by dynamically adjusting the precision representation using bit centering. Few works instead of quantizing the entire model to a fixed bit-width focus on per tensor or parameter quantization such as Sakr & Shanbhag (2019); Khoram & Li (2018). Compared to all these works, our work is orthogonal as we eliminate the computation instead of reducing the computation precision.
|
| 158 |
+
|
| 159 |
+
Tensor Decomposition and Dimentionality Reduction: There are few works on compressing the models by performing tensor decomposition or by learning compact structure. Alvarez & Salzmann (2017) introduce a regularizer that promotes the parameter matrix to have a low rank. Thus the algorithm encourages the model to learn a compact structure by accounting for compression during the training itself. Novikov et al. (2015) showed that tensor decomposition could be used to compress a fully connected layer by using only a few parameters. Later, Garipov et al. (2016) extended it for the convolutional layer. The idea was to reshape the kernel into a tensor of higher-order and then to factorize it.
|
| 160 |
+
|
| 161 |
+
Distributed Training: There are few works (Stich et al., 2018; Lin et al., 2017b) which look at reducing the communication overhead in distributed training by transferring only sparse gradients during gradient aggregation step but these works are accumulating the rest of the gradients locally for subsequent iterations. Compared to all these works, our work objective is different as we are concerned with accelerating single node training, whereas their objective is minimizing communication during distributed training.
|
| 162 |
+
|
| 163 |
+
# 6 CONCLUSION
|
| 164 |
+
|
| 165 |
+
In this work, we propose SWAT, a robust training algorithm based on the insight that sparsifying weights and activation during training has little impact on convergence. SWAT sparsify both the forward and the backward passes, thereby eliminating lots of redundant computation such as addition and multiplication by zero. SWAT is a simpler technique and performs better than the recently proposed dimensionality reduction (DSG) technique for accelerating training. Our experiments over various benchmarks demonstrate significant computation reduction of up to $2 { - } 5 \mathbf { x }$ for training and inference and provides a memory footprint reduction of activation by $1 . 3 – 1 . 7 \mathrm { x }$ and reduction in memory access overhead for weight by $2 { - } 5 \mathbf { x }$ in the backward pass.
|
| 166 |
+
|
| 167 |
+
# REFERENCES
|
| 168 |
+
|
| 169 |
+
Jorge Albericio, Patrick Judd, Tayler Hetherington, Tor Aamodt, Natalie Enright Jerger, and Andreas Moshovos. Cnvlutin: Ineffectual-neuron-free deep neural network computing. ACM SIGARCH Computer Architecture News, 44(3):1–13, 2016.
|
| 170 |
+
|
| 171 |
+
Jose M Alvarez and Mathieu Salzmann. Compression-aware training of deep networks. In Advances in Neural Information Processing Systems, pp. 856–867, 2017.
|
| 172 |
+
|
| 173 |
+
Alexander G Anderson and Cory P Berg. The high-dimensional geometry of binary neural networks. arXiv preprint arXiv:1705.07199, 2017.
|
| 174 |
+
|
| 175 |
+
Ron Banner, Itay Hubara, Elad Hoffer, and Daniel Soudry. Scalable methods for 8-bit training of neural networks. In Advances in Neural Information Processing Systems, pp. 5145–5153, 2018.
|
| 176 |
+
|
| 177 |
+
Manuel Blum, Robert W. Floyd, Vaughan Pratt, Ronald L. Rivest, and Robert E. Tarjan. Time bounds for selection. Journal of Computer and System Sciences, 7(4):448 – 461, 1973. ISSN 0022-0000. doi: https://doi.org/10.1016/S0022-0000(73)80033-9. URL http://www. sciencedirect.com/science/article/pii/S0022000073800339.
|
| 178 |
+
|
| 179 |
+
Jungwook Choi, Pierce I-Jen Chuang, Zhuo Wang, Swagath Venkataramani, Vijayalakshmi Srinivasan, and Kailash Gopalakrishnan. Bridging the accuracy gap for 2-bit quantized neural networks (qnn). arXiv preprint arXiv:1807.06964, 2018.
|
| 180 |
+
|
| 181 |
+
Matthieu Courbariaux, Yoshua Bengio, and Jean-Pierre David. Binaryconnect: Training deep neural networks with binary weights during propagations. In Advances in neural information processing systems, pp. 3123–3131, 2015.
|
| 182 |
+
|
| 183 |
+
Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, and Yoshua Bengio. Binarized neural networks: Training deep neural networks with weights and activations constrained $\mathrm { t o } + 1$ or-1. arXiv preprint arXiv:1602.02830, 2016.
|
| 184 |
+
|
| 185 |
+
Dipankar Das, Naveen Mellempudi, Dheevatsa Mudigere, Dhiraj Kalamkar, Sasikanth Avancha, Kunal Banerjee, Srinivas Sridharan, Karthik Vaidyanathan, Bharat Kaul, Evangelos Georganas, Alexander Heinecke, Pradeep Dubey, Jesus Corbal, Nikita Shustrov, Roma Dubtsov, Evarist Fomenko, and Vadim Pirogov. Mixed precision training of convolutional neural networks using integer operations. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $_ { \cdot } =$ H135uzZ0-.
|
| 186 |
+
|
| 187 |
+
Christopher De Sa, Megan Leszczynski, Jian Zhang, Alana Marzoev, Christopher R Aberger, Kunle Olukotun, and Christopher Re. High-accuracy low-precision training. ´ arXiv preprint arXiv:1803.03383, 2018.
|
| 188 |
+
|
| 189 |
+
Jia Deng, Wei Dong, Richard Socher, Li-Jia Li, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248–255. Ieee, 2009.
|
| 190 |
+
|
| 191 |
+
Chao Dong, Chen Change Loy, Kaiming He, and Xiaoou Tang. Learning a deep convolutional network for image super-resolution. In European conference on computer vision, pp. 184–199. Springer, 2014.
|
| 192 |
+
|
| 193 |
+
Jonathan Frankle and Michael Carbin. The lottery ticket hypothesis: Finding sparse, trainable neural networks. arXiv preprint arXiv:1803.03635, 2018.
|
| 194 |
+
|
| 195 |
+
Timur Garipov, Dmitry Podoprikhin, Alexander Novikov, and Dmitry Vetrov. Ultimate tensorization: compressing convolutional and fc layers alike. arXiv preprint arXiv:1611.03214, 2016.
|
| 196 |
+
|
| 197 |
+
Suyog Gupta, Ankur Agrawal, Kailash Gopalakrishnan, and Pritish Narayanan. Deep learning with limited numerical precision. In International Conference on Machine Learning, pp. 1737–1746, 2015.
|
| 198 |
+
|
| 199 |
+
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, 2015a.
|
| 200 |
+
|
| 201 |
+
Song Han, Jeff Pool, John Tran, and William Dally. Learning both weights and connections for efficient neural network. In Advances in neural information processing systems, pp. 1135–1143, 2015b.
|
| 202 |
+
|
| 203 |
+
Babak Hassibi and David G Stork. Second order derivatives for network pruning: Optimal brain surgeon. In Advances in neural information processing systems, pp. 164–171, 1993.
|
| 204 |
+
|
| 205 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 206 |
+
|
| 207 |
+
Yihui He, Xiangyu Zhang, and Jian Sun. Channel pruning for accelerating very deep neural networks. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1389–1397, 2017.
|
| 208 |
+
|
| 209 |
+
C. A. R. Hoare. Algorithm 65: Find. Commun. ACM, 4(7):321–322, July 1961. ISSN 0001-0782. doi: 10.1145/366622.366647. URL http://doi.acm.org/10.1145/366622.366647.
|
| 210 |
+
|
| 211 |
+
Mark Horowitz. Energy table for $4 5 \mathrm { n m }$ process, Stanford VLSI wiki.
|
| 212 |
+
|
| 213 |
+
Lu Hou and James T. Kwok. Loss-aware weight quantization of deep networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum? id=BkrSv0lA-.
|
| 214 |
+
|
| 215 |
+
Lu Hou, Quanming Yao, and James T Kwok. Loss-aware binarization of deep networks. arXiv preprint arXiv:1611.01600, 2016.
|
| 216 |
+
|
| 217 |
+
Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700–4708, 2017.
|
| 218 |
+
|
| 219 |
+
Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv preprint arXiv:1502.03167, 2015.
|
| 220 |
+
|
| 221 |
+
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. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2704–2713, 2018.
|
| 222 |
+
|
| 223 |
+
Sangil Jung, Changyong Son, Seohyung Lee, Jinwoo Son, Jae-Joon Han, Youngjun Kwak, Sung Ju Hwang, and Changkyu Choi. Learning to quantize deep networks by optimizing quantization intervals with task loss. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4350–4359, 2019.
|
| 224 |
+
|
| 225 |
+
Soroosh Khoram and Jing Li. Adaptive quantization of neural networks. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id $=$ SyOK1Sg0W.
|
| 226 |
+
|
| 227 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 228 |
+
|
| 229 |
+
Alex Krizhevsky et al. Learning multiple layers of features from tiny images. Technical report, Citeseer, 2009.
|
| 230 |
+
|
| 231 |
+
Yann LeCun, John S Denker, and Sara A Solla. Optimal brain damage. In Advances in neural information processing systems, pp. 598–605, 1990.
|
| 232 |
+
|
| 233 |
+
Fengfu Li, Bo Zhang, and Bin Liu. Ternary weight networks. arXiv preprint arXiv:1605.04711, 2016a.
|
| 234 |
+
|
| 235 |
+
Hao Li, Asim Kadav, Igor Durdanovic, Hanan Samet, and Hans Peter Graf. Pruning filters for efficient convnets. arXiv preprint arXiv:1608.08710, 2016b.
|
| 236 |
+
|
| 237 |
+
Darryl Lin, Sachin Talathi, and Sreekanth Annapureddy. Fixed point quantization of deep convolutional networks. In International Conference on Machine Learning, pp. 2849–2858, 2016.
|
| 238 |
+
|
| 239 |
+
Xiaofan Lin, Cong Zhao, and Wei Pan. Towards accurate binary convolutional neural network. In Advances in Neural Information Processing Systems, pp. 345–353, 2017a.
|
| 240 |
+
|
| 241 |
+
Yujun Lin, Song Han, Huizi Mao, Yu Wang, and William J Dally. Deep gradient compression: Reducing the communication bandwidth for distributed training. arXiv preprint arXiv:1712.01887, 2017b.
|
| 242 |
+
|
| 243 |
+
Liu Liu, Lei Deng, Xing Hu, Maohua Zhu, Guoqi Li, Yufei Ding, and Yuan Xie. Dynamic sparse graph for efficient deep learning. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id $=$ H1goBoR9F7.
|
| 244 |
+
|
| 245 |
+
Zhuang Liu, Jianguo Li, Zhiqiang Shen, Gao Huang, Shoumeng Yan, and Changshui Zhang. Learning efficient convolutional networks through network slimming. In Proceedings of the IEEE International Conference on Computer Vision, pp. 2736–2744, 2017.
|
| 246 |
+
|
| 247 |
+
Christos Louizos, Max Welling, and Diederik P Kingma. Learning sparse neural networks through l 0 regularization. arXiv preprint arXiv:1712.01312, 2017.
|
| 248 |
+
|
| 249 |
+
Christos Louizos, Matthias Reisser, Tijmen Blankevoort, Efstratios Gavves, and Max Welling. Relaxed quantization for discretized neural networks. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id ${ . } =$ HkxjYoCqKX.
|
| 250 |
+
|
| 251 |
+
Zhou Lu, Hongming Pu, Feicheng Wang, Zhiqiang Hu, and Liwei Wang. The expressive power of neural networks: A view from the width. In Advances in neural information processing systems, pp. 6231–6239, 2017.
|
| 252 |
+
|
| 253 |
+
Jian-Hao Luo, Jianxin Wu, and Weiyao Lin. Thinet: A filter level pruning method for deep neural network compression. In Proceedings of the IEEE international conference on computer vision, pp. 5058–5066, 2017.
|
| 254 |
+
|
| 255 |
+
Mark D. McDonnell. Training wide residual networks for deployment using a single bit for each weight. In International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id $=$ rytNfI1AZ.
|
| 256 |
+
|
| 257 |
+
Jeffrey L McKinstry, Steven K Esser, Rathinakumar Appuswamy, Deepika Bablani, John V Arthur, Izzet B Yildiz, and Dharmendra S Modha. Discovering low-precision networks close to fullprecision networks for efficient embedded inference. arXiv preprint arXiv:1809.04191, 2018.
|
| 258 |
+
|
| 259 |
+
Naveen Mellempudi, Abhisek Kundu, Dheevatsa Mudigere, Dipankar Das, Bharat Kaul, and Pradeep Dubey. Ternary neural networks with fine-grained quantization. arXiv preprint arXiv:1705.01462, 2017.
|
| 260 |
+
|
| 261 |
+
Dmitry Molchanov, Arsenii Ashukha, and Dmitry Vetrov. Variational dropout sparsifies deep neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 2498–2507. JMLR. org, 2017.
|
| 262 |
+
|
| 263 |
+
Pavlo Molchanov, Stephen Tyree, Tero Karras, Timo Aila, and Jan Kautz. Pruning convolutional neural networks for resource efficient inference. arXiv preprint arXiv:1611.06440, 2016.
|
| 264 |
+
|
| 265 |
+
David R. Musser. Introspective sorting and selection algorithms. Software: Practice and Experience, 27(8):983–993, 1997. doi: 10.1002/(SICI)1097-024X(199708)27:8h983:: AID-SPE117i3.0.CO;2-\#. URL https://onlinelibrary.wiley.com/doi/ abs/10.1002/%28SICI%291097-024X%28199708%2927%3A8%3C983%3A% 3AAID-SPE117%3E3.0.CO%3B2-%23.
|
| 266 |
+
|
| 267 |
+
Alexander Novikov, Dmitrii Podoprikhin, Anton Osokin, and Dmitry P Vetrov. Tensorizing neural networks. In Advances in neural information processing systems, pp. 442–450, 2015.
|
| 268 |
+
|
| 269 |
+
Angshuman Parashar, Minsoo Rhu, Anurag Mukkara, Antonio Puglielli, Rangharajan Venkatesan, Brucek Khailany, Joel Emer, Stephen W Keckler, and William J Dally. Scnn: An accelerator for compressed-sparse convolutional neural networks. In 2017 ACM/IEEE 44th Annual International Symposium on Computer Architecture (ISCA), pp. 27–40. IEEE, 2017.
|
| 270 |
+
|
| 271 |
+
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.
|
| 272 |
+
|
| 273 |
+
Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl Dickstein. On the expressive power of deep neural networks. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 2847–2854. JMLR. org, 2017.
|
| 274 |
+
|
| 275 |
+
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.
|
| 276 |
+
|
| 277 |
+
Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster r-cnn: Towards real-time object detection with region proposal networks. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 91–99. Curran Associates, Inc., 2015.
|
| 278 |
+
|
| 279 |
+
Charbel Sakr and Naresh Shanbhag. Per-tensor fixed-point quantization of the back-propagation algorithm. In International Conference on Learning Representations, 2019. URL https:// openreview.net/forum?id $=$ rkxaNjA9Ym.
|
| 280 |
+
|
| 281 |
+
Or Sharir and Amnon Shashua. On the expressive power of overlapping architectures of deep learning. In International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id $=$ HkNGsseC-.
|
| 282 |
+
|
| 283 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 284 |
+
|
| 285 |
+
Sebastian U Stich, Jean-Baptiste Cordonnier, and Martin Jaggi. Sparsified sgd with memory. In Advances in Neural Information Processing Systems, pp. 4447–4458, 2018.
|
| 286 |
+
|
| 287 |
+
Xu Sun, Xuancheng Ren, Shuming Ma, and Houfeng Wang. meprop: Sparsified back propagation for accelerated deep learning with reduced overfitting. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 3299–3308. JMLR. org, 2017.
|
| 288 |
+
|
| 289 |
+
Christian Szegedy, Alexander Toshev, and Dumitru Erhan. Deep neural networks for object detection. In C. J. C. Burges, L. Bottou, M. Welling, Z. Ghahramani, and K. Q. Weinberger (eds.), Advances in Neural Information Processing Systems 26, pp. 2553–2561. Curran Associates, Inc., 2013. URL http://papers.nips.cc/paper/ 5207-deep-neural-networks-for-object-detection.pdf.
|
| 290 |
+
|
| 291 |
+
Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, and Andrew Rabinovich. Going deeper with convolutions. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1–9, 2015.
|
| 292 |
+
|
| 293 |
+
Naigang Wang, Jungwook Choi, Daniel Brand, Chia-Yu Chen, and Kailash Gopalakrishnan. Training deep neural networks with 8-bit floating point numbers. In Advances in neural information processing systems, pp. 7675–7684, 2018.
|
| 294 |
+
|
| 295 |
+
Bingzhen Wei, Xu Sun, Xuancheng Ren, and Jingjing Xu. Minimal effort back propagation for convolutional neural networks. arXiv preprint arXiv:1709.05804, 2017.
|
| 296 |
+
|
| 297 |
+
Wei Wen, Chunpeng Wu, Yandan Wang, Yiran Chen, and Hai Li. Learning structured sparsity in deep neural networks. In Advances in neural information processing systems, pp. 2074–2082, 2016.
|
| 298 |
+
|
| 299 |
+
Jiaxiang Wu, Cong Leng, Yuhang Wang, Qinghao Hu, and Jian Cheng. Quantized convolutional neural networks for mobile devices. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4820–4828, 2016.
|
| 300 |
+
|
| 301 |
+
Shuang Wu, Guoqi Li, Feng Chen, and Luping Shi. Training and inference with integers in deep neural networks. In International Conference on Learning Representations, 2018. URL https: //openreview.net/forum?id=HJGXzmspb.
|
| 302 |
+
|
| 303 |
+
Guandao Yang, Tianyi Zhang, Polina Kirichenko, Junwen Bai, Andrew Gordon Wilson, and Chris De Sa. Swalp: Stochastic weight averaging in low precision training. In International Conference on Machine Learning, pp. 7015–7024, 2019.
|
| 304 |
+
|
| 305 |
+
Sergey Zagoruyko and Nikos Komodakis. Wide residual networks. arXiv preprint arXiv:1605.07146, 2016.
|
| 306 |
+
|
| 307 |
+
Dongqing Zhang, Jiaolong Yang, Dongqiangzi Ye, and Gang Hua. Lq-nets: Learned quantization for highly accurate and compact deep neural networks. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 365–382, 2018.
|
| 308 |
+
|
| 309 |
+
Kai Zhang, Wangmeng Zuo, Shuhang Gu, and Lei Zhang. Learning deep cnn denoiser prior for image restoration. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3929–3938, 2017.
|
| 310 |
+
|
| 311 |
+
Shijin Zhang, Zidong Du, Lei Zhang, Huiying Lan, Shaoli Liu, Ling Li, Qi Guo, Tianshi Chen, and Yunji Chen. Cambricon-x: An accelerator for sparse neural networks. In The 49th Annual IEEE/ACM International Symposium on Microarchitecture, pp. 20. IEEE Press, 2016.
|
| 312 |
+
|
| 313 |
+
Ritchie Zhao, Yuwei Hu, Jordan Dotzel, Christopher De Sa, and Zhiru Zhang. Improving neural network quantization using outlier channel splitting. arXiv preprint arXiv:1901.09504, 2019.
|
| 314 |
+
|
| 315 |
+
Aojun Zhou, Anbang Yao, Yiwen Guo, Lin Xu, and Yurong Chen. Incremental network quantization: Towards lossless cnns with low-precision weights. arXiv preprint arXiv:1702.03044, 2017.
|
| 316 |
+
|
| 317 |
+
Aojun Zhou, Anbang Yao, Kuan Wang, and Yurong Chen. Explicit loss-error-aware quantization for low-bit deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9426–9435, 2018.
|
| 318 |
+
|
| 319 |
+
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.
|
| 320 |
+
|
| 321 |
+
Chenzhuo Zhu, Song Han, Huizi Mao, and William J Dally. Trained ternary quantization. arXiv preprint arXiv:1612.01064, 2016.
|
| 322 |
+
|
| 323 |
+
# APPENDIX A PROOF SHOWING TOP-K IS THE BEST SPARSIFICATION FUNCTION
|
| 324 |
+
|
| 325 |
+
Definition 1 Sparsifying Function $( f _ { S } )$ : Given a parameter $1 < k \leq d$ , let $f _ { S } \colon { \mathbb { R } ^ { d } } \to { \mathbb { R } ^ { d } }$ be a function that selects $\mathbf { k }$ component of vector and sets the rest of the component to zero. For a vector $v \in \mathbb { R } ^ { d } , f _ { S } ( v ) = \mathbb { I } _ { k } ( \mathbf { v } ) \odot \bar { \mathbf { v } }$ , where $\mathbb { I } _ { k } ( \mathbf { v } )$ is an indicator vector having $\mathbf { k }$ non-zero values determined by input vector $v$ .
|
| 326 |
+
|
| 327 |
+
Definition 2 Top-K Sparsifying Function $( f _ { T O P K } )$ : Given a parameter $1 < k \leq d$ , let $f _ { T O P K }$ $: \mathbb { R } ^ { d } \mathbb { R } ^ { d }$ is a special sparsifying function that sets all but the $\mathbf { k }$ highest component of input vector in absolute value to zero. More precisely, for a vector $v \in \mathbb { R } ^ { d }$ , $f _ { T O P K } ( v ) = \mathbb { I } _ { t o p k } ( \mathbf { v } ) \odot \mathbf { v }$ where $\mathbb { I } _ { t o p k }$ is an indicator function, $\mathbb { I } ( \bar { i } \in \{ \pi _ { 1 } , \cdot \cdot \cdot , \pi _ { k } \} )$ , and $\pi$ is a permutation of $[ d ]$ such that $| v | _ { \pi _ { i } } \geq | \bar { v } | _ { \pi _ { i + 1 } }$ for $i = 1 , \ldots , d - 1$ .
|
| 328 |
+
|
| 329 |
+
Definition 3 Sparsification Angle $\mathbf { \eta } ^ { ( \theta ) }$ : For a vector $v \in \mathbb { R } ^ { d }$ , the deviation in the direction caused by sparsification $f _ { S } ( . )$ is defined as the sparsification angle, i.e., it is the angle between the vector $v$ and sparse vector $f _ { S } ( v )$ .
|
| 330 |
+
|
| 331 |
+
Lemma A.1. For any vector $\boldsymbol { v } ~ \in ~ \mathbb { R } ^ { d }$ and of all the sparsifying function $f _ { S }$ , Top- $K$ sparsifying function $( f _ { T O P K } )$ causes the minimum deviation in direction i.e. minimum sparsification angle.
|
| 332 |
+
|
| 333 |
+
Proof. Given a parameter $k ~ \in ~ [ 1 , d ]$ , for a vector $\textbf { v } = \mathbf { \Omega } ( v _ { 1 } , \cdot \cdot \cdot , v _ { n } ) ^ { \mathrm { T } } ~ \in ~ \mathbb { R } ^ { d }$ let ${ \bf f } _ { \bf S } ( { \bf v } ) { \bf \rho } = { \bf \rho }$ $( m _ { 1 } \bar { v } _ { 1 } , \cdot \cdot \cdot , m _ { d } \bar { v _ { d } } ) ^ { \mathrm { T } } \in \mathbb R ^ { d }$ such that $\dot { m } _ { i } \in \{ 0 , 1 \} \ \forall i$ , be the Top-K indicator mask i.e., $m _ { i } = 1$ only if $i ^ { t h }$ component of $v$ is selected by the sparsifying function.
|
| 334 |
+
|
| 335 |
+
$$
|
| 336 |
+
\begin{array} { r } { \cos \langle f _ { S } ( \mathbf { v } ) , \mathbf { v } \rangle = \frac { f _ { S } ( \mathbf { v } ) \cdot \mathbf { v } } { \| f _ { S } ( \mathbf { v } ) \| \| \mathbf { v } \| } = \frac { \displaystyle \frac { \frac { d } { \sum } ( m _ { i } v _ { i } ^ { 2 } ) } { i = 1 } = } { \sqrt { \displaystyle \sum _ { i = 1 } ^ { d } ( m _ { i } v _ { i } ) ^ { 2 } } \displaystyle \sqrt { \displaystyle \sum _ { i = 1 } ^ { d } v _ { i } ^ { 2 } } } = \frac { \displaystyle \frac { \sum _ { i = 1 } ^ { d } ( m _ { i } v _ { i } ) ^ { 2 } } { i = 1 } } { \displaystyle \sqrt { \displaystyle \sum _ { i = 1 } ^ { d } ( m _ { i } v _ { i } ) ^ { 2 } } \displaystyle \sqrt { \displaystyle \sum _ { i = 1 } ^ { d } v _ { i } ^ { 2 } } } } \\ { = \frac { \displaystyle \sqrt { \displaystyle \sum _ { i = 1 } ^ { d } ( m _ { i } v _ { i } ) ^ { 2 } } } { \displaystyle \sqrt { \displaystyle \sum _ { i = 1 } ^ { d } v _ { i } ^ { 2 } } } = \frac { \displaystyle \frac { \| f _ { S } ( \mathbf { v } ) \| } { \displaystyle \| \mathbf { v } \| } } { \displaystyle \| \mathbf { v } \| } } \end{array}
|
| 337 |
+
$$
|
| 338 |
+
|
| 339 |
+
In other words,
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
{ \mathrm { S p a r s i f y i n g ~ A n g l e } } ( \theta ) = \operatorname { a r c c o s } { \frac { \| f _ { S } ( \mathbf { v } ) \| } { \| \mathbf { v } \| } }
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
arccos is a strictly decreasing function, so to minimize $\theta$ , $\| f _ { S } ( \mathbf { v } ) \|$ must be maximized. Therefore Top-K component of the vector $v$ magnitude wise should be selected. □
|
| 346 |
+
|
| 347 |
+
# APPENDIX B PERIODIC TOP-K & EFFECT OF BATCH-NORMALIZATION
|
| 348 |
+
|
| 349 |
+
Periodic Top-K For Efficient Implementation: In section 3.2, we have shown there is a little variation in the $^ { 6 } \mathrm { K }$ -th’ largest element during training, and it remains approximately constant as training proceed. Therefore, the Top-K does not need to be computed every iteration and can be periodically computed after some iterations. We define the number of iterations between computing the threshold for Top-K as the “Top-K period.
|
| 350 |
+
|
| 351 |
+
<table><tr><td rowspan=1 colspan=1>Top-K Period</td><td rowspan=1 colspan=1>70% Sparsity</td><td rowspan=1 colspan=1>90% Sparsity</td></tr><tr><td rowspan=1 colspan=1>Default Top-K</td><td rowspan=1 colspan=1>76.41</td><td rowspan=1 colspan=1>73.81</td></tr><tr><td rowspan=1 colspan=1>10 Iteration</td><td rowspan=1 colspan=1>76.59</td><td rowspan=1 colspan=1>73.64</td></tr><tr><td rowspan=1 colspan=1>20 Iteration</td><td rowspan=1 colspan=1>76.03</td><td rowspan=1 colspan=1>73.45</td></tr><tr><td rowspan=1 colspan=1>50 Iteration</td><td rowspan=1 colspan=1>76.06</td><td rowspan=1 colspan=1>74.09</td></tr><tr><td rowspan=1 colspan=1>100 Iteration</td><td rowspan=1 colspan=1>76.52</td><td rowspan=1 colspan=1>73.29</td></tr></table>
|
| 352 |
+
|
| 353 |
+
We have empirically confirmed that the periodic Top-K performs equally well as the default Top-K implementation. The table above shows top1 validation accuracy from single runs of ResNet-18 on CIFAR 100 with different Top-K periods (i.e., Top-K is computed after every 10, 25, 50, and 100 iterations respectively). This data suggests the converged accuracy is indeed not significantly impacted when employing our proposed Periodic Top K implementation.
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
Figure 10: Sparsity Variation using Periodic Top-K Implementation. Network: ResNet-18, Dataset: CIFAR100, Top-K period: 100 iterations, Target Sparsity: $90 \%$
|
| 357 |
+
|
| 358 |
+
Since the periodic Top-K used the same threshold during the entire period, therefore, it is crucial to confirm that periodic Top-K implementation does not adversely affect the sparsity during training. We dumped the amount of sparsity obtained in weights and activation using periodic Top-K with period 100 iteration with target sparsity of $90 \%$ . Figure10 shows the sparsity during training using periodic Top-K implementation is concentrated around our targeted sparsity, and the fluctuation decreases as training proceeds confirming our hypothesis that chosen Top-K parameter stabilizes i.e. the Top-K threshold converge to a fixed value during the latter epochs.
|
| 359 |
+
|
| 360 |
+
The Top-K periods need not to be fixed throughout the training. The Top-K period can be increased as the training proceeds because the chosen Top-K parameters are unlikely to change at the later training iterations. To demonstrate this we perform a new experiment. We train ResNet-18 on CIFAR 100 for 150 epochs (learning rate decayed at epoch 50,100) using a version of SWAT which computes Top-K periodically but with increasing Top-K period for later epochs. The Top-K schedule used during training is shown below:
|
| 361 |
+
|
| 362 |
+
<table><tr><td rowspan=1 colspan=2>Scheduled Top-K</td><td rowspan=2 colspan=1>Top-KImplementation</td><td rowspan=1 colspan=2>Top-1 Accuracy</td></tr><tr><td rowspan=1 colspan=1>Epoch 0-50</td><td rowspan=1 colspan=1>3 times per epoch</td><td rowspan=1 colspan=1>70% Sparsity</td><td rowspan=1 colspan=1>90% Sparsity</td></tr><tr><td rowspan=1 colspan=1>Epoch 50-100</td><td rowspan=1 colspan=1>1 time per epoch</td><td rowspan=1 colspan=1>once per iteration</td><td rowspan=1 colspan=1>76.36</td><td rowspan=1 colspan=1>73.63</td></tr><tr><td rowspan=1 colspan=1>Epoch 100-150</td><td rowspan=1 colspan=1>1 time per 5 epoch</td><td rowspan=1 colspan=1>Scheduled Top-K</td><td rowspan=1 colspan=1>76.41</td><td rowspan=1 colspan=1>73.81</td></tr></table>
|
| 363 |
+
|
| 364 |
+
Note: 1 epoch has 392 iterations.
|
| 365 |
+
|
| 366 |
+
Sparsification of Batch-Normalization Layer: The activations and weights of BN layers are not sparsified in SWAT. Empirically, we found that sparsifying weights and activations are harmful to convergence. This is because the weight (gamma) of BN layers is a scaling factor for an entire output channel, therefore, making even a single BN weight (gamma) zero makes the entire output channel zero. Similarly, dropping activations affects the mean and variance computed by BN. Empirically we found that the BN layer is extremely sensitive to changes in the per channel mean and variance. For example, when ResNet18 is trained on CIFAR 100 using SWAT with $70 \%$ sparsity and we sparsify the BN layer activations, accuracy is degraded by $4 . 9 \%$ compared to training with SWAT without sparsifying the BN layers. Therefore, the activations of batch-normalization layer are not sparsified.
|
| 367 |
+
|
| 368 |
+
The parameters in a BN layer constitute less than $1 . 0 1 \%$ to the total parameters in the network and the total computation in the BN layer is less than $0 . 8 \%$ of the total computation in one forward and backward pass. Therefore, not sparsifying batch-normalization layers only affects the activation overhead in the backward pass.
|
| 369 |
+
|
| 370 |
+
Comparision with Lottery Ticket Hypothesis: The Lottery Ticket Hypothesis (Frankle & Carbin, 2018) showed the difficulty of training with a sparse architecture and that sparse training is very sensitive to initial conditions. The Lottery Ticket showed if one could pick the right initial conditions for the weights, one can train with a sparse network. SWAT is interesting in that it does train a sparse network without the need for oracle information about initialization values.
|
| 371 |
+
|
| 372 |
+
We believe the crucial difference that enables SWAT to work despite the observation in the Lottery Ticket Hypothesis paper is the following. SWAT updates which weights are part of the sparse network rather than attempting to train a single unchanging sparse network. SWAT may work because it dynamically searches for the sparse architecture that will work with a given set of initial conditions.
|
| 373 |
+
|
| 374 |
+
# APPENDIX C INDEXING OVERHEAD
|
| 375 |
+
|
| 376 |
+
To estimate the indexing overhead, we need to understand the generic architecture of the sparse CNN accelerator, the sparse format in which data is stored, and how the computations are mapped to the accelerator.
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
(a) Generic Architecture of Sparse CNN Accelerator
|
| 380 |
+
|
| 381 |
+

|
| 382 |
+
(b) Each PEs is responsible for creating a portion of the output (Parashar et al., 2017)
|
| 383 |
+
|
| 384 |
+
Sparse Accelerator: At a high-level of abstraction, all the sparse accelerators (Parashar et al., 2017; Zhang et al., 2016; Albericio et al., 2016) have a 2D array of processing units (PEs) where each processing unit has an array of multipliers and have a dedicated weight, activation, and accumulation buffer. They have an indexing unit for enabling the sparse multiplication. The computations are spatially mapped and scheduled to these processing units by a control and scheduling logic. Each of the PE generates partial products which get accumulated to compute the output values and finally stored in the DRAM.
|
| 385 |
+
|
| 386 |
+
Mapping Computations: Let us consider a convolutional layer, which maps the input activations in $\hat { ( R ^ { N \times C \times H _ { I } \times W _ { I } } ) }$ to out $( R ^ { N \times F \times H _ { O } \times W _ { O } } )$ . The layer computes $F$ channels of output feature maps, each of dimension $R ^ { H _ { O } \times W _ { O } }$ , using $C$ channel of input feature maps of dimension $R ^ { H _ { I } \times W _ { I } }$ for each of the $N$ samples in the mini-batch. The layer has parameter $w \in R ^ { F \times C \times H _ { K } \times W _ { K } }$ .
|
| 387 |
+
|
| 388 |
+
The data: w,in
|
| 389 |
+
The result: out
|
| 390 |
+
for $h _ { o } = I$ to $H _ { O }$ do for $w _ { o } = I$ to $W _ { O }$ do for $f = I$ to $F$ do for $c = l$ to $C$ do for $h _ { k } = I$ to $H _ { K }$ do for $w _ { k } = { \cal I }$ to $W _ { K }$ do c ∗ = c ; $h ^ { * } = h _ { o } + h _ { k }$ ; $\boldsymbol { w ^ { * } } = \boldsymbol { w _ { o } } + \boldsymbol { w _ { k } }$ ; $\mathbf { o u t } [ f ] [ h _ { o } ] [ w _ { o } ] + = \mathbf { w } [ f ] [ c ] [ h _ { k } ] [ w _ { k } ] \times \mathbf { i n } [ c ^ { * } ] [ h ^ { * } ] [ w ^ { * } ] ) ;$ end end end end end
|
| 391 |
+
end
|
| 392 |
+
|
| 393 |
+
Thus, as shown in algorithm 1, each activation is reused $F \times C \times H _ { K } \times W _ { K }$ times, each weight is reused $N \times C \times \times H _ { K } \times W _ { K }$ times and the total computation is as follow:
|
| 394 |
+
|
| 395 |
+
The first three ‘for’ loops are independent and can be mapped independently to the PEs, whereas the inner three ‘for’ loop generate the partial products. The different sparse accelerators have different ways of mapping the ‘for’ loops spatially over the PEs for maximizing reuse and minimizing the data transfer to and from the DRAM.
|
| 396 |
+
|
| 397 |
+
From now onwards, we are assuming the mapping of the algorithm over the PEs inspired by the SCNN architecture (Parashar et al., 2017). Each PEs is responsible for generating a chunk of output values, as shown in Figure 11b. The control unit is responsible for partitioning and transferring the corresponding input activations to each PE, whereas each PE has the entire sparse weights. Depending on the buffer size, either the entire index offset or only a block of index offset can be computed and distributed to the PEs.
|
| 398 |
+
|
| 399 |
+
Sparse Storage Format: In the forward pass, only weights are sparse. Each filter weights are independently stored in sparse format i.e. weights are sparsified along the dimension $R ^ { C \times { \breve { H _ { K } } } \times W _ { K } }$ . Figure 12a shows the storage of a single filter in a sparse format. The value is stored in 2 vectors; data vector and index vector. The data vectors contain only the non-zero data values, whereas the index vector contains the number of zero values before the corresponding data values.
|
| 400 |
+
|
| 401 |
+

|
| 402 |
+
(a) Storage format for sparse weights
|
| 403 |
+
|
| 404 |
+
Storage Overhead for Index: Bits required for storing weights in dense format: (Assuming each weight value is stored in 32 bits)
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
D e n s e W e i g h t S t o r a g e = F \times C \times H \times W \times 3 2
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
Let the weights have sparsity $S$ . The number of non-zero values present in the data vector is $( 1 - S ) \times$ $F \times C \times H \times W$ , and the number of zero values present in the data vector is $S \times F \times C \times H \times W$ . Assuming the sparsity is uniformly distributed, the number of zero values between 2 consecutive non-zero values is $\begin{array} { r } { \frac { \check { S } \times F \times C \times H \times \check { W } } { ( 1 - S ) \times F \times C \times H \times W } = \frac { S } { 1 - S } } \end{array}$ . Therefore, the number of bits used for encoding the index vector is $\mathit { m a x } ( \lceil \log _ { 2 } \frac { S } { 1 - S } \rceil , 1 )$ bits. Taking the maximum is required when the ratio is less than one. In this case 1 bit indicates whether the next value is zero or not. The bits required for storing weights in the sparse format:
|
| 411 |
+
|
| 412 |
+
$$
|
| 413 |
+
d a t a \ v e c t o r = ( 1 - S ) \times F \times C \times H \times W \times 3 2 \ b i t
|
| 414 |
+
$$
|
| 415 |
+
|
| 416 |
+
$$
|
| 417 |
+
i n d e x \ v e c t o r = ( 1 - S ) \times F \times C \times H \times W \times m a x ( \lceil { \log _ { 2 } \frac { S } { 1 - S } } \rceil , 1 )
|
| 418 |
+
$$
|
| 419 |
+
|
| 420 |
+
$$
|
| 421 |
+
S p a r s e W e i g h t S t o r a g e = ( 1 - S ) \times F \times C \times H \times W \times [ 3 2 + m a x ( \lceil \log _ { 2 } \frac { S } { 1 - S } \rceil , 1 ) ]
|
| 422 |
+
$$
|
| 423 |
+
|
| 424 |
+
Therefore, storage is decreased by a factor of 32(1−S)×[32+max(dlog2 S1−S e,1)] . For 70% sparsity the reduction in storage space is $3 . 1 3 X$ .
|
| 425 |
+
|
| 426 |
+
Index Computation Overhead: The computation performed by each PE is shown in algorithm 1.
|
| 427 |
+
|
| 428 |
+
Algorithm 1: Sparse Forward Pass Computation for a input sample on P Ei(Assuming Stride=1)
|
| 429 |
+
|
| 430 |
+
The data: w, $P E _ { i }$ (in) The result: $P E _ { i }$ (out)
|
| 431 |
+
|
| 432 |
+
//STEP-1: Data-Structure Initialization Phase; $c [ F ] [ l e n ( \mathbf { i n d e x . v e c t o r } ) ] = 0 ;$ h[F ][len(index vector)] = 0; $w [ F ] [ l e n ( { \bf i n d e x . v e c t o r } ) ] = 0 $ ;
|
| 433 |
+
|
| 434 |
+
//STEP-2: Index Offset Calculation Phase;
|
| 435 |
+
for $f = I$ to $F$ do accumulated index $= 0$ ; for ind $= I$ :len(index vector) do accumulated index $; + =$ index vector[ind]; c[f ][ind], h[f ][ind], $w [ f ] [ i n d ] =$ computeIndex(accumulated index); end
|
| 436 |
+
end
|
| 437 |
+
//STEP-3: Computations Phase;
|
| 438 |
+
for $h _ { o } = I$ to $P \bar { E _ { i } } ( H _ { O } )$ do for $w _ { o } = I$ to $P E _ { i } ( W _ { O } )$ do for $f = I$ to $F$ do for ind = 1:len(index vector) do $c ^ { * } = c [ f ] [ i n d ]$ ; $h ^ { * } = h _ { o } + h [ f ] [ i n d ]$ ; $w ^ { * } = w _ { o } + w [ f ] [ i n d ]$ ; $\mathbf { o u t } [ f ] [ h _ { o } ] [ w _ { o } ] + = \mathbf { d a t a . v e c t o r } [ i n d ] \times { P E _ { i } ( \mathbf { i n } ) [ c ^ { * } ] [ h ^ { * } ] [ w ^ { * } ] } ;$ end end end
|
| 439 |
+
end
|
| 440 |
+
|
| 441 |
+
The indexing involved during the Computation Phase is just a base $^ +$ offset addition. The same kind of index computation is present in dense convolution(algorithm 1). Therefore, the only additional indexing computation is during the Indexing Offset Calculation Phase. Let the weights have sparsity $S$ .
|
| 442 |
+
|
| 443 |
+
where $\alpha$ is the overhead of the computeIndex function. computeIndex function is accumulating the current index and calculating the 3 offset $( c [ f ] [ i n d ] , h [ f ] [ i n \dot { d } ] , w [ f ] [ i n d ] )$ . Therefore, the value of $\alpha$ will be approximately around 4.
|
| 444 |
+
|
| 445 |
+
Therefore,
|
| 446 |
+
|
| 447 |
+
$$
|
| 448 |
+
T o t a l ~ O p e r a t i o n ~ f o r ~ S p a r s e ~ C o n v o l u t i o n = S \times F \times C \times H _ { K } \times W _ { K } \times ( \alpha + H _ { O } \times W _ { O } )
|
| 449 |
+
$$
|
| 450 |
+
|
| 451 |
+
Since the $H _ { O } \times W _ { O } > > \alpha$ , the indexing overhead is minimal compared to the benefit obtained by performing sparse convolution.
|
| 452 |
+
|
| 453 |
+
Chip Area Consideration: Considering the chip area (#T ransistors available) is very critical when designing a custom accelerator since it decides the number of the computational units that can be fabricated on a given area. Generally, the number of transistors needed for a dense computation unit is less than that of the sparse computation unit. This is because of the extra chip area required for the indexing, arbitration, and controlling logic. Based on the area value mentioned in the SCNN paper(Parashar et al., 2017), the scaling factor for adjusting the performance of the sparse CNN accelerator is 0.75 i.e., On a given area, we can have almost $1 . 3 3 \times$ more dense computation units compared to sparse computation units.
|
| 454 |
+
|
| 455 |
+
Backward Pass: The computation in the backward pass is the deconvolution operation. Since deconvolution operation is very similar to the convolution operation therefore the overhead of index computation in the backward pass would be of the same order compared to the computation in the forward pass.
|
parse/train/SJgw51HFDr/SJgw51HFDr_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJgw51HFDr/SJgw51HFDr_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SJgw51HFDr/SJgw51HFDr_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkA-IE06W/SkA-IE06W.md
ADDED
|
@@ -0,0 +1,595 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# WHEN IS A CONVOLUTIONAL FILTER EASY TO LEARN?
|
| 2 |
+
|
| 3 |
+
Simon S. Du Carnegie Mellon University ssdu@cs.cmu.edu
|
| 4 |
+
|
| 5 |
+
Jason D. Lee University of Southern California jasonlee@marshall.usc.edu
|
| 6 |
+
|
| 7 |
+
Yuandong Tian Facebook AI Research yuandong@fb.com
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
We analyze the convergence of (stochastic) gradient descent algorithm for learning a convolutional filter with Rectified Linear Unit (ReLU) activation function. Our analysis does not rely on any specific form of the input distribution and our proofs only use the definition of ReLU, in contrast with previous works that are restricted to standard Gaussian input. We show that (stochastic) gradient descent with random initialization can learn the convolutional filter in polynomial time and the convergence rate depends on the smoothness of the input distribution and the closeness of patches. To the best of our knowledge, this is the first recovery guarantee of gradient-based algorithms for convolutional filter on non-Gaussian input distributions. Our theory also justifies the two-stage learning rate strategy in deep neural networks. While our focus is theoretical, we also present experiments that justify our theoretical findings.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Deep convolutional neural networks (CNN) have achieved the state-of-the-art performance in many applications such as computer vision (Krizhevsky et al., 2012), natural language processing (Dauphin et al., 2016) and reinforcement learning applied in classic games like Go (Silver et al., 2016). Despite the highly non-convex nature of the objective function, simple first-order algorithms like stochastic gradient descent and its variants often train such networks successfully. On the other hand, the success of convolutional neural network remains elusive from an optimization perspective.
|
| 16 |
+
|
| 17 |
+
When the input distribution is not constrained, existing results are mostly negative, such as hardness of learning a 3-node neural network (Blum & Rivest, 1989) or a non-overlap convolutional filter (Brutzkus & Globerson, 2017). Recently, Shamir (2016) showed learning a simple one-layer fully connected neural network is hard for some specific input distributions.
|
| 18 |
+
|
| 19 |
+
These negative results suggest that, in order to explain the empirical success of SGD for learning neural networks, stronger assumptions on the input distribution are needed. Recently, a line of research (Tian, 2017; Brutzkus & Globerson, 2017; Li & Yuan, 2017; Soltanolkotabi, 2017; Zhong et al., 2017) assumed the input distribution be standard Gaussian $N ( 0 , { \bf I } )$ and showed (stochastic) gradient descent is able to recover neural networks with ReLU activation in polynomial time.
|
| 20 |
+
|
| 21 |
+
One major issue of these analysis is that they rely on specialized analytic properties of the Gaussian distribution (c.f. Section 1.1) and thus cannot be generalized to the non-Gaussian case, in which real-world distributions fall into. For general input distributions, new techniques are needed.
|
| 22 |
+
|
| 23 |
+
In this paper we consider a simple architecture: a convolution layer, followed by a ReLU activation function, and then average pooling. Formally, we let $\mathbf { x } \in \mathbb { R } ^ { d }$ be an input sample, e.g., an image, we generate $k$ patches from $\mathbf { x }$ , each with size $p$ : $\mathbf { Z } \in \mathbb { R } ^ { p \times k }$ where the $i$ -th column is the $i$ -th patch generated by some known function ${ \bf Z } _ { i } = { \bf Z } _ { i } ( { \bf x } )$ . For a filter with size 2 and stride 1, $\mathbf { Z } _ { i } ( \mathbf { x } )$ is the $i$ -th and $( i + 1 )$ -th pixels. Since for convolutional filters, we only need to focus on the patches instead of the input, in the following definitions and theorems, we will refer $\mathbf { Z }$ as input and let $\mathcal { Z }$ as the distribution of $\mathbf { Z }$ : $( \sigma ( x ) = \operatorname* { m a x } ( x , 0 )$ is the ReLU activation function)
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: (a) Architecture of the network we are considering. Given input $X$ , we extract its patches $\{ \bar { Z } _ { i } \}$ and send them to a shared weight vector w. The outputs are then sent to ReLU and then summed to yield the final label (and its estimation). (b)-(c) Two conditions we proposed for convergence. We want the data to be (b) highly correlated and (c) concentrated more on the direction aligned with the ground truth vector $\mathbf { w } ^ { * }$ .
|
| 27 |
+
|
| 28 |
+
$$
|
| 29 |
+
f ( \mathbf { w } , \mathbf { Z } ) = \frac { 1 } { k } \sum _ { i = 1 } ^ { k } \sigma \left( \mathbf { w } ^ { \top } \mathbf { Z } _ { i } \right) .
|
| 30 |
+
$$
|
| 31 |
+
|
| 32 |
+
See Figure 1 (a) for a graphical illustration. Such architectures have been used as the first layer of many works in computer vision (Lin et al., 2013; Milletari et al., 2016). We address the realizable case, where training data are generated from (1) with some unknown teacher parameter $\mathbf { w } _ { \ast }$ under input distribution $\mathcal { Z }$ . Consider the $\ell _ { 2 }$ loss $\ell ( \mathbf { w } , \mathbf { Z } ) = \frac { 1 } { 2 } \left( f ( \mathbf { w } , \mathbf { Z } ) - f ( \mathbf { w } _ { * } , \mathbf { Z } ) \right) ^ { 2 }$ . We learn by (stochastic) gradient descent, i.e.,
|
| 33 |
+
|
| 34 |
+
$$
|
| 35 |
+
\mathbf { w } _ { t + 1 } = \mathbf { w } _ { t } - \eta _ { t } g ( \mathbf { w } _ { t } )
|
| 36 |
+
$$
|
| 37 |
+
|
| 38 |
+
where $\eta _ { t }$ is the step size which may change over time and $g ( \mathbf { w } _ { t } )$ is a random function where its expectation equals to the population gradient $\begin{array} { r } { \mathbb { E } \left[ g ( \mathbf { w } ) \right] = \mathbb { E } _ { \mathbf { Z } \sim \mathcal { Z } } \left[ \nabla \ell \left( \mathbf { w } , \mathbf { Z } \right) \right] . } \end{array}$ The goal of our analysis is to understand the conditions where $\mathbf { w } \to \mathbf { w } _ { * }$ , if w is optimized under (stochastic) gradient descent.
|
| 39 |
+
|
| 40 |
+
In this setup, our main contributions are as follows:
|
| 41 |
+
|
| 42 |
+
• Learnability of Filters: We show if the input patches are highly correlated (Section 3), i.e., $\theta \left( \mathbf { Z } _ { i } , \mathbf { Z } _ { j } \right) \leq \rho$ for some small $\rho > 0$ , then gradient descent and stochastic gradient descent with random initialization recovers the filter in polynomial time.1 Furthermore, strong correlations imply faster convergence. To the best of our knowledge, this is the first recovery guarantee of randomly initialized gradient-based algorithms for learning filters (even for the simplest one-layer one-neuron network) on non-Gaussian input distribution, answering an open problem in (Tian, 2017).
|
| 43 |
+
|
| 44 |
+
• Distribution-Aware Convergence Rate. We formally establish the connection between the smoothness of the input distribution and the convergence rate for filter weights recovery where the smoothness in our paper is defined as the ratio between the largest and the least eigenvalues of the second moment of the activation region (Section 2). We show that a smoother input distribution leads to faster convergence, and Gaussian distribution is a special case that leads to the tightest bound. This theoretical finding also justifies the twostage learning rate strategy proposed by (He et al., 2016; Szegedy et al., 2017) if the step size is allowed to change over time.
|
| 45 |
+
|
| 46 |
+
# 1.1 RELATED WORKS
|
| 47 |
+
|
| 48 |
+
In recent years, theorists have tried to explain the success of deep learning from different perspectives. From optimization point of view, optimizing neural network is a non-convex optimization problem. Pioneered by Ge et al. (2015), a class of non-convex optimization problems that satisfy strict saddle property can be optimized by perturbed (stochastic) gradient descent in polynomial time (Jin et al., 2017).2 This motivates the research of studying the landscape of neural networks (Soltanolkotabi et al., 2017; Kawaguchi, 2016; Choromanska et al., 2015; Hardt & Ma, 2016; Haeffele & Vidal, 2015; Mei et al., 2016; Freeman & Bruna, 2016; Safran & Shamir, 2016; Zhou & Feng, 2017; Nguyen & Hein, 2017) However, these results cannot be directly applied to analyzing the convergence of gradient-based methods for ReLU activated neural networks.
|
| 49 |
+
|
| 50 |
+
From learning theory point of view, it is well known that training a neural network is hard in the worst cases (Blum & Rivest, 1989; Livni et al., 2014; Sˇ´ıma, 2002; Shalev-Shwartz et al., 2017a;b) and recently, Shamir (2016) showed either “niceness” of the target function or of the input distribution alone is sufficient for optimization algorithms used in practice to succeed. With some additional assumptions, many works tried to design algorithms that provably learn a neural network with polynomial time and sample complexity (Goel et al., 2016; Zhang et al., 2016; 2015; Sedghi & Anandkumar, 2014; Janzamin et al., 2015; Gautier et al., 2016; Goel & Klivans, 2017). However, these algorithms are tailored for certain architecture and cannot explain why (stochastic) gradient based optimization algorithms work well in practice.
|
| 51 |
+
|
| 52 |
+
Focusing on gradient-based algorithms, a line of research analyzed the behavior of (stochastic) gradient descent for Gaussian input distribution. Tian (2017) showed population gradient descent is able to find the true weight vector with random initialization for one-layer one-neuron model. Brutzkus & Globerson (2017) showed population gradient descent recovers the true weights of a convolution filter with non-overlapping input in polynomial time. Li & Yuan (2017) showed SGD can recover the true weights of a one-layer ResNet model with ReLU activation under the assumption that the spectral norm of the true weights is bounded by a small constant. All the methods use explicit formulas for Gaussian input, which enable them to apply trigonometric inequalities to derive the convergence. With the same Gaussian assumption, Soltanolkotabi (2017) shows that the true weights can be exactly recovered by projected gradient descent with enough samples in linear time, if the number of inputs is less than the dimension of the weights.
|
| 53 |
+
|
| 54 |
+
Other approaches combine tensor approaches with assumptions of input distribution. Zhong et al. (2017) proved that with sufficiently good initialization, which can be implemented by tensor method, gradient descent can find the true weights of a 3-layer fully connected neural network. However, their approach works with known input distributions. Soltanolkotabi (2017) used Gaussian width (c.f. Definition 2.2 of (Soltanolkotabi, 2017)) for concentrations and his approach cannot be directly extended to learning a convolutional filter.
|
| 55 |
+
|
| 56 |
+
In this paper, we adopt a different approach that only relies on the definition of ReLU. We show as long as the input distribution satisfies weak smoothness assumptions, we are able to find the true weights by SGD in polynomial time. Using our conclusions, we can justify the effectiveness of large amounts of data (which may eliminate saddle points), two-stage and adaptive learning rates used by He et al. (2016); Szegedy et al. (2017), etc.
|
| 57 |
+
|
| 58 |
+
# 1.2 ORGANIZATION
|
| 59 |
+
|
| 60 |
+
This paper is organized as follows. In Section 2, we analyze the simplest one-layer one-neuron model where we state our key observation and establish the connection between smoothness and convergence rate. In Section 3, we discuss the performance of (stochastic) gradient descent for learning a convolutional filter. We provide empirical illustrations in Section 4 and conclude in Section 5. We place most of our detailed proofs in the Appendix.
|
| 61 |
+
|
| 62 |
+
# 1.3 NOTATIONS
|
| 63 |
+
|
| 64 |
+
Let $\left\| \cdot \right\| _ { 2 }$ denote the Euclidean norm of a finite-dimensional vector. For a matrix A, we use $\lambda _ { \mathrm { m a x } }$ (A) to denote its largest singular value and $\lambda _ { \operatorname* { m i n } } \left( \mathbf { A } \right)$ its smallest singular value. Note if A is a positive semidefinite matrix, $\lambda _ { \operatorname* { m a x } } \left( \mathbf { A } \right)$ and $\lambda _ { \operatorname* { m i n } } \left( \mathbf { A } \right)$ represent the largest and smallest eigenvalues of $\mathbf { A }$ , respectively. Let $O ( \cdot )$ and $\Theta ( \cdot )$ denote the standard Big-O and Big-Theta notations that hide absolute constants. We assume the gradient function is uniformly bounded, i.e., There exists $B > 0$ such that $\| g ( \mathbf { w } ) \| _ { 2 } \leq B$ . This condition is satisfied as long as patches, w and noise are all bounded.
|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 2: (a) The four regions considered in our analysis. $\mathbf { ( b ) }$ Illustration of $L \left( \phi \right) , \gamma ( \phi )$ and $L _ { - \mathbf { w } _ { * } } ( \phi )$ defined in Definition 2.1 and Assumption 2.1.
|
| 68 |
+
|
| 69 |
+
# 2 WARM UP: ANALYZING ONE-LAYER ONE-NEURON MODEL
|
| 70 |
+
|
| 71 |
+
Before diving into the convolutional filter, we first analyze the special case for $k = 1$ , which is equivalent to the one-layer one-neuron architecture. The analysis in this simple case will give us insights for the fully general case. For the ease of presentation, we define following two events and corresponding second moments
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
\begin{array} { r l } & { S ( \mathbf { w } , \mathbf { w } _ { * } ) = \left\{ \mathbf { Z } : \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \geq 0 \right\} , \quad S ( \mathbf { w } , - \mathbf { w } _ { * } ) = \left\{ \mathbf { Z } : \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \leq 0 \right\} , } \\ & { \qquad \mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } = \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) \right\} \right] , \quad \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } = \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ S ( \mathbf { w } , - \mathbf { w } _ { * } ) \right\} \right] . } \end{array}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $\mathbb { I } \left\{ \cdot \right\}$ is the indicator function. Intuitively, $S ( \mathbf { w } , \mathbf { w } _ { * } )$ is the joint activation region of w and $\mathbf { w } _ { \ast }$ and $S ( \mathbf { w } , - \mathbf { w } _ { * } )$ is the joint activation region of w and $- \mathbf { w } _ { \ast }$ . See Figure 2 (a) for the graphical illustration. With some simple algebra we can derive the population gradient.
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\begin{array} { r } { \mathbb { E } \left[ \nabla \ell \left( \mathbf { w } , \mathbf { Z } \right) \right] = \mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \left( \mathbf { w } - \mathbf { w } _ { * } \right) + \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \mathbf { w } . } \end{array}
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
One key observation is we can write the inner product $\left. \nabla _ { \mathbf { w } } \ell \left( \mathbf { w } \right) , \mathbf { w } - \mathbf { w } _ { * } \right.$ as the sum of two non-negative terms (c.f. Lemma A.1). This observation directly leads to the following Theorem 2.1.
|
| 84 |
+
|
| 85 |
+
Theorem 2.1. Suppose for any $\mathbf { w } _ { 1 } , \mathbf { w } _ { 2 }$ with $\theta \left( \mathbf { w } _ { 1 } , \mathbf { w } _ { 2 } \right) < \pi$ , E $\mathbf { \sigma } _ { : } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) \right\} \right] \succ 0$ and the initialization $\mathbf { w } _ { 0 }$ satisfies $\ell \left( \mathbf { w } _ { 0 } \right) < \ell \left( \mathbf { 0 } \right)$ then gradient descent algorithm recovers $\mathbf { w } _ { \ast }$ .
|
| 86 |
+
|
| 87 |
+
The first assumption is about the non-degeneracy of input distribution. For $\theta \left( \mathbf { w } _ { 1 } , \mathbf { w } _ { 2 } \right) < \pi$ , one case that the assumption fails is that the input distribution is supported on a low-dimensional space, or degenerated. The second assumption on the initialization is to ensure that gradient descent does not converge to ${ \bf w } = { \bf 0 }$ , at which the gradient is undefined. This is a general convergence theorem that holds for a wide class of input distribution and initialization points. In particular, it includes Theorem 6 of (Tian, 2017) as a special case. If the input distribution is degenerate, i.e., there are holes in the input space, the gradient descent may stuck around saddle points and we believe more data are needed to facilitate the optimization procedure This is also consistent with empirical evidence in which more data are helpful for optimization.
|
| 88 |
+
|
| 89 |
+
# 2.1 CONVERGENCE RATE OF ONE-LAYER ONE-NEURON MODEL
|
| 90 |
+
|
| 91 |
+
In the previous section we showed if the distribution is regular and the weights are initialized appropriately, gradient descent recovers the true weights when it converges. In practice we also want to know how many iterations are needed. To characterize the convergence rate, we need some quantitative assumptions. We note that different set of assumptions will lead to a different rate and ours is only one possible choice. In this paper we use the following quantities.
|
| 92 |
+
|
| 93 |
+
Definition 2.1 (The Largest/Smallest eigenvalue Values of the Second Moment on Intersection of two Half Spaces). For $\phi \in [ 0 , \pi ]$ , define
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\gamma ( \phi ) = \operatorname* { m i n } _ { \mathbf { w } : \mathcal { L } \mathbf { w } , \mathbf { w } _ { * } = \phi } \lambda _ { \operatorname* { m i n } } \left( \mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \right) , \quad L ( \phi ) = \operatorname* { m a x } _ { \mathbf { w } : \mathcal { L } \mathbf { w } , \mathbf { w } _ { * } = \phi } \lambda _ { \operatorname* { m a x } } \left( \mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \right) ,
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
These two conditions quantitatively characterize the angular smoothness of the input distribution. For a given angle $\phi$ , if the difference between $\gamma ( \phi )$ and $L ( \phi )$ is large then there is one direction has large probability mass and one direction has small probability mass, meaning the input distribution is not smooth. On the other hand, if $\gamma ( \phi )$ and $L ( \phi )$ are close, then all directions have similar probability mass, which means the input distribution is smooth. The smoothest input distributions are rotationally invariant distributions (e.g. standard Gaussian) which have $\gamma ( \phi ) \ : = \ : L ( \phi )$ . For analogy, we can think of $L ( \phi )$ as Lipschitz constant of the gradient and $\gamma ( \phi )$ as the strong convexity parameter in the optimization literature but here we also allow they change with the angle. Also observe that when $\phi = \pi$ , $\gamma ( \phi ) = L ( \phi ) = 0$ because the intersection has measure 0 and both $\gamma ( \phi )$ and $L ( \phi )$ are monotonically decreasing.
|
| 100 |
+
|
| 101 |
+
Our next assumption is on the growth of $\mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } }$ . Note that when $\boldsymbol { \theta } \left( \mathbf { w } , \mathbf { w } _ { * } \right) = 0$ , then ${ \bf A } _ { { \bf w } , - { \bf w } _ { * } } =$ 0 because the intersection between w and $- \mathbf { w } _ { \ast }$ has 0 measure. Also, $\mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } }$ grows as the angle between w and $\mathbf { w } _ { \ast }$ becomes larger.
|
| 102 |
+
|
| 103 |
+
In the following, we assume the operator norm of $\mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } }$ increases smoothly with respect to the angle. The intuition is that as long as input distribution bounded probability density with respect to the angle, the operator norm of $\mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } }$ is bounded. We show in Theorem A.1 that $\beta = 1$ for rotational invariant distribution and in Theorem A.2 that $\beta = p$ for standard Gaussian distribution.
|
| 104 |
+
|
| 105 |
+
Assumption 2.1. We assume there exists $\beta ~ > ~ 0$ that for $0 ~ \leq ~ \phi ~ \leq ~ \pi / 2 ,$ , $L _ { - w _ { * } } ( \phi )$ , $\begin{array} { r } { \operatorname* { m a x } _ { \mathbf { w } , \theta ( \mathbf { w } , \mathbf { w } _ { * } ) \leq \phi } \lambda _ { \operatorname* { m a x } } \left( \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \right) \leq \beta \phi } \end{array}$ .
|
| 106 |
+
|
| 107 |
+
Now we are ready to state the convergence rate.
|
| 108 |
+
|
| 109 |
+
Theorem 2.2. Suppose the initialization $\mathbf { w } _ { 0 }$ satisfies $\left\| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \right\| _ { 2 } ~ < ~ \left\| \mathbf { w } _ { * } \right\| _ { 2 }$ . Denote $\phi _ { t } ~ =$ $\begin{array} { r } { \arcsin \left( \frac { \| \mathbf { w _ { t } } - \mathbf { w _ { * } } \| _ { 2 } } { \| \mathbf { w _ { * } } \| _ { 2 } } \right) } \end{array}$ then if step size is set as $\begin{array} { r } { 0 \leq \eta _ { t } \leq \operatorname* { m i n } _ { 0 \leq \phi \leq \phi _ { t } } \frac { \gamma ( \phi ) } { 2 ( L ( \phi ) + 4 \beta ) ^ { 2 } } } \end{array}$ , we have for $t = 1 , 2 , \dots$
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } \leq \left( 1 - \frac { \eta _ { t } \gamma \left( \phi _ { t } \right) } { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } .
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
Note both $\gamma ( \phi )$ and $L ( \phi )$ increases as $\phi$ decreases so we can choose a constant step size $\begin{array} { r } { \eta _ { t } \ = \ \Theta \left( \frac { \gamma ( \phi _ { 0 } ) } { ( L ( 0 ) + \beta ) ^ { 2 } } \right) } \end{array}$ This theorem implies that we can find the $\epsilon$ -close solution of $\mathbf { w } _ { \ast }$ in $\begin{array} { r } { O \left( \frac { ( L ( 0 ) + \beta ) ^ { 2 } } { \gamma ^ { 2 } ( \phi _ { 0 } ) } \log \left( \frac { 1 } { \epsilon } \right) \right) } \end{array}$ iterations. It also suggests a direct relation between the smoothness of the distribution and the convergence rate. For smooth distribution where $\gamma ( \phi )$ and $L ( \phi )$ are close and $\beta$ is small then $\frac { ( L ( 0 ) + \beta ) ^ { 2 } } { \gamma ^ { 2 } ( \phi _ { 0 } ) }$ is relatively small and we need fewer iterations. On the other hand, if $L ( \phi )$ or $\beta$ is much larger than $\gamma ( \phi )$ , we will need more iterations. We verify this intuition in Section 4.
|
| 116 |
+
|
| 117 |
+
If we are able to choose the step sizes adaptively $\begin{array} { r } { \eta _ { t } \ = \ \Theta \left( \frac { \gamma ( \phi _ { t } ) } { ( L ( \phi _ { t } ) + \beta ) ^ { 2 } } \right) } \end{array}$ γ(φt)(L(φt)+β)2 , like using methods proposed by Lin & Xiao (2014), we may improve the computational complexity to $\begin{array} { r } { O \left( \operatorname* { m a x } _ { \phi \leq \phi _ { 0 } } \frac { \left( L \left( \phi \right) + \beta \right) ^ { 2 } } { \gamma ^ { 2 } \left( \phi \right) } \log \left( \frac { 1 } { \epsilon } \right) \right) , } \end{array}$ 0 (L(φ)+β)2γ2(φ) log 1 . This justifies the use of two-stage learning rate strategy proposed by He et al. (2016); Szegedy et al. (2017) where at the beginning we need to choose learning to be small because $\frac { \gamma ( \phi _ { 0 } ) } { 2 ( L ( \phi _ { 0 } ) + 2 \beta ) ^ { 2 } }$ is small and later we can choose a large learning rate because as the angle between $\mathbf { w } _ { t }$ and $\mathbf { w } _ { \ast }$ becomes smaller, $\frac { \gamma ( \phi _ { t } ) } { 2 ( L ( \phi _ { t } ) + 2 \beta ) ^ { 2 } }$ becomes bigger.
|
| 118 |
+
|
| 119 |
+
The theorem requires the initialization satisfying $\left\| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \right\| _ { 2 } < \left\| \mathbf { w } _ { * } \right\| _ { 2 }$ , which can be achieved by random initialization with constant success probability. See Section 3.2 for a detailed discussion.
|
| 120 |
+
|
| 121 |
+
# 3 MAIN RESULTS FOR LEARNING A CONVOLUTIONAL FILTER
|
| 122 |
+
|
| 123 |
+
In this section we generalize ideas from the previous section to analyze the convolutional filter. First, for given w and $\mathbf { w } _ { \ast }$ we define four events that divide the input space of each patch $\mathbf { Z } _ { i }$ . Each event
|
| 124 |
+
|
| 125 |
+
corresponds to a different activation region induced by w and $\mathbf { w } _ { \ast }$ , similar to (3).
|
| 126 |
+
|
| 127 |
+
$$
|
| 128 |
+
\begin{array} { r } { { \cal S } ( { \bf w } , { \bf w } _ { \ast } ) _ { i } = \left\{ { \bf Z } _ { i } : { \bf w } ^ { \top } { \bf Z } _ { i } \geq 0 , { \bf w } _ { \ast } ^ { \top } { \bf Z } _ { i } \geq 0 \right\} , \quad { \cal S } ( { \bf w } , - { \bf w } _ { \ast } ) _ { i } = \left\{ { \bf Z } _ { i } : { \bf w } ^ { \top } { \bf Z } _ { i } \geq 0 , { \bf w } _ { \ast } ^ { \top } { \bf Z } _ { i } \leq 0 \right\} , } \\ { \left. \right\} ( - { \bf w } , - { \bf w } _ { \ast } ) _ { i } = \left\{ { \bf Z } _ { i } : { \bf w } ^ { \top } { \bf Z } _ { i } \leq 0 , { \bf w } _ { \ast } ^ { \top } { \bf Z } _ { i } \leq 0 \right\} , \quad { \cal S } ( - { \bf w } , { \bf w } _ { \ast } ) _ { i } = \left\{ { \bf Z } _ { i } : { \bf w } ^ { \top } { \bf Z } _ { i } \leq 0 , { \bf w } _ { \ast } ^ { \top } { \bf Z } _ { i } \geq 0 \right\} . } \end{array}
|
| 129 |
+
$$
|
| 130 |
+
|
| 131 |
+
Please check Figure 2 (a) again for illustration. For the ease of presentation we also define the average over all patches in each region
|
| 132 |
+
|
| 133 |
+
$$
|
| 134 |
+
\begin{array} { r l r } { { \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } = \frac { 1 } { k } \sum _ { i = 1 } ^ { k } \mathbf { Z } _ { i } \mathbb { I } \{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} , \mathbf { Z } _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) } = \frac { 1 } { k } \sum _ { i = 1 } ^ { k } \mathbf { Z } _ { i } \mathbb { I } \{ S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { i } \} , } } \\ & { } & { \mathbf { Z } _ { S ( - \mathbf { w } , \mathbf { w } _ { * } ) } = \frac { 1 } { k } \sum _ { i = 1 } ^ { k } \mathbf { Z } _ { i } \mathbb { I } \{ S ( - \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} . } \end{array}
|
| 135 |
+
$$
|
| 136 |
+
|
| 137 |
+
Next, we generalize the smoothness conditions analogue to Definition 2.1 and Assumption 2.1. Here the smoothness is defined over the average of patches.
|
| 138 |
+
|
| 139 |
+
Assumption 3.1. For $\phi \in [ 0 , \pi ]$ , define
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\begin{array} { r } { \gamma ( \phi ) = \underset { \mathbf { w } : \theta ( \mathbf { w } , \mathbf { w } _ { * } ) = \phi } { \operatorname* { m i n } } \lambda _ { \operatorname* { m i n } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } ^ { \top } \right] \right) , } \\ { L ( \phi ) = \underset { \mathbf { w } : \theta ( \mathbf { w } , \mathbf { w } _ { * } ) = \phi } { \operatorname* { m a x } } \lambda _ { \operatorname* { m a x } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } ^ { \top } \right] \right) . } \end{array}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
We assume for all $0 \leq \phi \leq \pi / 2 , \operatorname* { m a x } _ { \mathbf { w } : \theta ( \mathbf { w } , \mathbf { w } _ { * } ) = \phi } \lambda _ { \operatorname* { m a x } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) } ^ { \top } \right] \right) \leq \beta \phi$ for some $\beta > 0$ .
|
| 146 |
+
|
| 147 |
+
The main difference between the simple one-layer one-neuron network and the convolution filter is two patches may appear in different regions. For a given sample, there may exists patch $\mathbf { Z } _ { i }$ and $\mathbf { Z } _ { j }$ such that $\mathbf { Z } _ { i } \in S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i }$ and $\mathbf Z _ { j } \in \bar { S } ( \mathbf w , - \mathbf w _ { * } ) _ { j }$ and their interaction plays an important role in the convergence of (stochastic) gradient descent. Here we assume the second moment of this interaction, i.e., cross-covariance, also grows smoothly with respect to the angle.
|
| 148 |
+
|
| 149 |
+
Assumption 3.2. We assume there exists $L _ { c r o s s } > 0$ such that
|
| 150 |
+
|
| 151 |
+
$$
|
| 152 |
+
\begin{array} { r l r } { \displaystyle \operatorname* { m a x } _ { \mathbf { w } : \boldsymbol { \theta } ( \mathbf { w } , \mathbf { w } _ { * } ) \leq \boldsymbol { \phi } } \lambda _ { \operatorname* { m a x } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) } ^ { \top } \right] \right) + \lambda _ { \operatorname* { m a x } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( - \mathbf { w } , \mathbf { w } _ { * } ) } ^ { \top } \right] \right) } & \\ & { } & { + \lambda _ { \operatorname* { m a x } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( - \mathbf { w } , \mathbf { w } _ { * } ) } ^ { \top } \right] \right) \leq L _ { c r o s s } \boldsymbol { \phi } . } \end{array}
|
| 153 |
+
$$
|
| 154 |
+
|
| 155 |
+
First note if $\phi = 0$ , then ${ \mathbf { Z } } _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) }$ and ${ \mathbf { Z } } _ { S ( - \mathbf { w } , \mathbf { w } _ { * } ) }$ has measure 0 and this assumption models the growth of cross-covariance. Next note this $L _ { c r o s s }$ represents the closeness of patches. If $\mathbf { Z } _ { i }$ and $\mathbf { Z } _ { j }$ are very similar, then the joint probability density of $\mathbf Z _ { i } \in S ( \mathbf w , \mathbf w _ { * } ) _ { i }$ and $\mathbf Z _ { j } \in S ( \mathbf w , - \mathbf w _ { * } ) _ { j }$ is small which implies $L _ { c r o s s }$ is small. In the extreme setting, $\mathbf { Z } _ { 1 } = \ldots = \mathbf { Z } _ { k }$ , we have $L _ { \mathrm { c r o s s } } \doteq 0$ because in this case the events $\{ \mathbf { Z } _ { i } \in S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} \cap \{ \mathbf { Z } _ { j } \in S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } \}$ , $\{ \mathbf { Z } _ { i } \in S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} \cap$ $\{ \mathbf { Z } _ { j } \in S ( - \mathbf { w } , \mathbf { w } _ { * } ) _ { j } \}$ and $\{ \mathbf { Z } _ { i } \in S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { i } \} \cap \{ \mathbf { Z } _ { j } \in S ( - \mathbf { w } , \mathbf { w } _ { * } ) _ { j } \}$ all have measure 0.
|
| 156 |
+
|
| 157 |
+
Now we are ready to present our result on learning a convolutional filter by gradient descent.
|
| 158 |
+
|
| 159 |
+
Theorem 3.1. If the initialization satisfies $\begin{array} { r l r } { \| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \| _ { 2 } } & { { } < } & { \| \mathbf { w } _ { * } \| _ { 2 } } \end{array}$ and denote $\begin{array} { r l } { \phi _ { t } } & { { } = } \end{array}$ $\begin{array} { r } { \arcsin \left( \frac { \| \mathbf { w } _ { t } - \mathbf { w } _ { * } \| _ { 2 } } { \| \mathbf { w } _ { * } \| _ { 2 } } \right) } \end{array}$ tisfies , we ha $\begin{array} { r l r } { \gamma ( \phi _ { 0 } ) } & { { } > } & { 6 L _ { \mathrm { c r o s s } } } \end{array}$ $i f$ $\eta _ { t }$ ≤ $\begin{array} { r } { \operatorname* { m i n } _ { 0 \leq \phi \leq \phi _ { t } } \frac { \gamma ( \phi ) - 6 L _ { \mathrm { c r o s s } } } { 2 ( L ( \phi ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta ) ^ { 2 } } } \end{array}$ $t = 1 , 2 , \dots$ $\begin{array} { r } { \phi _ { t } \triangleq \arcsin \left( \frac { \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } } { \left\| \mathbf { w } _ { * } \right\| _ { 2 } } \right) } \end{array}$
|
| 160 |
+
|
| 161 |
+
$$
|
| 162 |
+
\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } \leq \left( 1 - \frac { \eta ( \gamma ( \phi _ { t } ) - 6 L _ { \mathrm { c r o s s } } ) } { 2 } \right) \| \mathbf { w } _ { t } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 }
|
| 163 |
+
$$
|
| 164 |
+
|
| 165 |
+
Our theorem suggests if the initialization satisfies $\gamma ( \phi _ { 0 } ) ~ > ~ 6 L _ { \mathrm { c r o s s } }$ , we obtain linear convergence rate. In Section 3.1, we give a concrete example showing closeness of patches implies large $\gamma ( \phi )$ and small $L _ { \mathrm { c r o s s } }$ . Similar to Theorem 2.2, if the step size is chosen so that $\eta _ { t } =$ find the γ(φ0)−6Lcross(LS(w,w∗)(0)+10Lcross+4β)2 , in O γ(φ0)−6LcrossLS(w,w∗)(0)+10Lcross+4β 2 log 1 iterations, we can
|
| 166 |
+
|
| 167 |
+
In practice,we never get a true population gradient but only stochastic gradient $g ( \mathbf { w } )$ (c.f. Equation (2)). The following theorem shows SGD also recovers the underlying filter.
|
| 168 |
+
|
| 169 |
+
Theorem 3.2. Let $\phi _ { * } ~ = ~ \mathrm { a r g m a x } _ { \phi } \gamma ( \phi ) ~ \ge ~ 6 L _ { \mathrm { c r o s s } }$ . Denote ${ r _ { 0 } } ~ = ~ \left\| { \bf w } _ { 0 } - { \bf w } _ { * } \right\| _ { 2 } , ~ \phi _ { 0 } ~ =$ $\arcsin { \left( \frac { r _ { 0 } } { \left\| \mathbf { w } _ { * } \right\| _ { 2 } } \right) }$ $\begin{array} { r } { \phi _ { 1 } = \frac { \phi _ { * } + \phi _ { 0 } } { 2 } } \end{array}$ $\epsilon$ $\begin{array} { r } { \eta _ { t } = \Theta \left( \frac { \epsilon ^ { 2 } ( \gamma ( \phi _ { 1 } ) - 6 L _ { \mathrm { c r o s s } } ) ^ { 2 } \| \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } } { B ^ { 2 } } \right) } \end{array}$ , then we have in T = O B22(γ(φ1)−6Lcross)2kw∗k22 l
|
| 170 |
+
least $1 - \delta$ we have $\left\| \mathbf { w } _ { T } - \mathbf { w } _ { * } \right\| \leq \epsilon \left\| \mathbf { w } _ { * } \right\| _ { 2 }$ .
|
| 171 |
+
|
| 172 |
+
Unlike the vanilla gradient descent case, here the convergence rate depends on $\phi _ { 1 }$ instead of $\phi _ { 0 }$ . This is because of the randomness in SGD and we need a more robust initialization. We choose $\phi _ { 1 }$ to be the average of $\phi _ { 0 }$ and $\phi _ { * }$ for the ease of presentation. As will be apparent in the proof we only require $\phi _ { 0 }$ not very close to $\phi _ { * }$ . The proof relies on constructing a martingale and use Azuma-Hoeffding inequality and this idea has been previously used by Ge et al. (2015).
|
| 173 |
+
|
| 174 |
+
3.1 WHAT DISTRIBUTION IS EASY FOR SGD TO LEARN A CONVOLUTIONAL FILTER?
|
| 175 |
+
|
| 176 |
+
Different from One-Layer One-Neuron model, here we also requires the Lipschitz constant for closeness $L _ { \mathrm { c r o s s } }$ to be relatively small and $\gamma ( \phi _ { 0 } )$ to be relatively large. A natural question is: What input distributions satisfy this condition?
|
| 177 |
+
|
| 178 |
+
Here we give an example. We show if (1) patches are close to each other (2) the input distribution has small probability mass around the decision boundary then the assumption in Theorem 3.1 is satisfied. See Figure 1 (b)-(c) for the graphical illustrations.
|
| 179 |
+
|
| 180 |
+
Theorem 3.3. Denote $\begin{array} { r } { { \bf Z } _ { a v g } = \frac { 1 } { k } \sum _ { i = 1 } ^ { k } { \bf Z } _ { i } } \end{array}$ . Suppose all patches have unit norm 3 and for all for all $i , \theta \left( { \bf Z } _ { i } , { \bf Z } _ { a v g } \right) \leq \rho .$ . Further assume there exists $L \geq 0$ such that for any $\phi \le \rho$ and for all $\mathbf { Z } _ { i }$
|
| 181 |
+
|
| 182 |
+
$$
|
| 183 |
+
\mathbb { P } \left[ \theta \left( \mathbf { Z } _ { i } , \mathbf { w } _ { * } \right) \in \left[ \frac { \pi } { 2 } - \phi , \frac { \pi } { 2 } + \phi \right] \right] \leq \mu \phi , \quad \mathbb { P } \left[ \theta \left( \mathbf { Z } _ { i } , \mathbf { w } _ { * } \right) \in - \left[ \frac { \pi } { 2 } - \phi , - \frac { \pi } { 2 } + \phi \right] \right] \leq \mu \phi ,
|
| 184 |
+
$$
|
| 185 |
+
|
| 186 |
+
then we have
|
| 187 |
+
|
| 188 |
+
$$
|
| 189 |
+
\begin{array} { c } { \gamma \left( \phi _ { 0 } \right) \geq \gamma _ { a v g } \left( \phi _ { 0 } \right) - 4 \left( 1 - \cos \rho \right) a n d L _ { \mathrm { c r o s s } } \leq 3 \mu . } \\ { { \mathrm { } } } \\ { \gamma _ { a v g } ( \phi _ { 0 } ) = \sigma _ { \operatorname* { m i n } } \left( \mathbb { E } \left[ { \mathbf Z } { \mathbf Z } ^ { \top } \mathbb { I } \left\{ { \mathbf w } _ { 0 } ^ { \top } { \mathbf Z } \geq 0 , { \mathbf w } _ { * } ^ { \top } { \mathbf Z } \geq 0 \right\} \right] \right) , a n a l o g u e t o D e f i n i t i o n 2 . I . } \end{array}
|
| 190 |
+
$$
|
| 191 |
+
|
| 192 |
+
Several comments are in sequel. We view $\rho$ as a quantitative measure of the closeness between different patches, i.e., $\rho$ small means they are similar. This lower bound is monotonically decreasing as a function of $\rho$ and note when $\rho = 0$ , $\dot { \sigma } _ { \mathrm { m i n } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) } ^ { \top } \right] \right) = \gamma _ { a v g } ( \phi _ { 0 } )$ which recovers Definition 2.1.
|
| 193 |
+
|
| 194 |
+
For the upper bond on $L _ { \mathrm { c r o s s } }$ , $\mu$ represents the upper bound of the probability density around the decision boundary. For example if $\mathbb { P } \left[ \theta \left( \mathbf { Z } _ { i } , \mathbf { w } _ { * } \right) ^ { \star } \in \left[ \frac { \pi } { 2 } - \phi , \frac { \pi } { 2 } + \phi \right] \right] \propto \phi ^ { 2 }$ , then for $\phi$ in a small neighborhood around $\pi / 2$ , say radius $\epsilon$ , we have $\begin{array} { r } { \mathbb { P } \left[ \theta \left( \mathbf { Z } _ { i } , \mathbf { w } _ { * } \right) \in \left[ \frac { \pi } { 2 } - \phi , \frac { \pi } { 2 } + \phi \right] \right] \lesssim \epsilon \phi } \end{array}$ . This assumption is usually satisfied in real world examples like images because the image patches are not usually close to the decision boundary. For example, in computer vision, the local image patches often form clusters and is not evenly distributed over the appearance space. Therefore, if we use linear classifier to separate their cluster centers from the rest of the clusters, near the decision boundary the probability mass should be very low.
|
| 195 |
+
|
| 196 |
+
# 3.2 THE POWER OF RANDOM INITIALIZATION
|
| 197 |
+
|
| 198 |
+
For one-layer one-neuron model, we need initialization $\left\| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \right\| _ { 2 } < \left\| \mathbf { w } _ { * } \right\| _ { 2 }$ and for the convolution filter, we need a stronger initialization $\lVert \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \rVert _ { 2 } < \lVert \mathbf { w } _ { * } \rVert _ { 2 } \cos \left( \phi _ { * } \right)$ . The following theorem
|
| 199 |
+
|
| 200 |
+
shows with uniformly random initialization we have constant probability to obtain a good initialization. Note with this theorem at hand, we can boost the success probability to arbitrary close to 1 by random restarts. The proof is similar to (Tian, 2017).
|
| 201 |
+
|
| 202 |
+
Theorem 3.4. If we uniformly sample $\mathbf { w } _ { 0 }$ from a $p$ -dimensional ball with radius $\alpha \Vert \mathbf { w } _ { * } \Vert$ so that $\alpha \leq \sqrt { \frac { 1 } { 2 \pi p } }$ , then with probability at least $\begin{array} { r } { { \frac { 1 } { 2 } } - { \sqrt { \frac { \pi p } { 2 } } } \alpha } \end{array}$ , we have $\| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \| _ { 2 } \leq \sqrt { 1 - \alpha ^ { 2 } } \| \mathbf { w } _ { * } \|$ .
|
| 203 |
+
|
| 204 |
+
To apply this general initialization theorem to our convolution filter case, we can choose $\alpha = \cos \phi _ { * }$ Therefore, with some simple algebra we have the following corollary.
|
| 205 |
+
|
| 206 |
+
Corollary 3.1. Suppose $\begin{array} { r } { \cos \left( \phi _ { * } \right) < \frac { 1 } { \sqrt { 8 \pi p } } } \end{array}$ , then $i f \mathbf { w } _ { 0 }$ is uniformly sampled from a ball with center 0 and radius $\left\| \mathbf { w } _ { * } \right\| \cos \left( \phi _ { * } \right)$ , we have with probability at least $\begin{array} { r } { \frac { 1 } { 2 } - \cos \left( \phi _ { * } \right) \sqrt { \frac { \pi p } { 2 } } > \frac { 1 } { 4 } } \end{array}$ .
|
| 207 |
+
|
| 208 |
+
The assumption of this corollary is satisfied if the patches are close to each other as discussed in the previous section.
|
| 209 |
+
|
| 210 |
+
# 4 EXPERIMENTS
|
| 211 |
+
|
| 212 |
+
In this section we use simulations to verify our theoretical findings. We first test how the smoothness affect the convergence rate in one-layer one-neuron model described in Section 2 To construct input distribution with different $L ( \phi ) , \gamma ( \phi )$ and $\beta$ (c.f. Definition 2.1 and Assumption 2.1), we fix the patch to have unit norm and use a mixture of truncated Gaussian distribution to model on the angle around $\mathbf { w } _ { \ast }$ and around the $- \mathbf { w } _ { \ast }$ Specifically, the probability density of $\angle \mathbf { Z } , \mathbf { w } _ { \ast }$ is sampled from $\begin{array} { r } { \frac { 1 } { 2 } N ( 0 , \sigma ) \mathbb { I } _ { [ - \pi / 2 , \pi / 2 ] } + \frac { 1 } { 2 } N ( - \pi , \sigma ) \mathbb { \hat { I } } _ { [ - \pi / 2 , \pi / 2 ] } } \end{array}$ . Note by definitions of $L ( \phi )$ and $\gamma ( \phi )$ if $\sigma 0$ the probability mass is centered around $\mathbf { w } _ { \ast }$ , so the distribution is very spiky and $L ( \phi ) / \gamma ( \phi )$ and $\beta$ will be large. On the other hand, if $\sigma \infty$ , then input distribution is close to the rotation invariant distribution and $L ( \phi ) / \gamma ( \phi )$ and $\beta$ will be small. Figure 3a verifies our prediction where we fix the initialization and step size.
|
| 213 |
+
|
| 214 |
+
Next we test how the closeness of patches affect the convergence rate in the convolution setting. We first generate a single patch $\widetilde { \mathbf { Z } }$ using the above model with $\sigma = 1$ , then generate each unit norm $\mathbf { Z } _ { i }$ whose angle with $\bar { \bf z }$ , $\angle \mathbf { Z } _ { i } , \tilde { \mathbf { Z } }$ is sampled from $\mathcal { L } \mathbf { Z } _ { i } , \widetilde { \mathbf { Z } } \sim N ( 0 , \sigma _ { 2 } ) \mathbb { I } _ { [ - \pi , \pi ) }$ . Figure 3b shows as variance between patches becomes smaller, we obtain faster convergence rate, which coincides with Theorem 3.1.
|
| 215 |
+
|
| 216 |
+
We also test whether SGD can learn a filter on real world data. Here we choose MNIST data and generate labels using two filters. One is random filter where each entry is sampled from a standard Gaussian distribution (Figure 4a) and the other is a Gabor filter (Figure 4b). Figure 3a and Figure 3c show convergence rates of SGD with different initializations. Here, better initializations give faster rates, which coincides our theory. Note that here we report the relative loss, logarithm of squared error divided by the square of mean of data points instead of the difference between learned filter and true filter because we found SGD often cannot converge to the exact filter but rather a filter with near zero loss. We believe this is because the data are approximately lying in a low dimensional manifold in which the learned filter and the true filter are equivalent. To justify this conjecture, we try to interpolate the learned filter and the true filter linearly and the result filter has similar low loss (c.f. Figure 5). Lastly, we visualize the true filters and the learned filters in Figure 4 and we can see that the they have similar patterns.
|
| 217 |
+
|
| 218 |
+
# 5 CONCLUSIONS AND FUTURE WORKS
|
| 219 |
+
|
| 220 |
+
In this paper we provide the first recovery guarantee of (stochastic) gradient descent algorithm with random initialization for learning a convolution filter when the input distribution is not Gaussian. Our analyses only used the definition of ReLU and some mild structural assumptions on the input distribution. Here we list some future directions.
|
| 221 |
+
|
| 222 |
+
One possibility is to extend our result to deeper and wider architectures. Even for two-layer fullyconnected network, the convergence of (stochastic) gradient descent with random initialization is not known. Existing results either requires sufficiently good initialization (Zhong et al., 2017) or relies on special architecture (Li & Yuan, 2017). However, we believe the insights from this paper is helpful to understand the behaviors of gradient-based algorithms in these settings.
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
Figure 3: Convergence rates of SGD (a) with different smoothness where larger $\sigma$ is smoother; (b) with different closeness of patches where smaller $\sigma _ { 2 }$ is closer; (c) for a learning a random filter with different initialization on MNIST data; ${ \bf \Pi } ( { \bf d } )$ for a learning a Gabor filter with different initialization on MNIST data.
|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
Figure 4: Visualization of true and learned filters. For each pair, the left one is the underlying truth and the right is the filter learned by SGD.
|
| 229 |
+
|
| 230 |
+
Another direction is to consider the agnostic setting, where the label is not equal to the output of a neural network. This will lead to different dynamics of (stochastic) gradient descent and we may need to analyze the robustness of the optimization procedures. This problem is also related to the expressiveness of the neural network (Raghu et al., 2016) where if the underlying function is not equal bot is close to a neural network. We believe our analysis can be extend to this setting.
|
| 231 |
+
|
| 232 |
+
# REFERENCES
|
| 233 |
+
|
| 234 |
+
Avrim Blum and Ronald L Rivest. Training a 3-node neural network is np-complete. In Advances in neural information processing systems, pp. 494–501, 1989.
|
| 235 |
+
|
| 236 |
+
Alon Brutzkus and Amir Globerson. Globally optimal gradient descent for a convnet with gaussian inputs. arXiv preprint arXiv:1702.07966, 2017.
|
| 237 |
+
|
| 238 |
+
Anna Choromanska, Mikael Henaff, Michael Mathieu, Gerard Ben Arous, and Yann LeCun. The´ loss surfaces of multilayer networks. In Artificial Intelligence and Statistics, pp. 192–204, 2015.
|
| 239 |
+
|
| 240 |
+
Yann N Dauphin, Angela Fan, Michael Auli, and David Grangier. Language modeling with gated convolutional networks. arXiv preprint arXiv:1612.08083, 2016.
|
| 241 |
+
|
| 242 |
+
Simon S Du, Chi Jin, Jason D Lee, Michael I Jordan, Barnabas Poczos, and Aarti Singh. Gradient descent can take exponential time to escape saddle points. arXiv preprint arXiv:1705.10412, 2017.
|
| 243 |
+
|
| 244 |
+
C Daniel Freeman and Joan Bruna. Topology and geometry of half-rectified network optimization. arXiv preprint arXiv:1611.01540, 2016.
|
| 245 |
+
|
| 246 |
+
Antoine Gautier, Quynh N Nguyen, and Matthias Hein. Globally optimal training of generalized polynomial neural networks with nonlinear spectral methods. In Advances in Neural Information Processing Systems, pp. 1687–1695, 2016.
|
| 247 |
+
|
| 248 |
+
Rong Ge, Furong Huang, Chi Jin, and Yang Yuan. Escaping from saddle pointsonline stochastic gradient for tensor decomposition. In Proceedings of The 28th Conference on Learning Theory, pp. 797–842, 2015.
|
| 249 |
+
|
| 250 |
+
Surbhi Goel and Adam Klivans. Learning depth-three neural networks in polynomial time. arXiv preprint arXiv:1709.06010, 2017.
|
| 251 |
+
|
| 252 |
+
Surbhi Goel, Varun Kanade, Adam Klivans, and Justin Thaler. Reliably learning the relu in polynomial time. arXiv preprint arXiv:1611.10258, 2016.
|
| 253 |
+
|
| 254 |
+
Benjamin D Haeffele and Rene Vidal. Global optimality in tensor factorization, deep learning, and ´ beyond. arXiv preprint arXiv:1506.07540, 2015.
|
| 255 |
+
|
| 256 |
+
Moritz Hardt and Tengyu Ma. Identity matters in deep learning. arXiv preprint arXiv:1611.04231, 2016.
|
| 257 |
+
|
| 258 |
+
Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
|
| 259 |
+
|
| 260 |
+
Majid Janzamin, Hanie Sedghi, and Anima Anandkumar. Beating the perils of non-convexity: Guaranteed training of neural networks using tensor methods. arXiv preprint arXiv:1506.08473, 2015.
|
| 261 |
+
|
| 262 |
+
Chi Jin, Rong Ge, Praneeth Netrapalli, Sham M Kakade, and Michael I Jordan. How to escape saddle points efficiently. arXiv preprint arXiv:1703.00887, 2017.
|
| 263 |
+
|
| 264 |
+
Kenji Kawaguchi. Deep learning without poor local minima. In Advances in Neural Information Processing Systems, pp. 586–594, 2016.
|
| 265 |
+
|
| 266 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 267 |
+
|
| 268 |
+
Jason D Lee, Max Simchowitz, Michael I Jordan, and Benjamin Recht. Gradient descent only converges to minimizers. In Conference on Learning Theory, pp. 1246–1257, 2016.
|
| 269 |
+
|
| 270 |
+
Yuanzhi Li and Yang Yuan. Convergence analysis of two-layer neural networks with relu activation. arXiv preprint arXiv:1705.09886, 2017.
|
| 271 |
+
|
| 272 |
+
Min Lin, Qiang Chen, and Shuicheng Yan. Network in network. arXiv preprint arXiv:1312.4400, 2013.
|
| 273 |
+
|
| 274 |
+
Qihang Lin and Lin Xiao. An adaptive accelerated proximal gradient method and its homotopy continuation for sparse optimization. In International Conference on Machine Learning, pp. 73– 81, 2014.
|
| 275 |
+
|
| 276 |
+
Roi Livni, Shai Shalev-Shwartz, and Ohad Shamir. On the computational efficiency of training neural networks. In Advances in Neural Information Processing Systems, pp. 855–863, 2014.
|
| 277 |
+
|
| 278 |
+
Song Mei, Yu Bai, and Andrea Montanari. The landscape of empirical risk for non-convex losses. arXiv preprint arXiv:1607.06534, 2016.
|
| 279 |
+
|
| 280 |
+
Fausto Milletari, Nassir Navab, and Seyed-Ahmad Ahmadi. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In 3D Vision (3DV), 2016 Fourth International Conference on, pp. 565–571. IEEE, 2016.
|
| 281 |
+
|
| 282 |
+
Quynh Nguyen and Matthias Hein. The loss surface of deep and wide neural networks. arXiv preprint arXiv:1704.08045, 2017.
|
| 283 |
+
|
| 284 |
+
Maithra Raghu, Ben Poole, Jon Kleinberg, Surya Ganguli, and Jascha Sohl-Dickstein. On the expressive power of deep neural networks. arXiv preprint arXiv:1606.05336, 2016.
|
| 285 |
+
|
| 286 |
+
Itay Safran and Ohad Shamir. On the quality of the initial basin in overspecified neural networks. In International Conference on Machine Learning, pp. 774–782, 2016.
|
| 287 |
+
|
| 288 |
+
Hanie Sedghi and Anima Anandkumar. Provable methods for training neural networks with sparse connectivity. arXiv preprint arXiv:1412.2693, 2014.
|
| 289 |
+
|
| 290 |
+
Shai Shalev-Shwartz, Ohad Shamir, and Shaked Shammah. Failures of gradient-based deep learning. In International Conference on Machine Learning, pp. 3067–3075, 2017a.
|
| 291 |
+
|
| 292 |
+
Shai Shalev-Shwartz, Ohad Shamir, and Shaked Shammah. Weight sharing is crucial to succesful optimization. arXiv preprint arXiv:1706.00687, 2017b.
|
| 293 |
+
|
| 294 |
+
Ohad Shamir. Distribution-specific hardness of learning neural networks. arXiv preprint arXiv:1609.01037, 2016.
|
| 295 |
+
|
| 296 |
+
David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016.
|
| 297 |
+
|
| 298 |
+
Jiˇr´ı Sˇ´ıma. Training a single sigmoidal neuron is hard. Neural Computation, 14(11):2709–2728, 2002.
|
| 299 |
+
|
| 300 |
+
Mahdi Soltanolkotabi. Learning relus via gradient descent. arXiv preprint arXiv:1705.04591, 2017.
|
| 301 |
+
|
| 302 |
+
Mahdi Soltanolkotabi, Adel Javanmard, and Jason D Lee. Theoretical insights into the optimization landscape of over-parameterized shallow neural networks. arXiv preprint arXiv:1707.04926, 2017.
|
| 303 |
+
|
| 304 |
+
Christian Szegedy, Sergey Ioffe, Vincent Vanhoucke, and Alexander A Alemi. Inception-v4, inception-resnet and the impact of residual connections on learning. In AAAI, pp. 4278–4284, 2017.
|
| 305 |
+
|
| 306 |
+
Yuandong Tian. An analytical formula of population gradient for two-layered relu network and its applications in convergence and critical point analysis. arXiv preprint arXiv:1703.00560, 2017.
|
| 307 |
+
|
| 308 |
+
Yuchen Zhang, Jason D Lee, Martin J Wainwright, and Michael I Jordan. Learning halfspaces and neural networks with random initialization. arXiv preprint arXiv:1511.07948, 2015.
|
| 309 |
+
|
| 310 |
+
Yuchen Zhang, Jason D Lee, and Michael I Jordan. l1-regularized neural networks are improperly learnable in polynomial time. In International Conference on Machine Learning, pp. 993–1001, 2016.
|
| 311 |
+
|
| 312 |
+
Kai Zhong, Zhao Song, Prateek Jain, Peter L Bartlett, and Inderjit S Dhillon. Recovery guarantees for one-hidden-layer neural networks. arXiv preprint arXiv:1706.03175, 2017.
|
| 313 |
+
|
| 314 |
+
Pan Zhou and Jiashi Feng. The landscape of deep learning algorithms. arXiv preprint arXiv:1705.07038, 2017.
|
| 315 |
+
|
| 316 |
+
# A PROOFS AND ADDITIONAL THEOREMS
|
| 317 |
+
|
| 318 |
+
A.1 PROOFS OF THE THEOREM IN SECTION 2
|
| 319 |
+
|
| 320 |
+
# Lemma A.1.
|
| 321 |
+
|
| 322 |
+
$$
|
| 323 |
+
\begin{array} { r } { \left. \nabla _ { \mathbf { w } } \ell \left( \mathbf { w } \right) , \mathbf { w } - \mathbf { w } _ { * } \right. = \left( \mathbf { w } - \mathbf { w } _ { * } \right) ^ { \top } \mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \left( \mathbf { w } - \mathbf { w } _ { * } \right) + \left( \mathbf { w } - \mathbf { w } _ { * } \right) ^ { \top } \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \mathbf { w } . } \end{array}
|
| 324 |
+
$$
|
| 325 |
+
|
| 326 |
+
and both terms are non-negative.
|
| 327 |
+
|
| 328 |
+
Proof. Since $\mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \succeq 0$ and $\mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \succeq 0$ (positive-semidefinite), both the first term and one part of the second term $\mathbf { w } ^ { \top } \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \mathbf { w }$ are non-negative. The other part of the second term is
|
| 329 |
+
|
| 330 |
+
$$
|
| 331 |
+
- \mathbf { w } _ { \ast } ^ { \intercal } \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { \ast } } \mathbf { w } = - \mathbb { E } \left[ \left( \mathbf { w } _ { \ast } ^ { \intercal } \mathbf { Z } \right) \left( \mathbf { w } ^ { \intercal } \mathbf { Z } \right) \mathbb { I } \left\{ \mathbf { w } ^ { \intercal } \mathbf { Z } \geq 0 , \mathbf { w } _ { \ast } ^ { \intercal } \mathbf { Z } \leq 0 \right\} \right] \geq 0 .
|
| 332 |
+
$$
|
| 333 |
+
|
| 334 |
+
Proof of Theorem 2.1. The assumption on the input distribution ensures when $\theta \left( \mathbf { w } , \mathbf { w } _ { * } \right) \ \ne \ \pi .$ , $\mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \ \succ \ \mathbf { 0 }$ and when $\theta \left( \mathbf { w } , \mathbf { w } _ { * } \right) \neq \ 0$ , $\mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \ \succ \ \mathbf { 0 }$ . Now when gradient descent converges we have $\nabla _ { \mathbf { w } } \ell \left( \mathbf { w } \right) = \mathbf { 0 }$ . We have the following theorem. By assumption, since $\ell \left( \mathbf { w } \right) < \ell \left( \mathbf { 0 } \right)$ and gradient descent only decreases function value, we will not converge to $\mathbf { w } = \mathbf { 0 }$ . Note that at any critical points, $\left. \nabla _ { \mathbf { w } } \ell \left( \mathbf { w } \right) , \mathbf { w } - \mathbf { w } _ { * } \right. = 0$ , from Lemma A.1, we have:
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
\begin{array} { r l } { \left( \mathbf { w } - \mathbf { w } _ { * } \right) ^ { \top } \mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \left( \mathbf { w } - \mathbf { w } _ { * } \right) } & { = 0 } \\ { \left( \mathbf { w } - \mathbf { w } _ { * } \right) ^ { \top } \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \mathbf { w } } & { = 0 . } \end{array}
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
Suppose we are converging to a critical point $\mathbf { w } \neq \mathbf { w } _ { * }$ . There are two cases:
|
| 341 |
+
|
| 342 |
+
• If $\theta \left( \mathbf { w } , \mathbf { w } _ { * } \right) \neq \pi$ , then we have $\left( \mathbf { w } - \mathbf { w } _ { * } \right) ^ { \top } \mathbf { A } _ { \mathbf { w } , \mathbf { w } _ { * } } \left( \mathbf { w } - \mathbf { w } _ { * } \right) > 0$ , which contradicts with Eqn. 6. • If $\theta \left( \mathbf { w } , \mathbf { w } _ { * } \right) ~ = ~ \pi$ , without loss of generality, let $\textbf { w } = \mathbf { \Gamma } - \alpha \mathbf { w } _ { * }$ for some $\alpha \ > \ 0$ . By the assumption we know $\mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \quad \succ \quad 0$ . Now the second equation becomes $( \mathbf { w } - \mathbf { w } _ { * } ) ^ { \top } \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \mathbf { w } = ( 1 + \gamma ) \mathbf { w } _ { * } \mathbf { A } _ { \mathbf { w } , - \mathbf { w } _ { * } } \mathbf { w } _ { * } > 0$ , which contradicts with Eqn. 7.
|
| 343 |
+
|
| 344 |
+
Therefore we have $\mathbf { w } = \mathbf { w } _ { * }$ .
|
| 345 |
+
|
| 346 |
+
Proof of Theorem 2.2. Our proof relies on the following simple but crucial observation: if $\left\| \mathbf { w } - \mathbf { w } _ { * } \right\| _ { 2 } < \left\| \mathbf { w } _ { * } \right\| _ { 2 }$ , then
|
| 347 |
+
|
| 348 |
+
$$
|
| 349 |
+
\theta \left( \mathbf { w } , \mathbf { w } _ { * } \right) \leq \arcsin \left( \frac { \left\| \mathbf { w } - \mathbf { w } _ { * } \right\| _ { 2 } } { \left\| \mathbf { w } _ { * } \right\| _ { 2 } } \right) .
|
| 350 |
+
$$
|
| 351 |
+
|
| 352 |
+
We denote $\boldsymbol { \theta } \left( \mathbf { w } _ { t } , \mathbf { w } _ { * } \right) = \boldsymbol { \theta } _ { t }$ and by the observation we have $\theta _ { t } \leq \phi _ { t }$ . Recall the gradient descent dynamics,
|
| 353 |
+
|
| 354 |
+
$$
|
| 355 |
+
\begin{array} { r l } & { w _ { t + 1 } = \mathbf { w } _ { t } - \eta \nabla _ { \mathbf { w } _ { t } } \ell ( \mathbf { w } _ { t } ) } \\ & { \qquad = \mathbf { w } _ { t } - \eta \left( \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ \mathbf { w } _ { t } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { \star } ^ { \top } \mathbf { Z } \geq 0 \right\} \right] ( \mathbf { w } _ { t } - \mathbf { w } _ { \star } ) - \mathbb { E } \left[ \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { \star } ^ { \top } \mathbf { Z } \leq 0 \right] \mathbf { w } _ { t } \right) . } \end{array}
|
| 356 |
+
$$
|
| 357 |
+
|
| 358 |
+
Consider the squared distance to the optimal weight
|
| 359 |
+
|
| 360 |
+
$$
|
| 361 |
+
\begin{array} { r l } & { \left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } \\ & { = \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } \\ & { \quad - \eta \left( \mathbf { w _ { t } } - \mathbf { w } _ { * } \right) ^ { \top } \left( \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ \mathbf { w } _ { t } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \geq 0 \right\} \right] \left( \mathbf { w } _ { t } - \mathbf { w } _ { * } \right) - \mathbb { E } \left[ \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \leq 0 \right] \mathbf { w } _ { t } \right) } \\ & { \quad + \eta ^ { 2 } \left\| \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ \mathbf { w } _ { t } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \geq 0 \right\} \right] \left( \mathbf { w } _ { t } - \mathbf { w } _ { * } \right) - \mathbb { E } \left[ \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \leq 0 \right] \mathbf { w } _ { t } \right\| _ { 2 } ^ { 2 } . } \end{array}
|
| 362 |
+
$$
|
| 363 |
+
|
| 364 |
+
By our analysis in the previous section, the second term is smaller than
|
| 365 |
+
|
| 366 |
+
$$
|
| 367 |
+
\begin{array} { r } { - \eta \left( \mathbf { w _ { t } } - \mathbf { w _ { * } } \right) ^ { \top } \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ \mathbf { w } _ { t } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \geq 0 \right\} \right] \left( \mathbf { w } _ { t } - \mathbf { w } _ { * } \right) \leq - \eta \gamma ( \theta _ { t } ) \left. \mathbf { w } _ { t } - \mathbf { w } _ { * } \right. _ { 2 } ^ { 2 } } \end{array}
|
| 368 |
+
$$
|
| 369 |
+
|
| 370 |
+
where we have used our assumption on the angle. For the third term, we expand it as
|
| 371 |
+
|
| 372 |
+
$$
|
| 373 |
+
\begin{array} { r l } & { \left\| \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ \mathbf { w } _ { t } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \geq 0 \right\} \right] ( \mathbf { w } _ { t } - \mathbf { w } _ { * } ) - \mathbb { E } \left[ \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \leq 0 \right] \mathbf { w } _ { t } \right\| _ { 2 } ^ { 2 } } \\ & { = \left\| \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ \mathbf { w } _ { t } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \geq 0 \right\} \right] ( \mathbf { w } _ { t } - \mathbf { w } _ { * } ) \right\| _ { 2 } ^ { 2 } } \\ & { \quad - 2 \left( \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \mathbb { I } \left\{ \mathbf { w } _ { t } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \geq 0 \right\} \right] ( \mathbf { w } _ { t } - \mathbf { w } _ { * } ) \right) ^ { \top } \mathbb { E } \left[ \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \leq 0 \right] \mathbf { w } _ { t } } \\ & { \quad + \left\| \mathbb { E } \left[ \mathbf { w } ^ { \top } \mathbf { Z } \geq 0 , \mathbf { w } _ { * } ^ { \top } \mathbf { Z } \leq 0 \right] \mathbf { w } _ { t } \right\| _ { 2 } ^ { 2 } } \\ & \leq L ^ { 2 } ( \theta _ { t } ) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } + 2 L ( \theta _ { t } ) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } \cdot 2 \beta \frac { \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| } { \left\| \mathbf { w } _ { * } \right\| _ { 2 } } + \left( 2 \beta \frac { \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } } { \left\| \mathbf { w } _ { * } \right\| _ { 2 } } \right) \end{array}
|
| 374 |
+
$$
|
| 375 |
+
|
| 376 |
+
Therefore, in summary,
|
| 377 |
+
|
| 378 |
+
$$
|
| 379 |
+
\begin{array} { r l } { \left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } \leq \left( 1 - \eta \gamma ( \theta _ { t } ) + \eta ^ { 2 } \left( L ( \theta _ { t } ) + 4 \beta \right) ^ { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } & { } \\ { \leq \left( 1 - \frac { \eta \gamma ( \theta _ { t } ) } { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } & { } \\ { \leq \left( 1 - \frac { \eta \gamma ( \phi _ { t } ) } { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } & { } \end{array}
|
| 380 |
+
$$
|
| 381 |
+
|
| 382 |
+
where the first inequality is by our assumption of the step size and second is because $\theta _ { t } \leq \phi _ { t }$ and $\gamma ( \cdot )$ is monotonically decreasing. □
|
| 383 |
+
|
| 384 |
+
Theorem A.1 (Rotational Invariant Distribution). For any unit norm rotational invariant input distribution, we have $\beta = 1$ .
|
| 385 |
+
|
| 386 |
+
Proof of Theorem A.1. Without loss of generality, we only need to focus on the plane spanned by w and $\mathbf { w } _ { \ast }$ and suppose $\mathbf { w } _ { * } = ( 1 , 0 ) ^ { \top }$ . Then
|
| 387 |
+
|
| 388 |
+
$$
|
| 389 |
+
{ \boldsymbol { \mathrm { ? } } } \left[ \mathbf { Z } \mathbf { Z } ^ { \mathsf { T } } \mathbb { I } \left\{ S ( \mathbf { w } , - \mathbf { w } _ { * } ) \right\} \right] = \int _ { - { \boldsymbol { \pi } } / 2 } ^ { - { \boldsymbol { \pi } } / 2 + { \boldsymbol { \phi } } } { \binom { \cos \theta } { \sin \theta } } \left( \cos \theta , \sin \theta \right) \mathrm { d } \theta = { \frac { 1 } { 2 } } \left( { \boldsymbol { \phi } } - \sin \phi \cos \phi \qquad - \sin ^ { 2 } \phi \cos \theta \right) { \boldsymbol { \phi } } = { \frac { \sin ^ { 2 } \phi } { \sin \phi } } { \boldsymbol { \phi } } = { \frac { \sin ^ { 2 } \phi } { \cos \phi } } { \boldsymbol { \phi } } .
|
| 390 |
+
$$
|
| 391 |
+
|
| 392 |
+
It has two eigenvalues
|
| 393 |
+
|
| 394 |
+
$$
|
| 395 |
+
\lambda _ { 1 } ( \phi ) = { \frac { \phi + \sin \phi } { 2 } } \operatorname { a n d } \lambda _ { 2 } ( \phi ) = { \frac { \phi - \sin \phi } { 2 } } .
|
| 396 |
+
$$
|
| 397 |
+
|
| 398 |
+
Theorem A.2. If $\mathbf { Z } \sim N ( 0 , \mathbf { I } )$ , then $\beta \leq p$
|
| 399 |
+
|
| 400 |
+
Proof. Note in previous theorem we can integrate angle and radius separately then multiply them together. For Gaussian distribution, we have $\begin{array} { r } { \mathbb { E } \left[ \left. \mathbf { Z } \right. _ { 2 } ^ { 2 } \right] \leq p } \end{array}$ . The result follows. □
|
| 401 |
+
|
| 402 |
+
# A.2 PROOFS OF THEOREMS IN SECTION 3
|
| 403 |
+
|
| 404 |
+
Proof of Theorem 3.1. The proof is very similar to Theorem 2.2. Notation-wise, for two events $S _ { 1 } , S _ { 2 }$ we use $S _ { 1 } S _ { 2 }$ as a shorthand for $S _ { 1 } \cap S _ { 2 }$ and $S _ { 1 } + S _ { 2 }$ as a shorthand for $S _ { 1 } \cup S _ { 2 }$ . Denote $\boldsymbol { \theta } _ { t } = \boldsymbol { \theta } \left( \mathbf { w } _ { t } , \mathbf { w } _ { * } \right)$ . First note with some routine algebra, we can write the gradient as
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
\begin{array} { r l } & { \nabla _ { \mathbf { w } _ { t } } \ell \left( \mathbf { w } _ { t } \right) } \\ & { = \mathbb { E } \left[ \sum _ { ( i , j ) = ( 1 , 1 ) } ^ { ( d , d ) } \mathbf { Z } _ { i } \mathbf { Z } _ { j } ^ { \top } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { j } \right\} \right] \left( \mathbf { w } - \mathbf { w } _ { * } \right) } \end{array}
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
$$
|
| 411 |
+
\begin{array} { r l } & { + \mathbb { E } \left[ \underset { ( i , j ) = ( 1 , 1 ) } { \overset { ( d , d ) } { \sum } } \mathbf { Z } _ { i } \mathbf { Z } _ { j } ^ { \top } { \mathbb { I } \left\{ { S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } + S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { i } S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { j } } \right\} } \right] \mathbf { w } } \\ & { + \mathbb { E } \left[ \underset { ( i , j ) = ( 1 , 1 ) } { \overset { ( d , d ) } { \sum } } \mathbf { Z } _ { i } \mathbf { Z } _ { j } ^ { \top } { \mathbb { I } \left\{ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { i } S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } } \right\} } \right] \mathbf { w } } \\ & { - \mathbb { E } \left[ \underset { ( i , j ) = ( 1 , 1 ) } { \overset { ( d , d ) } { \sum } } \mathbf { Z } _ { i } \mathbf { Z } _ { j } ^ { \top } { \mathbb { I } \left\{ { S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } S ( - \mathbf { w } , \mathbf { w } _ { * } ) _ { j } + S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { i } S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { j } + S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { i } S ( - \mathbf { w } , \mathbf { w } _ { * } ) _ { j } } \right\} } \right] \mathbf { w } } \end{array}
|
| 412 |
+
$$
|
| 413 |
+
|
| 414 |
+
We first examine the inner product between the gradient and $\mathbf { w } - \mathbf { w } _ { * }$ .
|
| 415 |
+
|
| 416 |
+
h∇wt \`(w), w − w∗i
|
| 417 |
+
= (w − w )> E (Xd,d) ZiZj I nS(w, w∗)iS(w, w∗)j o (w − w∗) $\begin{array} { r l } & \quad + ( \textbf { v } - \textbf { v } ^ { 2 } ) ^ { 2 } ( \displaystyle \sum _ { j = 0 } ^ { N } \alpha ^ { 2 } \textbf { { S u p p e r } } + \beta ^ { 2 } ) ^ { 2 } + ( \textbf { v } - \textbf { v } ^ { 2 } ) ^ { 2 } ( \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } + \beta ^ { 2 } \\ \end{array}$ ∗)iS(w, −w∗)j o w ∗)iS(−w, w∗)j o w∗
|
| 418 |
+
$\begin{array} { r l } & { \begin{array} { r l } & { \mathrm { i } } \\ & { = \left( \nu - \nu \right) ^ { 2 } , } \\ { \nu \left( \frac { \nu } { 2 } \right) ^ { 2 } , } \\ { = \left( \nu - \nu \right) ^ { 4 } , } \\ { \nu \left( \frac { \nu } { 2 } \right) ^ { 4 } , } \end{array} } \end{array}$ ∗)iS(−w, w∗)j o w∗ ( − w , w ∗ ) j o op
|
| 419 |
+
|
| 420 |
+
$$
|
| 421 |
+
\begin{array} { l } { + \| { \mathbb { E } [ \begin{array} { c } { ( { d , d } ) } \\ { ( { i , j } ) = ( { 1 , 1 } ) } \end{array} { \mathbf { Z } } _ { i } { \mathbf { Z } } _ { j } { \mathbb { I } \{ { S } ( { \mathbf { w } } , - { \mathbf { w } } _ { * } ) _ { i } S ( { \mathbf { w } } , { \mathbf { w } } _ { * } ) _ { j } \} } ] } \| _ { \sigma _ { p } } + \| { \mathbb { E } [ \begin{array} { c } { ( { d , d } ) } \\ { \displaystyle { \sum _ { i , j = ( { 1 , 1 } ) } ^ { { d } } { \mathbf { Z } } _ { i } { \mathbf { Z } } _ { j } { \mathbb { I } \{ { S } ( { \mathbf { w } } , - { \mathbf { w } } _ { * } ) _ { i } S ( - { \mathbf { w } } , { \mathbf { w } } _ { * } ) _ { j } \} } } \end{array} ] } { S ( - \mathbf { w } _ { * } ) _ { i } { \mathbf { Z } } _ { j } } } } \\ { \geq \gamma ( \theta _ { t } ) \| { \mathbf { w } } _ { t } - { \mathbf { w } } _ { * } \| _ { 2 } ^ { 2 } - 3 L _ { \mathrm { c r o s s } } \phi _ { t } \| { \mathbf { w } } _ { * } \| _ { 2 } \| { \mathbf { w } } _ { t } - { \mathbf { w } } _ { * } \| _ { 2 } } \\ { \geq \gamma ( \theta _ { t } ) \| { \mathbf { w } } _ { t } - { \mathbf { w } } _ { * } \| _ { 2 } ^ { 2 } - 6 L _ { \mathrm { c r o s s } } \frac { \| { \mathbf { w } } _ { t } - { \mathbf { w } } _ { * } \| _ { 2 } } { \| { \mathbf { w } } _ { * } \| _ { 2 } } \cdot \| { \mathbf { w } } _ { * } \| _ { 2 } \| { \mathbf { w } } _ { t } - { \mathbf { w } } _ { * } \| _ { 2 } } \\ { \geq ( \gamma ( \theta _ { t } ) - 6 L _ { \mathrm { c r o s s } } ) \| { \mathbf { w } } _ { t } - { \mathbf { w } } _ { * } \| _ { 2 } ^ { 2 } } \end{array}
|
| 422 |
+
$$
|
| 423 |
+
|
| 424 |
+
where the first inequality we used the definitions of the regions; the second inequality we used the definition of operator norm; the third inequality we used the fact $\left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } \leq \left\| \mathbf { w } _ { * } \right\| _ { 2 }$ ; the fourth inequality we used the definition of $L _ { \mathrm { c r o s s } }$ and the fifth inequality we used $\phi \leq 2 \sin \phi$ for any $0 \leq \phi \leq \pi / 2$ . Next we can upper bound the norm of the gradient using similar argument
|
| 425 |
+
|
| 426 |
+
$$
|
| 427 |
+
\begin{array} { r l } & { \| \nabla _ { \mathbf { w } _ { t } } \ell ( \mathbf { w } _ { t } ) \| _ { 2 } \leq L \left( \theta _ { t } \right) \| \mathbf { w } _ { t } - \mathbf { w } _ { * } \| _ { 2 } + 1 0 L _ { \mathrm { c r o s s } } \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| + 2 \beta \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } } \\ & { \qquad = ( L ( \theta _ { t } ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta ) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } . } \end{array}
|
| 428 |
+
$$
|
| 429 |
+
|
| 430 |
+
Therefore, using the dynamics of gradient descent, putting the above two bounds together, we have
|
| 431 |
+
|
| 432 |
+
$$
|
| 433 |
+
\begin{array} { r l } & { \left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } \leq \left( 1 - \eta \left( \gamma ( \theta _ { t } ) - 6 L _ { \mathrm { c r o s s } } \right) + \eta ^ { 2 } ( L ( \theta _ { t } ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta ) ^ { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } \\ & { \qquad \leq \left( 1 - \frac { \eta \left( \gamma \left( \theta _ { t } \right) - 6 L _ { \mathrm { c r o s s } } \right) } { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } \\ & { \qquad \leq \left( 1 - \frac { \eta \left( \gamma \left( \phi _ { t } \right) - 6 L _ { \mathrm { c r o s s } } \right) } { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } } \end{array}
|
| 434 |
+
$$
|
| 435 |
+
|
| 436 |
+
where the last step we have used our choice of $\eta _ { t }$ and $\theta _ { t } \leq \phi _ { t }$ .
|
| 437 |
+
|
| 438 |
+
The proof of Theorem 3.2 consists of two parts. First we show if $\eta$ is chosen properly and $T$ is not to big, then for all $1 \leq t \leq T$ , with high probability the iterates stat in a neighborhood of $\mathbf { w } _ { \ast }$ . Next, conditioning on this, we derive the rate.
|
| 439 |
+
|
| 440 |
+
Lemma A.2. Denote $r _ { 0 } = \left\| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \right\| _ { 2 } < \left\| \mathbf { w } _ { * } \right\| _ { 2 } \sin \phi _ { * }$ . Given $0 < r _ { 1 } < \| \mathbf { w } _ { * } \| _ { 2 } \sin \phi _ { * }$ , number of iterations $T \in \mathbb { Z } _ { + + }$ and failure probability $\delta$ , denote $\begin{array} { r } { \phi _ { 1 } = \arcsin \left( \frac { r _ { 1 } } { \left\| \mathbf { w } _ { * } \right\| _ { 2 } } \right) } \end{array}$ then if the step size satisfies
|
| 441 |
+
|
| 442 |
+
$$
|
| 443 |
+
\begin{array} { c } { { 0 < 1 - \eta \gamma ( \phi _ { 1 } ) + \eta ^ { 2 } ( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta ) ^ { 2 } < 1 } } \\ { { \left( r _ { 1 } ^ { 2 } - r _ { 0 } ^ { 2 } \right) ^ { 2 } } } \\ { { { \cal T } \left( 1 + 2 \eta \alpha T \right) \left( 2 \eta B \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) r _ { 1 } + \eta ^ { 2 } B ^ { 2 } \right) ^ { 2 } \log \left( \displaystyle \frac { T } { \delta } \right) } } \end{array}
|
| 444 |
+
$$
|
| 445 |
+
|
| 446 |
+
with $\alpha = \gamma ( \phi _ { 1 } ) - \eta ( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta )$ . Then with probability at least $1 - \delta$ , for all $t =$ $1 , \ldots , T$ , we have
|
| 447 |
+
|
| 448 |
+
$$
|
| 449 |
+
\left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| \leq r _ { 1 } .
|
| 450 |
+
$$
|
| 451 |
+
|
| 452 |
+
Proof of Lemma A.2. Let $g ( \mathbf { w } _ { t } ) = \mathbb { E } \left[ \nabla _ { \mathbf { w } _ { t } } \ell \left( \mathbf { w } _ { t } \right) \right] + \xi _ { t }$ . We denote $\mathcal { F } _ { t } = \sigma \left\{ \xi _ { 1 } , \ldots , \xi _ { t } \right\}$ , the sigmaalgebra generated by $\xi _ { 1 } , \ldots , \xi _ { t }$ and define the event
|
| 453 |
+
|
| 454 |
+
$$
|
| 455 |
+
\begin{array} { r } { \mathcal { C } _ { t } = \left\{ \forall \tau \leq t , \| \mathbf { w } _ { \tau } - \mathbf { w } _ { * } \| \leq r _ { 1 } \right\} . } \end{array}
|
| 456 |
+
$$
|
| 457 |
+
|
| 458 |
+
Consider
|
| 459 |
+
|
| 460 |
+
$$
|
| 461 |
+
\begin{array} { r l } & { \quad \mathbb { E } \left[ \left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } \mathbb { I } _ { C _ { t } } \big | \mathcal { F } _ { t } \right] } \\ & { = \mathbb { E } \left[ \left\| \mathbf { w } _ { t } - \eta \nabla _ { \mathbf { w } _ { t } } \ell ( \mathbf { w } _ { t } ) - \mathbf { w } _ { * } - \eta \xi _ { t } \right\| _ { 2 } ^ { 2 } \mathbb { I } _ { C _ { t } } \big | \mathcal { F } _ { t } \right] } \\ & { \leq \left( \left( 1 - \eta \gamma ( \phi _ { 1 } ) + \eta ^ { 2 } \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) ^ { 2 } \right) \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } + \eta ^ { 2 } B ^ { 2 } \right) \mathbb { I } _ { C _ { t } } } \end{array}
|
| 462 |
+
$$
|
| 463 |
+
|
| 464 |
+
where the inequality follows by our analysis of gradient descent together with definition of $\mathcal { C } _ { t }$ and $\mathbb { E } \left[ \xi _ { t } | \mathcal { F } _ { t } \right] = 0$ . Define
|
| 465 |
+
|
| 466 |
+
$$
|
| 467 |
+
G _ { t } = \left( 1 - \eta \alpha \right) ^ { - t } \left( \left| \left| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right| \right| _ { 2 } ^ { 2 } - \frac { \eta B ^ { 2 } } { \alpha } \right) .
|
| 468 |
+
$$
|
| 469 |
+
|
| 470 |
+
By our analysis above, we have
|
| 471 |
+
|
| 472 |
+
$$
|
| 473 |
+
\mathbb { E } \left[ G _ { t + 1 } \mathbb { I } _ { { \mathcal { C } } _ { t } } | { \mathcal { F } } _ { t } \right] \leq G _ { t } \mathbb { I } _ { { \mathcal { C } } _ { t } } \leq G _ { t } \mathbb { I } _ { { \mathcal { C } } _ { t - 1 } }
|
| 474 |
+
$$
|
| 475 |
+
|
| 476 |
+
where the last inequality is because $\mathcal { C } _ { t }$ is a subset of $\mathcal { C } _ { t - 1 }$ . Therefore, $\boldsymbol { G } _ { t } \mathbb { I } _ { \boldsymbol { c } _ { t - 1 } }$ is a super-martingale and we may apply Azuma-Hoeffding inequality. Before that, we need to bound the difference between $G _ { t } \mathbb { I } _ { \boldsymbol { c } _ { t } }$ and its expectation. Note
|
| 477 |
+
|
| 478 |
+
$$
|
| 479 |
+
\begin{array} { r l } & { G _ { t } \mathbb { I } _ { \mathcal { C } _ { t - 1 } } - \mathbb { E } \left[ G _ { t } \mathbb { I } _ { \mathcal { C } _ { t - 1 } } \right] \left. \mathcal { F } _ { t - 1 } \right. = \left( 1 - \eta \alpha \right) ^ { - t } \left. \left. \mathbf { w } _ { t } - \mathbf { w } _ { * } \right. _ { 2 } ^ { 2 } - \mathbb { E } \left[ \left. \mathbf { w } _ { t } - \mathbf { w } _ { * } \right. _ { 2 } ^ { 2 } \right] \left. \mathcal { F } _ { t - 1 } \right. \mathbb { I } _ { \mathcal { C } _ { t - 1 } } \right. } \\ & { \qquad = \left( 1 - \eta \alpha \right) ^ { - t } \left. 2 \eta \langle \xi _ { t } , \mathbf { w } _ { t } - \eta \nabla _ { \mathbf { w } _ { t } } \ell ( \mathbf { w } _ { t } ) - \mathbf { w } _ { * } - \eta ^ { 2 } \mathbb { E } \left[ \left. \xi _ { t } \right. _ { 2 } ^ { 2 } \left. \mathcal { F } _ { t - 1 } \right] \right. \mathbb { I } _ { \mathcal { C } _ { t - 1 } } \right. } \\ & { \qquad \leq \left( 1 - \eta \alpha \right) ^ { - t } \left( 2 \eta B \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) \left. \mathbf { w } _ { t } - \mathbf { w } _ { * } \right. _ { 2 } + \eta ^ { 2 } B ^ { 2 } \right) \mathbb { I } _ { \mathcal { C } _ { t - 1 } } } \\ & { \qquad \leq \left( 1 - \eta \alpha \right) ^ { - t } \left( 2 \eta B \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) r _ { 1 } + \eta ^ { 2 } B ^ { 2 } \right) } \\ & { \qquad \triangleq d _ { t } . } \end{array}
|
| 480 |
+
$$
|
| 481 |
+
|
| 482 |
+
Therefore for all $t \leq T$
|
| 483 |
+
|
| 484 |
+
$$
|
| 485 |
+
\begin{array} { r l } & { c _ { t } ^ { 2 } \triangleq \displaystyle \sum _ { \tau = 1 } ^ { t } d _ { \tau } ^ { 2 } } \\ & { \quad = \displaystyle \sum _ { \tau = 1 } ^ { t } \left( 1 - \eta \alpha \right) ^ { - 2 t } \left( 2 \eta B \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) r _ { 1 } + \eta ^ { 2 } B ^ { 2 } \right) ^ { 2 } } \\ & { \quad \le t \left( 1 - \eta \alpha \right) ^ { - 2 t } \left( 2 \eta B \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) r _ { 1 } + \eta ^ { 2 } B ^ { 2 } \right) ^ { 2 } } \\ & { \quad \le T \left( 1 + 2 \eta \alpha T \right) \left( 2 \eta B \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) r _ { 1 } + \eta ^ { 2 } B ^ { 2 } \right) ^ { 2 } } \end{array}
|
| 486 |
+
$$
|
| 487 |
+
|
| 488 |
+
where the first inequality we used $1 - \eta \alpha < 1$ , the second we used $t \leq T$ and the third we used our assumption on $\eta$ . Let us bound at $( t + 1 )$ -th step, the iterate goes out of the region,
|
| 489 |
+
|
| 490 |
+
$$
|
| 491 |
+
\begin{array} { r l } { \mathbb { P } \left[ \mathcal { G } _ { t } \cap \left\{ \left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } > r _ { 1 } \right\} \right] = \mathbb { P } \left[ \mathcal { G } _ { t } \cap \left\{ \left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } > r _ { 1 } ^ { 2 } \right\} \right] } & { } \\ & { = \mathbb { P } \left[ C _ { t } \cap \left\{ \left\| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } > r _ { 0 } ^ { 2 } + \left( r _ { 1 } ^ { 2 } - r _ { 0 } ^ { 2 } \right) \right\} \right] } \\ & { = \mathbb { P } \left[ \mathcal { C } _ { t } \cap \left\{ G _ { t + 1 } \left( 1 - \eta \alpha \right) ^ { t } + \frac { \eta B ^ { 2 } } { \alpha } \geq G _ { 0 } + \frac { \eta B ^ { 2 } } { \alpha } + r _ { 1 } ^ { 2 } - r _ { 0 } ^ { 2 } \right\} \right] } \\ & { \leq \mathbb { P } \left[ \mathcal { C } _ { t } \cap \left\{ G _ { t + 1 } - G _ { 0 } \geq r _ { 1 } ^ { 2 } - r _ { 0 } ^ { 2 } \right\} \right] } \\ & { \leq \exp \left\{ - \frac { \left( r _ { 1 } ^ { 2 } - r _ { 0 } ^ { 2 } \right) ^ { 2 } } { 2 c _ { t } ^ { 2 } } \right\} } \\ & { \leq \frac { \delta } { T } } \end{array}
|
| 492 |
+
$$
|
| 493 |
+
|
| 494 |
+
where the second inequality we used Azuma-Hoeffding inequality, the last one we used our assumption of $\eta$ . Therefore for all $0 \leq t \leq T$ , we have with probability at least $1 - \delta , { \mathcal { C } } _ { t }$ happens. □
|
| 495 |
+
|
| 496 |
+
Now we can derive the rate.
|
| 497 |
+
|
| 498 |
+
Lemma A.3. Denote $r _ { 0 } = \left\| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \right\| _ { 2 } < \left\| \mathbf { w } _ { * } \right\| _ { 2 } \sin \phi _ { * }$ . Given $0 < r _ { 1 } < \| \mathbf { w } _ { * } \| _ { 2 } \sin \phi _ { * }$ , number of iterations $T \in \mathbb { Z } _ { + + }$ and failure probability $\delta _ { i }$ , denote $\begin{array} { r } { \phi _ { 1 } = \arcsin \left( \frac { r _ { 1 } } { \left\| \mathbf { w } _ { * } \right\| _ { 2 } } \right) } \end{array}$ then if the step size satisfies
|
| 499 |
+
|
| 500 |
+
$$
|
| 501 |
+
\begin{array} { r l r } { { 0 < 1 - \eta \gamma ( \phi _ { 1 } ) + \eta ^ { 2 } ( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta ) ^ { 2 } < 1 } } \\ & { } & { \frac { ( r _ { 1 } ^ { 2 } - r _ { 0 } ^ { 2 } ) ^ { 2 } } { T ( 1 + 2 \eta \alpha T ) ( 2 \eta B ( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta ) r _ { 1 } + \eta ^ { 2 } B ^ { 2 } ) ^ { 2 } } \ge \log ( \frac { T } { \delta } ) } \\ & { } & { \eta T ( \gamma ( \phi _ { 1 } ) - \eta ( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta ) ^ { 2 } ) \ge \log ( \frac { r _ { 0 } ^ { 2 } } { \epsilon ^ { 2 } \mathbf { w } _ { * } _ { 2 } ^ { 2 } \delta } ) } \end{array}
|
| 502 |
+
$$
|
| 503 |
+
|
| 504 |
+
$$
|
| 505 |
+
\epsilon ^ { 2 } \left( \gamma ( \phi _ { 1 } ) - \eta \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right) ^ { 2 } \right) \left\| \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } \geq \eta B ^ { 2 }
|
| 506 |
+
$$
|
| 507 |
+
|
| 508 |
+
with $\alpha = \gamma \left( \phi _ { 1 } \right) - \eta \left( L ( 0 ) + 1 0 L _ { \mathrm { c r o s s } } + 4 \beta \right)$ , then we have with probability $1 - 2 \delta$ ,
|
| 509 |
+
|
| 510 |
+
$$
|
| 511 |
+
\left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } \leq 2 \epsilon \left\| \mathbf { w } _ { * } \right\| _ { 2 } .
|
| 512 |
+
$$
|
| 513 |
+
|
| 514 |
+
Proof of Lemma A.3. We use the same notations in the proof of Lemma A.2. By the analysis of Lemma A.2, we know
|
| 515 |
+
|
| 516 |
+
$$
|
| 517 |
+
\begin{array} { r } { \mathbb { E } \left[ \| \mathbf { w } _ { t + 1 } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } \mathbb { I } _ { \mathcal { C } _ { t } } \big | \mathcal { F } _ { t } \right] \leq \left( ( 1 - \eta \alpha ) \| \mathbf { w } _ { t } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } + \eta ^ { 2 } B ^ { 2 } \right) \mathbb { I } _ { \mathcal { C } _ { t } } . } \end{array}
|
| 518 |
+
$$
|
| 519 |
+
|
| 520 |
+
Therefore we have
|
| 521 |
+
|
| 522 |
+
$$
|
| 523 |
+
\mathbb { E } \left[ \left\| \mathbf { w } _ { t } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } \mathbb { I } _ { \mathcal { C } _ { t } } - \frac { \eta B ^ { 2 } } { \alpha } \right] \leq \left( 1 - \eta \alpha \right) ^ { t } \left( \left\| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \right\| _ { 2 } ^ { 2 } - \frac { \eta B } { \alpha } \right) .
|
| 524 |
+
$$
|
| 525 |
+
|
| 526 |
+
Now we can bound the failure probability
|
| 527 |
+
|
| 528 |
+
$$
|
| 529 |
+
\begin{array} { r l } { \mathbb { P } [ \| \mathbf { w } _ { T } - \mathbf { w } _ { * } \| _ { 2 } \geq 2 \epsilon \| \mathbf { w } _ { * } \| _ { 2 } ] \leq \mathbb { P } [ \| \mathbf { w } _ { T } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } - \frac { \eta B ^ { 2 } } { \alpha } \geq \epsilon ^ { 2 } \| \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } ] } & { } \\ & { \leq \mathbb { P } [ \{ \| \mathbf { w } _ { T } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } \mathbb { T } _ { \epsilon _ { * } } - \frac { \eta B ^ { 2 } } { \alpha } \geq \epsilon ^ { 2 } \| \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } \} \cup \mathcal { C } _ { t } ^ { * } ] } \\ & { \leq \mathbb { P } [ \{ \| \mathbf { w } _ { T } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } \} \mathbb { I } _ { \epsilon _ { * } } - \frac { \eta B ^ { 2 } } { \alpha } \geq \epsilon ^ { 2 } \| \mathbf { w } \| _ { 2 } ^ { 2 } ] ] + \delta } \\ & { \leq \frac { \mathbb { E } [ \| \mathbf { w } _ { T } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } \mathbb { I } _ { \epsilon _ { * } } - \frac { \eta B ^ { 2 } } { \alpha } ] } { \epsilon ^ { 2 } \| \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } } + \delta } \\ & { \leq \frac { ( 1 - \eta \alpha ) ^ { 4 } ( \| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } - \frac { \eta B } { \alpha } ) } { \epsilon ^ { 2 } \| \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } } + \frac { \eta B } { \alpha } } \\ & { \leq \frac { ( 1 - \eta \alpha ) ^ { 4 } ( \| \mathbf { w } _ { 0 } - \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } - \frac { \eta B } { \alpha } ) } { \epsilon ^ { 2 } \| \mathbf { w } _ { * } \| _ { 2 } ^ { 2 } } + \delta } \end{array}
|
| 530 |
+
$$
|
| 531 |
+
|
| 532 |
+
The first inequality we used the last assumption. The second inequality we used the probability of an event is upper bound by any superset of this event. The third one we used Lemma A.2 and the union bound. The fourth one we used Markov’s inequality. □
|
| 533 |
+
|
| 534 |
+
Now we can specify the $T$ and $\eta$ and derive the convergence rate of SGD for learning a convolution filter.
|
| 535 |
+
|
| 536 |
+
Proof of Theorem 3.2. With the choice of $\eta$ and $T$ , it is straightforward to check they satisfies conditions in Lemma A.3. □
|
| 537 |
+
|
| 538 |
+
Proof of Theorem 3.3. We first prove the lower bound of $\gamma \left( \phi _ { 0 } \right)$ .
|
| 539 |
+
|
| 540 |
+
$$
|
| 541 |
+
\begin{array} { r l } & { \mathbb { E } \left[ \left( \displaystyle \sum _ { i = 1 } ^ { k } \mathbf { Z } _ { i } [ \left\{ \mathcal { S } ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} \right) \left( \displaystyle \sum _ { i = 1 } ^ { k } \mathbf { Z } _ { i } [ \left\{ \mathcal { S } ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} ^ { \top } ] \right) ^ { \top } \right] } \\ & { = \mathbb { E } \left[ k \mathbf { Z } + \displaystyle \sum _ { i = 1 } ^ { k } \left( \mathbf { Z } _ { i } \mathbf { I } \left\{ \mathcal { S } ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} - \mathbf { Z } \right) \left( k \mathbf { Z } + \displaystyle \sum _ { i = 1 } ^ { k } \left( \mathbf { Z } _ { i } \mathbf { I } \left\{ \mathcal { S } ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} - \mathbf { Z } \right) \right) ^ { \top } \right] } \\ & { = k ^ { 2 } \mathbb { E } \left[ \mathbf { Z } \mathbf { Z } ^ { \top } \right] + k \mathbb { E } \left[ \mathbf { Z } \left( \displaystyle \sum _ { i = 1 } ^ { k } \left( \mathbf { Z } _ { i } \mathbf { I } \left\{ \mathcal { S } ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} - \mathbf { Z } \right) \right) ^ { \top } \right] } \\ & { \quad + k \mathbb { E } \left[ \left( \displaystyle \sum _ { i = 1 } ^ { k } \left( \mathbf { Z } _ { i } \mathbf { I } \left\{ \mathcal { S } ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} - \mathbf { Z } \right) \right) \mathbf { Z } ^ { \top } \right] } \end{array}
|
| 542 |
+
$$
|
| 543 |
+
|
| 544 |
+
$$
|
| 545 |
+
\begin{array} { r l } & { + \mathbb { E } [ ( \displaystyle \sum _ { i = 1 } ^ { k } ( \mathbf { Z } _ { i } \mathbb { I } \{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} - \mathbf { Z } _ { 1 } \mathbb { I } \{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { 1 } \} ) ) ( \displaystyle \sum _ { i = 1 } ^ { k } ( \mathbf { Z } _ { i } \mathbb { I } \{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} - \mathbf { Z } _ { 1 } \mathbb { I } \{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { 1 } \} ) ) } \\ & { \displaystyle \mathrm { ~ } \displaystyle \mathrm { ~ } \mathrm { ~ } \displaystyle \mathrm { ~ } z k ^ { 2 } \mathbb { E } [ \mathbf { Z } \mathbf { Z } ^ { \top } ] + k \mathbb { E } [ \mathbf { Z } ( \displaystyle \sum _ { i = 1 } ^ { k } ( \mathbf { Z } _ { i } \mathbb { I } \{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} - \mathbf { Z } ) ) ^ { \top } ] } \\ & { + \displaystyle k \mathbb { E } [ ( \displaystyle \sum _ { i = 1 } ^ { k } ( \mathbf { Z } _ { i } \mathbb { I } \{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \} - \mathbf { Z } ) ) \mathbf { Z } ^ { \top } ] } \end{array}
|
| 546 |
+
$$
|
| 547 |
+
|
| 548 |
+
Note because $\mathbf { Z } _ { i } \mathbf { s }$ have unit norm and by law of cosines $\begin{array} { r } { \| \mathbf { Z } \left( \mathbf { Z } _ { i } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} - \mathbf { Z } \right) \| _ { o p } \leq 2 ( 1 - \mathbf { \alpha } } \end{array}$ $\cos \rho )$ ). Therefore,
|
| 549 |
+
|
| 550 |
+
$$
|
| 551 |
+
r _ { \mathrm { m i n } } \left( \mathbb { E } \left[ \left( \sum _ { i = 1 } ^ { d } \mathbf { Z } _ { i } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} \right) \left( \sum _ { i = 1 } ^ { d } \mathbf { Z } _ { i } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } \right\} \right) ^ { \top } \right] \right) \geq k ^ { 2 } ( \gamma _ { 1 } ( \phi _ { 0 } ) - 4 ( 1 - \cos \rho ) ) .
|
| 552 |
+
$$
|
| 553 |
+
|
| 554 |
+
Now we prove the upper bound of $L _ { \mathrm { c r o s s } }$ . Notice that
|
| 555 |
+
|
| 556 |
+
$$
|
| 557 |
+
\begin{array} { r } { \left\| \mathbb { E } \left[ \mathbf { Z } _ { i } \mathbf { Z } _ { j } ^ { \top } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } \right\} \right] \right\| _ { 2 } \leq \mathbb { E } \left[ \| \mathbf { Z } _ { i } \| _ { 2 } \| \mathbf { Z } _ { j } \| _ { 2 } \mathbb { I } \left\{ S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } \right\} \right] } \\ { = \int _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } } \left( \int _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } } \mathrm { d } \mathbb { P } \left( \mathbf { Z } _ { i } | \mathbf { Z } _ { j } \right) \right) \mathrm { d } \mathbb { P } \left( \theta _ { j } \right) . } \end{array}
|
| 558 |
+
$$
|
| 559 |
+
|
| 560 |
+
If $\phi \leq \psi$ , then by our assumption, we have
|
| 561 |
+
|
| 562 |
+
$$
|
| 563 |
+
\int _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } } \left( \int _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } } { \mathrm { d } } \mathbb { P } \left( \mathbf { Z } _ { i } | \mathbf { Z } _ { j } \right) \right) { \mathrm { d } } \mathbb { P } \left( \theta _ { j } \right) \leq \int _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } } { \mathrm { d } } \mathbb { P } \left( \mathbf { Z } _ { j } \right) \leq L \phi .
|
| 564 |
+
$$
|
| 565 |
+
|
| 566 |
+
On the other hand, if $\phi \geq \gamma$ , let $\theta _ { j }$ be the angle between $\mathbf { w } _ { \ast }$ and $\mathbf { Z } _ { j }$ , we have
|
| 567 |
+
|
| 568 |
+
$$
|
| 569 |
+
\begin{array} { r l } & { \displaystyle \int _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) _ { j } } \left( \int _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } } { \mathrm { d } \mathbb { P } } ( \mathbf { Z } _ { i } | \mathbf { Z } _ { j } ) \right) { \mathrm { d } \mathbb { P } } \left( \theta _ { j } \right) \leq \int _ { \frac { \pi } { 2 } } ^ { \frac { \pi } { 2 } + \gamma } \left( \int _ { S ( \mathbf { w } , \mathbf { w } _ { * } ) _ { i } } { \mathrm { d } \mathbb { P } } ( \mathbf { Z } _ { i } | \mathbf { Z } _ { j } ) \right) { \mathrm { d } \mathbb { P } } \left( \theta _ { j } \right) } \\ & { \qquad \leq L \gamma } \\ & { \qquad \leq L \phi . } \end{array}
|
| 570 |
+
$$
|
| 571 |
+
|
| 572 |
+
Therefore, $\begin{array} { r } { \sigma _ { \operatorname* { m a x } } \left( { \mathbb E } \left[ { \mathbf { Z } } _ { S ( { \mathbf { w } } , { \mathbf { w } } _ { \ast } ) } { \mathbf { Z } } _ { S ( { \mathbf { w } } , - { \mathbf { w } } _ { \ast } ) } ^ { \top } \right] \right) ~ \leq ~ L \phi } \end{array}$ . Using similar arguments we can show $\sigma _ { \operatorname* { m a x } } \left( { \mathbb E } \left[ { \mathbf Z } _ { S ( { \mathbf w } , { \mathbf w } _ { \ast } ) } { \mathbf Z } _ { S ( - { \mathbf w } , { \mathbf w } _ { \ast } ) } \right] \right) \leq L \phi$ and $\begin{array} { r } { \ ' \sigma _ { \operatorname* { m a x } } \left( \mathbb { E } \left[ \mathbf { Z } _ { S ( \mathbf { w } , - \mathbf { w } _ { * } ) } \mathbf { Z } _ { S ( - \mathbf { w } , \mathbf { w } _ { * } ) } \right] \right) \leq L \phi . } \end{array}$
|
| 573 |
+
|
| 574 |
+
Proof of Theorem 3.4. We use the same argument by Tian (2017). Let $r _ { i n i t }$ be the initialization radius. The failure probability is lower bounded
|
| 575 |
+
|
| 576 |
+
$$
|
| 577 |
+
\frac { 1 } { 2 } \left( r _ { i n i t } \right) - \frac { \left( \frac { r _ { i n i t } ^ { 2 } } { 2 \left\| \mathbf { w } _ { * } \right\| _ { 2 } } + \frac { \left\| \mathbf { w } _ { * } \right\| _ { 2 } \cos \left( \phi _ { * } \right) } { 2 } \right) \delta V _ { k - 1 } \left( r _ { i n i t } \right) } { V _ { k } \left( r _ { i n i t } \right) } .
|
| 578 |
+
$$
|
| 579 |
+
|
| 580 |
+
Therefore, $r _ { i n i t } = \cos \left( \phi _ { * } \right) \left\| \mathbf { w } _ { * } \right\| _ { 2 }$ maximizes this lower bound. Plugging this optimizer in and using formula for the volume of the Euclidean ball, the failure probability is lower bounded by
|
| 581 |
+
|
| 582 |
+
$$
|
| 583 |
+
\frac { 1 } { 2 } - \cos \left( \phi _ { * } \right) \frac { \pi \Gamma \left( p / 2 + 1 \right) } { \Gamma \left( p / 2 + 1 / 2 \right) } \geq \frac { 1 } { 2 } - \cos \left( \phi _ { * } \right) \sqrt { \frac { \pi p } { 2 } }
|
| 584 |
+
$$
|
| 585 |
+
|
| 586 |
+
where we used Gautschi’s inequality for the last step.
|
| 587 |
+
|
| 588 |
+
# B ADDITIONAL EXPERIMENTAL RESULTS
|
| 589 |
+
|
| 590 |
+
Figure 5 show the loss of linear interpolation between the learned filter $w$ and ground truth filter $w _ { * }$ .
|
| 591 |
+
Our interpolation has the form $w _ { i n t e r } = \alpha w + ( 1 - \alpha ) w _ { * }$ where $\alpha \in [ 0 , 1 ]$ is the interpolation ratio.
|
| 592 |
+
Note that for all interpolation ratios, the loss remains very low.
|
| 593 |
+
|
| 594 |
+

|
| 595 |
+
Figure 5: Loss of linear interpolation between learned filter and the true filter.
|
parse/train/SkA-IE06W/SkA-IE06W_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkA-IE06W/SkA-IE06W_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkA-IE06W/SkA-IE06W_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkZxCk-0Z/SkZxCk-0Z.md
ADDED
|
@@ -0,0 +1,452 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CAN NEURAL NETWORKS UNDERSTAND LOGICAL ENTAILMENT?
|
| 2 |
+
|
| 3 |
+
Richard Evans∗
|
| 4 |
+
|
| 5 |
+
David Saxton∗
|
| 6 |
+
|
| 7 |
+
David Amos
|
| 8 |
+
|
| 9 |
+
Pushmeet Kohli
|
| 10 |
+
|
| 11 |
+
Edward Grefenstette∗
|
| 12 |
+
DeepMind
|
| 13 |
+
{richardevans,saxton,davidamos,pushmeet,etg}@google.com
|
| 14 |
+
|
| 15 |
+
# ABSTRACT
|
| 16 |
+
|
| 17 |
+
We introduce a new dataset of logical entailments for the purpose of measuring models’ ability to capture and exploit the structure of logical expressions against an entailment prediction task. We use this task to compare a series of architectures which are ubiquitous in the sequence-processing literature, in addition to a new model class—PossibleWorldNets—which computes entailment as a “convolution over possible worlds”. Results show that convolutional networks present the wrong inductive bias for this class of problems relative to LSTM RNNs, treestructured neural networks outperform LSTM RNNs due to their enhanced ability to exploit the syntax of logic, and PossibleWorldNets outperform all benchmarks.
|
| 18 |
+
|
| 19 |
+
# 1 INTRODUCTION
|
| 20 |
+
|
| 21 |
+
This paper seeks to answer two questions: “Can neural networks understand logical formulae well enough to detect entailment?”, and, more generally, “Which architectures are best at inferring, encoding, and relating features in a purely structural sequence-based problem?”. In answering these questions, we aim to better understand the inductive biases of popular architectures with regard to structure and abstraction in sequence data. Such understanding would help pave the road to agents and classifiers that reason structurally, in addition to reasoning on the basis of essentially semantic representations. In this paper, we provide a testbed for evaluating some aspects of neural networks’ ability to reason structurally and abstractly. We use it to compare a variety of popular network architectures and a new model we introduce, called PossibleWorldNet.
|
| 22 |
+
|
| 23 |
+
Neural network architectures lie at the heart of a variety of applications. They are practically ubiquitous across vision tasks (LeCun et al., 1995; Krizhevsky et al., 2012; Simonyan & Zisserman, 2014) and natural language understanding, from machine translation (Kalchbrenner & Blunsom, 2013; Sutskever et al., 2014; Bahdanau et al., 2014) to textual entailment (Bowman et al., 2015; Rocktaschel et al., 2015) via sentiment analysis (Socher et al., 2013; Kalchbrenner et al., 2014) and ¨ reading comprehension (Hermann et al., 2015; Hill et al., 2015; Rajpurkar et al., 2016). They have been used to synthesise programs (Ling et al., 2016; Parisotto et al., 2016; Devlin et al., 2017) or internalise algorithms (Graves et al., 2016; Grefenstette et al., 2015; Joulin & Mikolov, 2015; Kaiser & Sutskever, 2015; Reed & De Freitas, 2015). They form the basis of reinforcement learning agents capable of playing video games (Mnih et al., 2015), difficult perfect information games (Silver et al., 2016; Tian & Zhu, 2015), and navigating complex environments from raw pixels (Mirowski et al., 2016). An important question in this context is to find the inductive and generalisation properties of different neural architectures, particularly towards the ability to capture structure present in the input, an ability that might be important for many language and reasoning tasks. However, there is little work on studying these inductive biases in isolation by running these models on tasks that are primarily or purely about sequence structure, which we intend to address.
|
| 24 |
+
|
| 25 |
+
The paper’s contribution is three-fold. First, we introduce a new dataset for training and evaluating models. Second, we provide a thorough evaluation of the existing neural models on this dataset. Third, inspired by the semantic (model-theoretic) definition of entailment, we propose a variant of the TreeNet that evaluates the formulas in multiple different “possible worlds”, and which significantly outperforms the benchmarks. The structure of this paper is as follows. In Section 2, we introduce the new dataset and describe a generic data generation process for entailment datasets, which offers certain guarantees against the presence of superficial exploitable biases. In Section 3, we describe a series of baseline models used to validate the dataset, benchmarks from which we will derive our analyses of popular model architectures, and also introduce our new neural model, the PossibleWorldNet. In Section 4, we describe the structure of experiments, from which we obtained the results presented and discussed in Section 5. We offer a brief survey of related work in Section 6, before making concluding remarks in Section 7.
|
| 26 |
+
|
| 27 |
+
# 2 DATASET CREATION
|
| 28 |
+
|
| 29 |
+
Formal logics provide a symbolic toolkit for encoding and examining patterns of reasoning. They are structural calculi aiming to codify the norms of correct thought. The meanings of such statements are invariant to what the particular propositions stand for: to understand the entailment $( p \land q ) \models q$ , we only need to understand the semantics of—or related syntactic rules governing—a finite set of logical connectives, while $p$ and $q$ are meaningless arbitrary symbols selected to stand for distinct propositions. In other words, the problem of determining whether an entailment holds is a purely structural sequence-based problem: to evaluate whether an entailment is true, only the meaning of— or inference rules governing—the connectives is relevant. Everything else only has meaning via its place in the structure specified by an expression. These qualities suggest that detecting logical entailment is an excellent task for measuring the ability of models to capture, understand, or exploit structure. We present in this paper a generic process for generating entailment datasets, explained in detail in Appendix A, for any given logical system. In the specific dataset—generated through this process—presented in this section, we will focus on propositional logic, which is decidable but requires a worst case of $O ( 2 ^ { n } )$ operations (e.g. resolution steps, truth table rows), where $n$ is the number of unique propositional variables, to verify entailment.
|
| 30 |
+
|
| 31 |
+
Our dataset∗ $\mathcal { D }$ is composed of triples of the form $( A , B , A \models B )$ , where $A$ and $B$ are formulas of propositional logic, and $A \models B$ is 1 if $A$ entails $B$ , and 0 otherwise. For example, the data point $( p \land q , q , 1 )$ is positive because $p \wedge q$ entails $q$ , whereas $( q \vee r , r , 0 )$ is negative because $q \vee r$ does not entail $r$ . Entailment is primarily a semantic notion: $A$ entails $B$ if every model in which $A$ is true is also a model in which $B$ is true.
|
| 32 |
+
|
| 33 |
+
We impose various requirements on the dataset, to rule out superficial structural differences between $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ that can be easily exploited by “trivial” baselines†. We impose the following high level constraints on our data through the generative process, explained in detail in Appendix A: our classes must be balanced, and formulas in positive and negative examples must have the same distribution over length. Furthermore, we attempt to ensure that there are no recognisable differences in the distributions of lexical or syntactic features between the positive and negative examples. It would not be acceptable, for example, if a typical $B$ formula in a positive entailment $( A , B , 1 )$ had more disjunctions than a $B ^ { \prime }$ formula in a negative entailment $( A ^ { \prime } , B ^ { \prime } , 0 )$ .
|
| 34 |
+
|
| 35 |
+
If we simply sample formulas $A$ and $B$ and evaluate whether $A \models B$ , there are significant differences between the distributions of formulas for the positive and negative examples, which models can learn to exploit without needing to understand the structure of the problem. To avoid these issues, we use a different approach, that satisfies the above requirements. We sample 4-tuples of formulas $\left( A _ { 1 } , B _ { 1 } , A _ { 2 } , B _ { 2 } \right)$ such that:
|
| 36 |
+
|
| 37 |
+
$$
|
| 38 |
+
A _ { 1 } \models B _ { 1 } \qquad A _ { 2 } \models B _ { 2 } \qquad A _ { 1 } \uplus B _ { 2 } \qquad A _ { 2 } \uplus B _ { 1 }
|
| 39 |
+
$$
|
| 40 |
+
|
| 41 |
+
Here, each of the four formulas appears in one positive entailment and one negative entailment. This way, we minimise crude structural differences between the positive and negative examples. Here is a simple example (although the actual dataset has much longer formulas) of such a 4-tuple of datapoints:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
p \models p \lor q \qquad \neg p \land \neg q \models \neg q \qquad p \nmid \nleftarrow q \qquad \neg p \land \neg q \nmid \nleftarrow p \lor q
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Table 1: Dataset Statistics
|
| 48 |
+
|
| 49 |
+
<table><tr><td></td><td>Size</td><td>Mean # Vars</td><td>Mean # Ops</td><td>Mean Length</td><td>Mean 2# Vars</td></tr><tr><td>Train</td><td>100,000</td><td>4.5</td><td>5.3</td><td>11.3</td><td>52.2</td></tr><tr><td>Validate</td><td>5,000</td><td>5.1</td><td>6.8</td><td>13.0</td><td>75.7</td></tr><tr><td>Test (easy)</td><td>5,000</td><td>5.2</td><td>6.9</td><td>13.1</td><td>81.0</td></tr><tr><td>Test (hard)</td><td>5,000</td><td>5.8</td><td>17.4</td><td>31.5</td><td>184.4</td></tr><tr><td>Test (big)</td><td>5,000</td><td>8.0</td><td>20.9</td><td>38.7</td><td>3310.8</td></tr><tr><td>Test (massive)</td><td>2,230</td><td>18.4</td><td>49.4</td><td>88.8</td><td>848,570.0</td></tr><tr><td>Test (exam)</td><td>100</td><td>2.4</td><td>3.9</td><td>8.6</td><td>5.8</td></tr></table>
|
| 50 |
+
|
| 51 |
+
To generate these 4-tuples, we first generate pairs $( A , B )$ such that $A \models B$ . (To test if $A \models B$ , we test whether $A \land \lnot B$ is satisfiable, using minisat (Sorensson & Een, 2005)). Then we search through the set of pairs, looking for pairs of pairs, $( A _ { 1 } , B _ { 1 } )$ and $( A _ { 2 } , B _ { 2 } )$ , such that $A _ { 1 } \nvDash B _ { 2 }$ and $A _ { 2 } \nvDash B _ { 1 }$ . We present, in Appendix A, the full details of this generative process, its constraints and guarantees, and how we used particular baselines to validate the data.
|
| 52 |
+
|
| 53 |
+
# 2.1 SPLITTING THE DATASET
|
| 54 |
+
|
| 55 |
+
We produced train, validation, and test (easy) by generating one large set of 4-tuples, and splitting them into groups of sizes 100000, 5000, and 5000. The difficulty of evaluating an entailment depends on the number of propositional variables and the number of operators in the two formulas. In training, validation, and test (easy), we sample the number of propositional variables uniformly between 1 and 10 (there are 26 propositional variables in total: $a$ to $z$ ). In test (hard), we sample uniformly between 5 and 10. Our formula sampling method takes a parameter specifying the desired number of operators in the formula. In training, validation, and test (easy), the number of operators in a formula is sampled uniformly between 1 and 10. In our hard test set, the number of operators in a formula is sampled uniformly between 15 and 20.
|
| 56 |
+
|
| 57 |
+
For the test (big) dataset, we sampled formulas using between 1 and 20 variables (uniformly), and between 10 and 30 operators (again, uniformly). For test (massive), we used a different generating mechanism. We first sampled pairs of formulas $A$ , $B$ such that $A \models B$ . These had between 20 and 26 variables, and between 20 and 30 operators each. Then we generated a $B ^ { * }$ by mutating $B$ and checking that $A \nvDash B ^ { * }$ . See Table 1 for detailed statistics of the dataset sections, including the average difficulty (based on a complexity of $O ( 2 ^ { \# \operatorname { V a r s } } ) )$ of sequents in each fold.
|
| 58 |
+
|
| 59 |
+
The test (exam) dataset was assembled from 100 examples of logical entailment in the wild. We looked through various logic textbooks for classic examples of entailments. From these textbooks, we extracted true entailment triples $( A , B , 1 )$ where $A \models B$ . We added false triples $( A , B ^ { * } , 0 )$ , by mutating $B$ into $B ^ { * }$ and checking that $A \nvDash B ^ { * }$ .
|
| 60 |
+
|
| 61 |
+
In order to test models’ ability to generalise to new unseen formulas, we pruned out cases where formulas seen in validation and test were $\alpha$ -equivalent (equivalent up to renaming of symbols) to formulas seen in training. So, for example, if it had seen $p \Vdash ( \neg q \land p )$ in training, we did not want $r \Vdash ( \neg s \land r )$ to appear in either the test or validation sets. To do this, we converted all formulas to de-Bruijn form (see Pierce (2002), Chapter 6), and filtered out formulas in validation and test whose de-Bruijn form was identical to one of those in training. This prevents the system from being able to simply memorise examples it has seen in training.
|
| 62 |
+
|
| 63 |
+
# 2.2 DATA AUGMENTATION THROUGH SYMBOLIC VOCABULARY PERMUTATION
|
| 64 |
+
|
| 65 |
+
As discussed above, the logical connectives $( \vee , \wedge , \dots )$ are the only elements of the language in each dataset that have consistent implicit semantics across expressions. In this sense, two entailments $p \wedge q \vdash q$ and $a \wedge b \mapsto b$ should ideally be treated as identical by the model. To encourage models to capture this invariance, we add an optional data processing layer during training (not testing) whereby symbols are consistently replaced by other symbols of the same type within individual entailments before being input to the network according to the process described below. This is achieved by randomly sampling a permutation of $a , \ldots , z$ (the propositional variables used) for every training example, and applying this permutation to the left and right sequents. This process is analogous to augmenting image classification training with random reflections and crops.
|
| 66 |
+
|
| 67 |
+
# 3 MODELS
|
| 68 |
+
|
| 69 |
+
In this section, we first describe a couple of baseline models that verify the basic difficulty of the dataset, followed by a description of benchmark models which are commonly used (with some variation) in a variety of problems, and finally by a description of our new model, PossibleWorldNet.
|
| 70 |
+
|
| 71 |
+
# 3.1 BASELINES
|
| 72 |
+
|
| 73 |
+
The classes in the dataset are balanced in training, validation, and both test sets, so a random baseline (and a constant, majority-class predicting baseline) will obtain an accuracy of $50 \%$ on the test sets.
|
| 74 |
+
|
| 75 |
+
We define two neural baselines which, we believe, should not be able to perform competitively on this task, but may do better than random. The first is a linear bag of words (Linear BoW) model which embeds each symbol to a vector, and averages them, to produce a representation of each side of the sequent. These representations are then passed through a linear layer:
|
| 76 |
+
|
| 77 |
+
$$
|
| 78 |
+
P ( A \models B ) = \sigma \left( W \cdot \mathsf { c o n c a t } \left( g ( A ) , g ( B ) \right) + b \right) \quad \mathrm { w h e r e } \quad g ( X ) = \frac { 1 } { | X | } \sum _ { x \in X } \mathsf { e m b e d } ( x )
|
| 79 |
+
$$
|
| 80 |
+
|
| 81 |
+
The second is a similar architecture, where the final linear layer is replaced with a multi-layer perceptron (MLP BoW):
|
| 82 |
+
|
| 83 |
+
$$
|
| 84 |
+
P ( A \models B ) = \sigma ( { \mathrm { M L P } } ( \operatorname { c o n c a t } \left( g ( A ) , g ( B ) \right) ) ) \quad { \mathrm { w h e r e } } \quad g ( X ) = { \frac { 1 } { | X | } } \sum _ { x \in X } { \mathrm { e m b e d } } ( x )
|
| 85 |
+
$$
|
| 86 |
+
|
| 87 |
+
In both of these cases, the baselines are expected to have limited performance since they can only capture entailment by modelling the contribution of symbols individually, rather than by modelling structure, since the summation in $g$ destroys all structural information (including word order). We use these results to provide an indication of the difficulty of the dataset.
|
| 88 |
+
|
| 89 |
+
# 3.2 BENCHMARKS
|
| 90 |
+
|
| 91 |
+
We present here a series of benchmark models, not only to serve the purpose of being grounds for comparison for new models tested against this dataset, but also to compare and contrast the performance of fairly ubiquitous model architectures on this purely syntactic problem.
|
| 92 |
+
|
| 93 |
+
We distinguish two categories of models: encoding models and relational models. Encoding models, with exceptions specified below, jointly learn an encoding function $f$ and an MLP, such that given a sequent $A \models B$ , the model expresses
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
P ( A \models B ) = \sigma \left( \operatorname { M L P } ( \operatorname { c o n c a t } ( f ( A ) , f ( B ) ) ) \right) .
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
In this sense $f$ produces a representation of each side of the sequent which contains all the information needed for the MLP to decide on entailment. In contrast, relational models will observe the pair of expressions and make a decision, perhaps by traversing both expressions, or by relating substructure of one expression to that of the other. These models express a more general formulation
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
P ( A \models B ) = \sigma \left( f ( A , B ) \right) .
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
# 3.2.1 ENCODER BENCHMARKS
|
| 106 |
+
|
| 107 |
+
The first encoder benchmark implemented is a Deep Convolutional Network Encoder (ConvNet Encoders), akin to architectures described in the convolutional networks for text literature (Kalchbrenner et al., 2014; Zhang et al., 2015; Kim et al., 2016). Here, the encoder function $f$ is a stack of one dimensional convolutions over sequence symbols embedded by an embedding operation embedSeq, interleaved with max pooling layers every $k$ layers (which is a model hyperparameter), followed by $n$ (also a hyperparameter) fully connected layers:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
f ( X ) = \mathbf { M L P } ( \mathbf { C o n v 1 D } _ { n } ( . . . \mathbf { m a x P o o l } ( \mathbf { C o n v 1 D } _ { k } ( . . . \mathbf { C o n v 1 D } _ { 1 } ( \mathbf { e m b e d S e q } ( X ) ) ) . . . ) ) . . ) )
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
The second and third encoder benchmarks are an LSTM (Hochreiter & Schmidhuber, 1997) encoder network (LSTM Encoders), and its bidirectional LSTM variant (BiDirLSTM Encoders). For the LSTM encoder, we embed the sequence symbols, and run an LSTM RNN over them, ignoring the output until the final state:
|
| 114 |
+
|
| 115 |
+
$$
|
| 116 |
+
f ( X ) = h _ { \mathrm { f i n a l } } \quad \mathrm { w h e r e } \quad h _ { \mathrm { f i n a l } } = \mathrm { L S T M } ( \mathrm { e m b e d S e q } ( X ) )
|
| 117 |
+
$$
|
| 118 |
+
|
| 119 |
+
For the bidirectional variant, two separate LSTM RNNs ${ \mathrm { L S T M } } ^ { }$ and $\mathrm { L S T M } ^ { }$ are run over the sequence in opposite directions. Their respective final states are concatenated to form a representation of the expression:
|
| 120 |
+
|
| 121 |
+
$$
|
| 122 |
+
\begin{array} { r } { \begin{array} { r l } { f ( X ) = \mathrm { c o n c a t } ( h _ { \mathrm { f i n a l } } ^ { \left. } , h _ { \mathrm { f i n a l } } ^ { \right. } ) } & { \mathrm { w h e r e } \quad h _ { \mathrm { f i n a l } } ^ { \left. } = \mathrm { L S T M } ^ { \left. } ( \mathrm { e m b e d S e q } ( X ) ) } \\ { \mathrm { a n d } \quad h _ { \mathrm { f i n a l } } ^ { \right. } = \mathrm { L S T M } ^ { \right. } ( \mathrm { e m b e d S e q } ( X ) ) } \end{array} } \end{array}
|
| 123 |
+
$$
|
| 124 |
+
|
| 125 |
+
The benchmarks described thus far do not explicitly condition on structure, even when it is known, as they are designed to traverse a sequence from left to right and model dependencies in the data implicitly. In contrast, we now consider encoder benchmarks which rely on the provision of the syntactic structure of the sequence they encode, and exploit it to determine the order of composition. This inductive bias, which may be incorrect in certain domains (e.g., where no syntax is defined) or difficult to achieve in domains such as natural language text (where syntactic structure is latent and ambiguous), is easy to achieve for logic (where the syntax is known). The experiments below will seek to demonstrate whether is a helpful inductive architectural bias.
|
| 126 |
+
|
| 127 |
+
The fourth and fifth encoding benchmarks are (tree) recursive neural networks (Tai et al., 2015; Le & Zuidema, 2015; Zhu et al., 2015; Allamanis et al., 2016), also known as TreeRNNs. These recursively encode the logical expression using the parse structure‡, where leaf nodes of the tree (propositional variables) are embedded as learnable vectors, and each logical operator then combines one or more of these embedded values to produce a new embedding. For example, the expression $( \neg a ) \lor b$ is parsed as the tree with leaves $a$ and $b$ , a unary node $\neg$ (with input the embedding of $a$ ), and a binary node $\vee$ (with inputs the embeddings of $\neg a$ and $b$ ). Following Allamanis et al. (2016), the fourth encoding benchmark is a simple TreeRNN (TreeNet Encoders), where each operator ‘op’ concatenates its inputs to a vector $x$ , and produces the output
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
p = { \frac { h } { \| h \| _ { 2 } } } \quad { \mathrm { w h e r e } } \quad h = W _ { 1 } ^ { \mathrm { o p } } x + W _ { 2 } ^ { \mathrm { o p } } \sigma ( W _ { 3 } ^ { \mathrm { o p } } x + b _ { 3 } ^ { \mathrm { o p } } ) + b _ { 1 } ^ { \mathrm { o p } } .
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
The fifth and final encoding benchmark (TreeLSTM Encoders) is a variant of TreeRNNs which adapts LSTM cell updates. This helps capture long range dependencies and propagate gradient within the tree. Our implementation follows Tai et al. (2015), modified to have per-op parameters as per TreeRNNs (see, also, the work by Le & Zuidema (2015) and Zhu et al. (2015)).
|
| 134 |
+
|
| 135 |
+
# 3.2.2 RELATIONAL BENCHMARKS
|
| 136 |
+
|
| 137 |
+
In addition to these encoding benchmarks, we define a pair of relational benchmarks, following Rocktaschel et al. (2015). We will traverse the entire sequent with LSTM RNNs or bidirectional ¨ LSTM RNNs but concatenating the left hand side and right hand side sequences into a single sequence separated by a held-out symbol (effectively standing for $\vDash$ ). For the LSTM variant (LSTM Traversal), the model is:
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
P ( A \models B ) = \sigma ( \mathbf { M L P } ( h _ { \mathrm { f i n a l } } ) ) \quad \mathrm { w h e r e } \quad h _ { \mathrm { f i n a l } } = \mathbf { L S T M } ( \mathrm { e m b e d S e q } ( \mathrm { j o i n } ( A , \mathrm { ^ { c } \vdash ^ { \circ } , } B ) ) )
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+
For the bidirectional case (BiDirLSTM Traversal), the extension is
|
| 144 |
+
|
| 145 |
+
$$
|
| 146 |
+
\begin{array} { r l } { P ( A \models B ) = \sigma ( \mathbf { M L P } ( h _ { \mathrm { f i n a l } } ^ { } ) ) } & { \mathrm { w h e r e } \quad h _ { \mathrm { f i n a l } } ^ { } = \mathrm { c o n c a t } ( h _ { \mathrm { f i n a l } } ^ { } , h _ { \mathrm { f i n a l } } ^ { } ) } \\ & { \mathrm { w i t h } \quad h _ { \mathrm { f i n a l } } ^ { } = \mathbf { L S T M } ^ { } ( \mathrm { e m b e d S e q } ( X ) ) } \\ & { \mathrm { a n d } \quad h _ { \mathrm { f i n a l } } ^ { } = \mathbf { L S T M } ^ { } ( \mathrm { e m b e d S e q } ( X ) ) } \end{array}
|
| 147 |
+
$$
|
| 148 |
+
|
| 149 |
+
# 3.2.3 THE TRANSFORMER BENCHMARK
|
| 150 |
+
|
| 151 |
+
We also benchmark the Transformer model, also known as Attention Is All You Need (Vaswani et al., 2017), which is a sequence-to-sequence model achieving state-of-the-art results in machine translation. As in the relational LSTM models, we concatenate and embed the sequents, but instead of separating the sequents by a held-out symbol, we add a learnable bias to the right sequent in this embedding. This augments the Transformer’s method of adding timing signals to distinguishing symbols at different positions. We then decode a sequence of length 1 and apply a linear transformation to get the final entailment prediction logits.
|
| 152 |
+
|
| 153 |
+
# 3.3 THE POSSIBLEWORLDNET
|
| 154 |
+
|
| 155 |
+
In this section, we introduce our new model. Inspired by the semantic (model-theoretic) definition of entailment, we propose a variant on TreeNets that evaluates the pair of formulas in different “possible worlds”.
|
| 156 |
+
|
| 157 |
+
Entailment is, first and foremost, a semantic notion. Given a set $\mathcal { W }$ of worlds,
|
| 158 |
+
|
| 159 |
+
Here $s a t : W o r l d \times F o r m u l a B o o l$ indicates whether a formula is satisfied in a particular world.
|
| 160 |
+
|
| 161 |
+
We shall first define a variant of sat that produces integers, and then define another variant that operates on real values. First, define $s a t _ { 2 } : W o r l d \times F o r m u l a \{ 0 , 1 \}$ :
|
| 162 |
+
|
| 163 |
+
$$
|
| 164 |
+
s a t _ { 2 } ( w , A ) = \mathbb { 1 } ( s a t ( w , A ) )
|
| 165 |
+
$$
|
| 166 |
+
|
| 167 |
+
Using $s a t _ { 2 }$ , we can redefine entailment as:
|
| 168 |
+
|
| 169 |
+
$$
|
| 170 |
+
A \models B \operatorname { i f f } \forall w \in \mathcal { W } s a t _ { 2 } ( w , A ) \leq s a t _ { 2 } ( w , B )
|
| 171 |
+
$$
|
| 172 |
+
|
| 173 |
+
Assume we have a finite set of worlds ${ \mathcal { W } } = \{ w _ { 1 } , . . . , w _ { n } \}$ ; then we can recast as:
|
| 174 |
+
|
| 175 |
+
$$
|
| 176 |
+
P ( A \mid = B ) = \prod _ { i = 1 } ^ { n } \mathbb { 1 } ( s a t _ { 2 } ( w _ { i } , A ) \leq s a t _ { 2 } ( w _ { i } , B ) )
|
| 177 |
+
$$
|
| 178 |
+
|
| 179 |
+
We are going to produce a relaxation of Proposition 1 by replacing $s a t _ { 2 }$ and $\leq$ with continuous functions. Assume we have a variant of $s a t _ { 2 }$ that produces vectors of real values:
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
s a t _ { 3 } : W o r l d \times F o r m u l a \mathbb { R } ^ { d }
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
Assume we have a function $f : \mathbb { R } ^ { d } \times \mathbb { R } ^ { d } [ 0 , 1 ]$ that generalises $\leq$ to vectors of real values. Now we can rewrite as:
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
P ( A \left| = B \right. ) = \prod _ { i = 1 } ^ { n } f ( s a t _ { 3 } ( w _ { i } , A ) , s a t _ { 3 } ( w _ { i } , B ) )
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
In our neural model, $f$ is implemented by a simple linear layer using learnable weights $W _ { f }$ and $b _ { f }$ :
|
| 192 |
+
|
| 193 |
+
$$
|
| 194 |
+
f ( x , y ) = \sigma ( W _ { f } \cdot \operatorname { c o n c a t } ( x , y ) + b _ { f } )
|
| 195 |
+
$$
|
| 196 |
+
|
| 197 |
+
We use a set of random vectors to represent our worlds $\{ w _ { 1 } , . . . , w _ { n } \}$ , where $w _ { i } \in \mathbb { R } ^ { k }$ is a vector of length $k$ of values drawn uniformly randomly. We implement $s a t _ { 3 }$ using a simplified TreeNN (see Section 3.2) as described below. Since $s a t _ { 3 }$ depends on the particular world $w _ { i }$ we are currently evaluating, we add an additional parameter to the TreeNN so that the embedder has access to the current world $w _ { i }$ . We add an additional weight matrix $W _ { 4 } ^ { o p }$ so that propositional variables can learn which aspect of the current world to focus on. If the formula is of the form $o p ( l , r )$ , where $o p$ is nullary (a propositional variable), unary (e.g., negation), or binary (e.g., conjunction), and $l$ and $r$ are the embeddings of the constituents of the expression, then
|
| 198 |
+
|
| 199 |
+
$$
|
| 200 |
+
s a t _ { 3 } ( w _ { i } , o p ( l , r ) ) = \frac { h } { \| h \| _ { 2 } } \quad \mathrm { w h e r e } \quad h = \left\{ \begin{array} { l l } { W _ { 4 } ^ { o p } w _ { i } } & { \mathrm { w h e r e ~ } o p \mathrm { ~ i s ~ n u l l a r y ~ ( l e a f ) } } \\ { W _ { 1 } ^ { o p } x + b _ { 1 } ^ { o p } } & { \mathrm { o t h e r w i s e } } \end{array} \right.
|
| 201 |
+
$$
|
| 202 |
+
|
| 203 |
+
where $x = \mathrm { c o n c a t } ( l , r )$ .
|
| 204 |
+
|
| 205 |
+
To evaluate whether $A \models B$ , the PossibleWorldNet generates a set of imagined “worlds”, and then evaluates $A$ and $B$ in each of those worlds. It is a form of “convolution over possible worlds”. As we will see in Section 5, the quality of the model increases steadily as we increase the number of imagined worlds.
|
| 206 |
+
|
| 207 |
+
This architecture was inspired by semantic (model-theoretic) approaches to detecting entailment, but it does not encode any constraint on propositional logic in particular or formal logic in general. The procedure of evaluating sentences in multiple worlds, and combining those evaluations in one product, is just what “entailment” means; so we speculate that an architecture like this should, in principle, be equally applicable to other logics (e.g., intuitionistic logic, modal logics, first-order logic) and also to non-formal entailments in natural language sentences.
|
| 208 |
+
|
| 209 |
+
Abstracting away from the particular interpretation of these vectors as “worlds”, this method generates $n$ copies of the model with shared weights, one for each vector $w _ { i }$ ; each nullary operator learns a different projection on $w _ { i }$ . It makes predictions via a linear layer combining two representations, and then takes the product of the predictions as the overall prediction.
|
| 210 |
+
|
| 211 |
+
# 4 EXPERIMENTAL SETUP
|
| 212 |
+
|
| 213 |
+
For each encoder benchmark architecture, the parameters of the encoders for the left and right hand sides of the sequent are shared. The MLP which performs binary classification to detect entailment based on the expression representations produced by the encoders is model-specific (re-initialised for each model) and jointly trained. Symbol embedding matrices are also model-specific, shared across encoders, and jointly trained.
|
| 214 |
+
|
| 215 |
+
We implemented all architectures in TensorFlow (Abadi et al., 2016). We optimised all models with Adam (Kingma & Ba, 2014). We grid searched across learning rates in $[ 1 \mathrm { e } { - } 5 , 1 \mathrm { e } { - } 4 , 1 \mathrm { e } { - } 3 ]$ , minibatch sizes in [64, 128], and trained each model thrice with different random seeds. Per architecture, we grid-searched across specific hyperparameters as follows. We searched across 2 and 3 layer MLPs wherever an MLP existed in a benchmark, and across layer sizes in [32, 64] for MLP hidden layers, embedding sizes, and RNN cell size (where applicable). Additionally for convolutional networks, we searched across a number of convolutional layers in [4, 6, 8], across kernel size in [5, 7, 9], across number of channels in [32, 64], and across pooling interval in $[ 0 , 5 , 3 , 1 ]$ (where 0 indicates no pooling). For the Transformer model, we searched across the number of encoder and decoder layers in the range [6, 8, 10], dropout probability in the range $[ 0 , 0 . 1 , 0 . 5 ]$ , and filter size in the range [128, 256, 384]. Finally, for all models, we ran them with and without the symbol permutation data augmentation technique described in Section 2.2.
|
| 216 |
+
|
| 217 |
+
As a result of the grid search, we selected the best model for each architecture against validation results, and record training, validation, and all test accuracies for the associated time step, which we present below.
|
| 218 |
+
|
| 219 |
+
# 5 RESULTS AND DISCUSSION
|
| 220 |
+
|
| 221 |
+
Experimental results are shown in Table 2. The test scores of the best performing overall model are indicated in bold. The test scores of the best performing model which does not have privileged access to the syntax or semantics of the logic (i.e. excluding TreeRNN-based models) are italicised. The best benchmark test results are underlined.
|
| 222 |
+
|
| 223 |
+
We observe that the baselines are doing better than random (8.2 points above for the easy test set, for the MLP BoW, and 2.6 above random for the hard test set). This indicates that there are some small number of exploitable regularities at the symbolic level in this dataset, but that they do not provide significant information.
|
| 224 |
+
|
| 225 |
+
The baseline results show that convolution networks and BiDirLSTMs encoders obtain relatively mediocre results compared to other models, as do LSTM and BiDirLSTM Traversal models. LSTM encoders is the best performing model which does not have privileged access to the syntax trees. Their success relative to BiDirLSTMs Encoders could be due to their reduced number of parameters guarding against overfitting, and rendering them easier to optimise, but it is plausible BiDirLSTMs Encoders would perform similarly with a more fine-grained grid search. Both tree-based models take the lead amongst the benchmarks, with the TreeLSTM being the best performing benchmark overall on both test sets. For most models except baselines, the symbol permutation data augmentation yielded 2–3 point increase in accuracy on weaker models (BiDirLSTM encoders and traversals, an convolutional networks) and between 7–15 point increases for the Tree-based models. This indicates that this data augmentation strategy is particularly well fitted for letting structure-aware models capture, at the representational level, the arbitrariness of symbols indicating unbound variables.
|
| 226 |
+
|
| 227 |
+
Table 2: Propositional Logic Model Accuracy.
|
| 228 |
+
|
| 229 |
+
<table><tr><td colspan="2">model</td><td>valid</td><td>test (easy)</td><td>test (hard)</td><td>test (big)</td><td>test (massive)</td><td>test (exam)</td></tr><tr><td rowspan="2">baselines</td><td>Linear BoW</td><td>52.6</td><td>51.4</td><td>50.0</td><td>49.7</td><td>50.0</td><td>52.0</td></tr><tr><td>MLP BoW</td><td>57.8</td><td>57.1</td><td>51.0</td><td>55.8</td><td>49.9</td><td>56.0</td></tr><tr><td rowspan="8">benchmark models</td><td>Transformer</td><td>57.1</td><td>56.8</td><td>50.8</td><td>51.2</td><td>50.3</td><td>46.9</td></tr><tr><td>ConvNet Encoders</td><td>59.3</td><td>59.7</td><td>52.6</td><td>54.9</td><td>50.4</td><td>54.0</td></tr><tr><td>LSTM Encoders</td><td>68.3</td><td>68.3</td><td>58.1</td><td>61.1</td><td>52.7</td><td>70.0</td></tr><tr><td>BiDirLSTM Encoders</td><td>66.6</td><td>65.8</td><td>58.2</td><td>61.5</td><td>51.6</td><td>78.0</td></tr><tr><td>TreeNet Encoders</td><td>72.7</td><td>72.2</td><td>69.7</td><td>67.9</td><td>56.6</td><td>85.0</td></tr><tr><td>TreeLSTMEncoders</td><td>79.1</td><td>77.8</td><td>74.2</td><td>74.2</td><td>59.3</td><td>75.0</td></tr><tr><td>LSTMTraversal</td><td>62.5</td><td>61.8</td><td>56.2</td><td>57.3</td><td>50.6</td><td>61.0</td></tr><tr><td>BiDirLSTMTraversal</td><td>63.3</td><td>64.0</td><td>55.0</td><td>57.9</td><td>50.5</td><td>66.0</td></tr><tr><td>new model</td><td>PossibleWorldNet</td><td>98.7</td><td>98.6</td><td>96.7</td><td>93.9</td><td>73.4</td><td>96.0</td></tr></table>
|
| 230 |
+
|
| 231 |
+
Overall, these results show clearly that models that exploit structure in problems where it is provided, unambiguous, and a central feature of the task, outperform models which must implicitly model the structure of sequences. LSTM-based encoders provide robust and competitive results, although bidirectionality is not necessarily always the obvious choice due to optimisation and overfitting problems. Perhaps counter-intuitively, given the results of Rocktaschel et al. (2015), traversal ¨ models do not outperform encoding models in this pair-of-sequences traversal problem, indicating that they may be better at capturing the sort of long-range dependencies need to recognise textual entailment better than they are at capturing structure in general.
|
| 232 |
+
|
| 233 |
+
We conclude, from these benchmark results, that tree structured networks may be a better choice for domains with unambiguous syntax, such as analysing formal languages or programs. For domains such as natural language understanding, both convolutional and recurrent network architectures have had some success, but our experiments indicate that this may be due to the fact that existing tasks favour models which capture representational or semantic regularities, and do not adequately test for structural or syntactic reasoning. In particular, the poor performance of convolutional nets on this task serves as a useful indicator that while they present the right inductive bias for capturing structure in images, where topological proximity usually indicates a joint semantic contribution (pixels close by are likely to contribute to the same “part” of an image, such as an edge or pattern), this inductive bias does not carry over to sequences particularly well (where dependencies may be significantly more sparse, structured, and distant)§. The results for the transformer benchmark indicate that while this architecture can capture sufficient structure for machine translation, allowing for the appropriate word order in the output, and accounting for disambiguation or relational information where it exists within sentences, it does not capture with sufficient precision the more hierarchical structure which exists in logical expressions.
|
| 234 |
+
|
| 235 |
+
The best performing model overall is the PossibleWorldNet, which achieves significantly higher results than the other models, with $9 9 . 3 \%$ accuracy on test (easy), and $9 7 . 3 \%$ accuracy on test (hard). This is as to be expected, as it has the strongest inductive bias. This inductive bias has two components. First, the model has knowledge of the syntactic structure of the expression, since it is a variant of a TreeNet. Second, inspired by the definition of semantic (model-theoretic) entailment in general, the model evaluates the pair of formulas in lots of different situations (“possible worlds”) and combines the various results together in a product¶.
|
| 236 |
+
|
| 237 |
+
The quality of the PossibleWorldNet depends directly on the number of “possible worlds” it considers (see Figure 1). As we increase the number of possible worlds, the validation error rate goes down steadily. Note that the data-efficiency also increases as we increase the number of worlds. This is because adding worlds to the model does not increase the number of model parameters—it just increases the number of different “possibilities” that are considered.
|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
Figure 1: The quality of the PossibleWorldNet as we vary the number of possible worlds
|
| 241 |
+
|
| 242 |
+
In propositional logic, of course, if we are allowed to generate every single truth-value assignment, then it is trivial to detect entailment by checking each one. In our big test set, there are on average more than 3,000 possible truth-value assignments. In our massive test set, there are on average over 800,000 possible assignments. (See Table 1). The PossibleWorldNet considers at most 256 different worlds, which is only $7 \%$ of the expected total number of rows needed in the big test set, and only $0 . 0 3 \%$ of the expected number of rows needed for the massive test set.
|
| 243 |
+
|
| 244 |
+
To understand this result, we sample 32, 64, 128 and 256 truth table rows (variable truth-value assignments) for each pair of formulas in Test (hard), and reject entailment if a single evaluation for the formulas amongst these finds the left hand side to be true while the right hand side is false. This gives us an estimate of the accuracy of sampling a number of truth table rows equal to the number of possible worlds in our model. We estimate that these statistical methods have $7 5 . 9 \%$ , $8 6 . 5 \%$ , $9 3 . 4 \%$ and $9 7 . 2 \%$ chance of finding a countermodel, respectively. This seems to indicate that PossibleWorldNet is capable of exploiting repeated computation across projections of random noise in order to learn, solely based on the label likelihood objective, something akin to a modelbased solution to entailment by treating the random-noise as variable valuations.
|
| 245 |
+
|
| 246 |
+
# 6 RELATED WORK
|
| 247 |
+
|
| 248 |
+
Zaremba et al. (2014) show how a neural architecture can be used to optimise matrix expressions. They generate all expressions up to a certain depth, group them into equivalence classes, and train a recursive neural network classifier to detect whether two expressions are in the same equivalence class. They use a recursive neural network (Socher et al., 2012) to guide the search for an optimised equivalent expression. There are two major differences between this work and ours. First, the classifier is predicting whether two matrix expressions (e.g. $A$ and $( A ^ { T } ) ^ { T } ,$ ) compute the same values; this is an equivalence relation, while entailment is a partial order. Second, their dataset consists of matrix expressions containing at most one variable, while our formulas contain many variables.
|
| 249 |
+
|
| 250 |
+
Allamanis et al. (2016) use a recursive neural network to learn whether two expressions are equivalent. They tested on two datasets: propositional logic and polynomials. There are two main differences between their approach and ours. First, we consider entailment while they consider equivalence; equivalence is a symmetric relation, while entailment is not symmetric. Second, we consider entailment as a relational classification problem: given a pair of expressions $A$ and $B$ , predict whether $A$ entails $B$ . In their paper, by contrast, they generate a set of $k$ equivalence-classes of formulas with the same truth-conditions, and ask the network to predict which of these $k$ classes a single formula falls into. Their task is more specific: their network is only able to classify a formula from a new equivalence class that has not been seen during training if it has additional auxiliary information about that class (e.g. exemplar members of the class).
|
| 251 |
+
|
| 252 |
+
Recognizing textual entailment (RTE) between natural language sentences is a central task in natural language processing. (See Dagan et al. (2006); for a recent dataset, see Bowman et al. (2015)). Some approaches (e.g., Wang & Jiang (2015) and Rocktaschel et al. (2015)) use LSTMs with attention, ¨ while others (e.g., Yin et al. (2015)) use a convolutional neural network with attention. Of course, recognizing entailment between natural language sentences is a very different task from recognizing entailment between logical formulas. Evaluating an entailment between natural language sentences requires understanding the meaning of the non-logical terms in the sentence. For example, the inference from “An ice skating rink placed outdoors is full of people” to “A lot of people are in an ice skating park” requires knowing the non-logical semantic information that an outdoors ice skating rink is also an ice skating park.
|
| 253 |
+
|
| 254 |
+
Current neural models do not always understand the structure of the sentences they are evaluating. In Bowman et al. (2015), all the neural models they considered wrongly claimed that “A man wearing padded arm protection is being bitten by a German shepherd dog” entails “A man bit a dog”. We believe that isolating the purely structural sub-problem will be useful because only networks that can reliably predict entailment in a purely formal setting, such as propositional (or first-order) logic, will be capable of getting these sorts of examples consistently correct.
|
| 255 |
+
|
| 256 |
+
# 7 CONCLUSION
|
| 257 |
+
|
| 258 |
+
In this paper, we have introduced a new process for generating datasets for the purpose of recognising logical entailment. This was used to compare benchmarks and a new model on a task which is primarily about understanding and exploiting structure. We have established two clear results on the basis of this task. First, and perhaps most intuitively, architectures which make explicit use of structure will perform significantly better than those which must implicitly capture it. Second, the best model is the one that has a strong architectural bias towards capturing the possible world semantics of entailment. In addition to these two points, experimental results also shed some light on the relative abilities of implicit structure models—namely LSTM and Convolution networkbased architectures—to capture structure, showing that convolutional networks may not present the right inductive bias to capture and exploit the heterogeneous and deeply structured syntax in certain sequence-based problems, both for formal and natural languages.
|
| 259 |
+
|
| 260 |
+
This conclusion is to be expected: the most successful models are those with the most prior knowledge about the generic structure of the task at hand. But our dataset throws new light on this unsurprising thought, by providing a new data-point on which to evaluate neural models’ ability to understand structural sequence problems. Logical entailment, unlike textual entailment, depends only on the meaning of the logical operators, and of the place particular arbitrarily-named variables hold within a structure. Here, we have a task in which a network’s understanding of structure can be disentangled from its understanding of the meaning of words.
|
| 261 |
+
|
| 262 |
+
# ACKNOWLEDGMENTS
|
| 263 |
+
|
| 264 |
+
We thank our colleagues at DeepMind for their insightful comments during the preparation of this paper, and in particular Yujia Li, Chris Dyer, and Alex Graves.
|
| 265 |
+
|
| 266 |
+
# REFERENCES
|
| 267 |
+
|
| 268 |
+
Mart´ın Abadi, Ashish Agarwal, Paul Barham, Eugene Brevdo, Zhifeng Chen, Craig Citro, Greg S Corrado, Andy Davis, Jeffrey Dean, Matthieu Devin, et al. Tensorflow: Large-scale machine learning on heterogeneous distributed systems. arXiv preprint arXiv:1603.04467, 2016.
|
| 269 |
+
|
| 270 |
+
Miltiadis Allamanis, Pankajan Chanthirasegaran, Pushmeet Kohli, and Charles Sutton. Learning continuous semantic representations of symbolic expressions. arXiv preprint arXiv:1611.01423, 2016.
|
| 271 |
+
|
| 272 |
+
Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
|
| 273 |
+
|
| 274 |
+
Samuel R Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. A large annotated corpus for learning natural language inference. arXiv preprint arXiv:1508.05326, 2015.
|
| 275 |
+
|
| 276 |
+
Ido Dagan, Oren Glickman, and Bernardo Magnini. The pascal recognising textual entailment challenge. In Machine learning challenges. evaluating predictive uncertainty, visual object classification, and recognising tectual entailment, pp. 177–190. Springer, 2006.
|
| 277 |
+
|
| 278 |
+
Jacob Devlin, Jonathan Uesato, Surya Bhupatiraju, Rishabh Singh, Abdel-rahman Mohamed, and Pushmeet Kohli. Robustfill: Neural program learning under noisy i/o. arXiv preprint arXiv:1703.07469, 2017.
|
| 279 |
+
|
| 280 |
+
Alex Graves, Greg Wayne, Malcolm Reynolds, Tim Harley, Ivo Danihelka, Agnieszka GrabskaBarwinska, Sergio G ´ omez Colmenarejo, Edward Grefenstette, Tiago Ramalho, John Agapiou, ´ et al. Hybrid computing using a neural network with dynamic external memory. Nature, 538 (7626):471–476, 2016.
|
| 281 |
+
|
| 282 |
+
Edward Grefenstette, Karl Moritz Hermann, Mustafa Suleyman, and Phil Blunsom. Learning to transduce with unbounded memory. In Advances in Neural Information Processing Systems, pp. 1828–1836, 2015.
|
| 283 |
+
|
| 284 |
+
Karl Moritz Hermann, Tomas Kocisky, Edward Grefenstette, Lasse Espeholt, Will Kay, Mustafa Suleyman, and Phil Blunsom. Teaching machines to read and comprehend. In Advances in Neural Information Processing Systems, pp. 1693–1701, 2015.
|
| 285 |
+
|
| 286 |
+
Felix Hill, Antoine Bordes, Sumit Chopra, and Jason Weston. The goldilocks principle: Reading children’s books with explicit memory representations. arXiv preprint arXiv:1511.02301, 2015.
|
| 287 |
+
|
| 288 |
+
Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
|
| 289 |
+
|
| 290 |
+
Armand Joulin and Tomas Mikolov. Inferring algorithmic patterns with stack-augmented recurrent nets. In Advances in neural information processing systems, pp. 190–198, 2015.
|
| 291 |
+
|
| 292 |
+
Łukasz Kaiser and Ilya Sutskever. Neural gpus learn algorithms. arXiv preprint arXiv:1511.08228, 2015.
|
| 293 |
+
|
| 294 |
+
Nal Kalchbrenner and Phil Blunsom. Recurrent continuous translation models. In EMNLP, volume 3, pp. 413, 2013.
|
| 295 |
+
|
| 296 |
+
Nal Kalchbrenner, Edward Grefenstette, and Phil Blunsom. A convolutional neural network for modelling sentences. arXiv preprint arXiv:1404.2188, 2014.
|
| 297 |
+
|
| 298 |
+
Yoon Kim, Yacine Jernite, David Sontag, and Alexander M Rush. Character-aware neural language models. In AAAI, pp. 2741–2749, 2016.
|
| 299 |
+
|
| 300 |
+
Diederik Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
|
| 301 |
+
|
| 302 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In Advances in neural information processing systems, pp. 1097–1105, 2012.
|
| 303 |
+
|
| 304 |
+
Phong Le and Willem Zuidema. Compositional distributional semantics with long short term memory. arXiv preprint arXiv:1503.02510, 2015.
|
| 305 |
+
|
| 306 |
+
Yann LeCun, Yoshua Bengio, et al. Convolutional networks for images, speech, and time series. The handbook of brain theory and neural networks, 3361(10):1995, 1995.
|
| 307 |
+
|
| 308 |
+
Wang Ling, Edward Grefenstette, Karl Moritz Hermann, Toma´s Ko ˇ cisk ˇ y, Andrew Senior, Fumin \` Wang, and Phil Blunsom. Latent predictor networks for code generation. arXiv preprint arXiv:1603.06744, 2016.
|
| 309 |
+
|
| 310 |
+
Piotr Mirowski, Razvan Pascanu, Fabio Viola, Hubert Soyer, Andy Ballard, Andrea Banino, Misha Denil, Ross Goroshin, Laurent Sifre, Koray Kavukcuoglu, et al. Learning to navigate in complex environments. arXiv preprint arXiv:1611.03673, 2016.
|
| 311 |
+
|
| 312 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
|
| 313 |
+
|
| 314 |
+
Emilio Parisotto, Abdel-rahman Mohamed, Rishabh Singh, Lihong Li, Dengyong Zhou, and Pushmeet Kohli. Neuro-symbolic program synthesis. arXiv preprint arXiv:1611.01855, 2016.
|
| 315 |
+
|
| 316 |
+
Benjamin C Pierce. Types and programming languages. MIT press, 2002.
|
| 317 |
+
|
| 318 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. arXiv preprint arXiv:1606.05250, 2016.
|
| 319 |
+
|
| 320 |
+
Scott Reed and Nando De Freitas. Neural programmer-interpreters. arXiv preprint arXiv:1511.06279, 2015.
|
| 321 |
+
|
| 322 |
+
Tim Rocktaschel, Edward Grefenstette, Karl Moritz Hermann, Tom ¨ a´s Ko ˇ cisk ˇ y, and Phil Blunsom. \` Reasoning about entailment with neural attention. arXiv preprint arXiv:1509.06664, 2015.
|
| 323 |
+
|
| 324 |
+
David Silver, Aja Huang, Chris J Maddison, Arthur Guez, Laurent Sifre, George Van Den Driessche, Julian Schrittwieser, Ioannis Antonoglou, Veda Panneershelvam, Marc Lanctot, et al. Mastering the game of go with deep neural networks and tree search. Nature, 529(7587):484–489, 2016.
|
| 325 |
+
|
| 326 |
+
Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556, 2014.
|
| 327 |
+
|
| 328 |
+
Richard Socher, Brody Huval, Christopher D Manning, and Andrew Y Ng. Semantic compositionality through recursive matrix-vector spaces. In Proceedings of the 2012 joint conference on empirical methods in natural language processing and computational natural language learning, pp. 1201–1211. Association for Computational Linguistics, 2012.
|
| 329 |
+
|
| 330 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D Manning, Andrew $\mathrm { N g }$ , and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 conference on empirical methods in natural language processing, pp. 1631–1642, 2013.
|
| 331 |
+
|
| 332 |
+
Niklas Sorensson and Niklas Een. Minisat v1. 13-a sat solver with conflict-clause minimization. SAT, 2005(53):1–2, 2005.
|
| 333 |
+
|
| 334 |
+
Ilya Sutskever, Oriol Vinyals, and Quoc V Le. Sequence to sequence learning with neural networks. In Advances in neural information processing systems, pp. 3104–3112, 2014.
|
| 335 |
+
|
| 336 |
+
Kai Sheng Tai, Richard Socher, and Christopher D Manning. Improved semantic representations from tree-structured long short-term memory networks. arXiv preprint arXiv:1503.00075, 2015.
|
| 337 |
+
|
| 338 |
+
Yuandong Tian and Yan Zhu. Better computer go player with neural network and long-term prediction. arXiv preprint arXiv:1511.06410, 2015.
|
| 339 |
+
|
| 340 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 6000–6010, 2017.
|
| 341 |
+
|
| 342 |
+
Shuohang Wang and Jing Jiang. Learning natural language inference with lstm. arXiv preprint arXiv:1512.08849, 2015.
|
| 343 |
+
|
| 344 |
+
Wenpeng Yin, Hinrich Schutze, Bing Xiang, and Bowen Zhou. Abcnn: Attention-based convolu- ¨ tional neural network for modeling sentence pairs. arXiv preprint arXiv:1512.05193, 2015.
|
| 345 |
+
|
| 346 |
+
Wojciech Zaremba, Karol Kurach, and Rob Fergus. Learning to discover efficient mathematical identities. In Advances in Neural Information Processing Systems, pp. 1278–1286, 2014.
|
| 347 |
+
|
| 348 |
+
Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. In Advances in neural information processing systems, pp. 649–657, 2015.
|
| 349 |
+
|
| 350 |
+
Xiaodan Zhu, Parinaz Sobihani, and Hongyu Guo. Long short-term memory over recursive structures. In International Conference on Machine Learning, pp. 1604–1612, 2015.
|
| 351 |
+
|
| 352 |
+
# A THE DATASET
|
| 353 |
+
|
| 354 |
+
# A.1 DATASET REQUIREMENTS
|
| 355 |
+
|
| 356 |
+
Our dataset $\mathcal { D }$ is composed of triples of the form $( A , B , A \models B )$ , where $A \models B$ is 1 if $A$ entailsk $B$ , and 0 otherwise. For example:
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\begin{array} { c } { { ( p \wedge q , q , 1 ) } } \\ { { ( q \vee r , r , 0 ) } } \end{array}
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
We wanted to ensure that simple baseline models are unable to exploit simple statistical regularities to perform well in this task. We define a series of baseline models which, due to their structure or the information they have access to, should not be able to solve the entailment recognition problem described in this paper. We distinguish baselines for which we believe there is little chance of them detecting entailment, from those for which there categorically cannot be true modelling of entailment. The baselines which categorically cannot detect entailment are encoding models which only observe one side of the sequent:
|
| 363 |
+
|
| 364 |
+
$$
|
| 365 |
+
P ( A \models B ) = \sigma \left( \mathbf { M L P } ( f ( A ) ) \right) \quad { \mathrm { o r } } \quad P ( A \models B ) = \sigma \left( \mathbf { M L P } ( f ( B ) ) \right)
|
| 366 |
+
$$
|
| 367 |
+
|
| 368 |
+
where $f$ is a linear bag of words encoder, an MLP bag of words encoder, or a TreeNet.
|
| 369 |
+
|
| 370 |
+
Because the dataset contains a roughly balanced number of positive and negative examples, it follows that we should expect any model which only sees part of the sequent to perform in line with a random classifier. If they outperform a random baseline on test, there is a structural or symbolic regularity on one side (or both) which is sufficient to identify some subset of positive or negative examples. We use these baselines to verify the soundness of the generation process.
|
| 371 |
+
|
| 372 |
+
Let $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ be the positive and negative entailments:
|
| 373 |
+
|
| 374 |
+
$$
|
| 375 |
+
\begin{array} { c } { \mathcal { D } ^ { + } = \{ ( A , B ) \mid ( A , B , 1 ) \in \mathcal { D } \} } \\ { \mathcal { D } ^ { - } = \{ ( A , B ) \mid ( A , B , 0 ) \in \mathcal { D } \} } \end{array}
|
| 376 |
+
$$
|
| 377 |
+
|
| 378 |
+
We impose various requirements on the dataset, to rule out superficial syntactic differences between $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ that can be easily exploited by the simple baselines described above. We require that our classes are balanced:
|
| 379 |
+
|
| 380 |
+
$$
|
| 381 |
+
\begin{array} { r c l } { | \mathcal { D } ^ { + } | } & { = } & { | \mathcal { D } ^ { - } | } \end{array}
|
| 382 |
+
$$
|
| 383 |
+
|
| 384 |
+
We do not want there to be any obvious difference in the length of formulas in $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ :
|
| 385 |
+
|
| 386 |
+
$$
|
| 387 |
+
\begin{array} { r l r } { \underset { ( A , B ) \sim \mathcal { D } ^ { + } } { \mathbb { E } } l e n g t h ( A ) } & { = } & { \underset { ( A , B ) \sim \mathcal { D } ^ { - } } { \mathbb { E } } l e n g t h ( A ) } \\ { \underset { ( A , B ) \sim \mathcal { D } ^ { + } } { \mathbb { E } } l e n g t h ( B ) } & { = } & { \underset { ( A , B ) \sim \mathcal { D } ^ { - } } { \mathbb { E } } l e n g t h ( B ) } \end{array}
|
| 388 |
+
$$
|
| 389 |
+
|
| 390 |
+
We want there to be the same number of new free variables (variables appearing in $\mathbf { B }$ that do not appear in A) in both $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ :
|
| 391 |
+
|
| 392 |
+
$$
|
| 393 |
+
\begin{array} { r l r } { \underset { ( A , B ) \sim \mathcal { D } ^ { + } } { \mathbb { E } } | v a r s ( B ) - v a r s ( A ) | } & { = } & { \underset { ( A , B ) \sim \mathcal { D } ^ { - } } { \mathbb { E } } | v a r s ( B ) - v a r s ( A ) | } \end{array}
|
| 394 |
+
$$
|
| 395 |
+
|
| 396 |
+
Let $n u m ( A , o p )$ be the number of occurrences of operator $o p$ in formula $A$ . So, for example, $n u m ( \neg ( p \land \neg q ) , \neg ) = 2$ . We impose the constraint that for each operator $o p \in \{ \neg , \land , \lor , \to \}$ , that
|
| 397 |
+
|
| 398 |
+
$$
|
| 399 |
+
\begin{array} { r l r } { \underset { ( A , B ) \sim \mathcal { D } ^ { + } } { \mathbb { E } } { \pi } u m ( A , o p ) } & { = } & { \underset { ( A , B ) \sim \mathcal { D } ^ { - } } { \mathbb { E } } { \pi } u m ( A , o p ) } \\ { \underset { ( A , B ) \sim \mathcal { D } ^ { + } } { \mathbb { E } } { n u m } ( B , o p ) } & { = } & { \underset { ( A , B ) \sim \mathcal { D } ^ { - } } { \mathbb { E } } { n u m } ( B , o p ) } \end{array}
|
| 400 |
+
$$
|
| 401 |
+
|
| 402 |
+
kThroughout, we focus on classical propositional logic, and do not consider e.g., intuitionistic entailment.
|
| 403 |
+
|
| 404 |
+
Furthermore, we require that the number of occurrences of an operator at each level in the abstract syntax tree is the same in $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ . It would not be acceptable if, for example, a typical $B ^ { + }$ from ${ \dot { \mathcal { D } } } ^ { + }$ had more disjunctions at the top of the syntax tree than $B ^ { - }$ from $\mathcal { D } ^ { - }$ . Let $n u m \_ a t ( B , l e v e l , o p )$ be the number of occurrences of operator $o p$ at level in the syntax tree for $B$ . We also require that, for each op and level:
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
\begin{array} { r l r } { \underset { ( A , B ) \sim \mathcal { D } ^ { + } } { \mathbb { E } } n u m _ { - } a t ( A , l e v e l , o p ) } & { = } & { \underset { ( A , B ) \sim \mathcal { D } ^ { - } } { \mathbb { E } } n u m _ { - } a t ( A , l e v e l , o p ) } \\ { \underset { ( A , B ) \sim \mathcal { D } ^ { + } } { \mathbb { E } } n u m _ { - } a t ( B , l e v e l , o p ) } & { = } & { \underset { ( A , B ) \sim \mathcal { D } ^ { - } } { \mathbb { E } } n u m _ { - } a t ( B , l e v e l , o p ) } \end{array}
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
# A.2 DATASET GENERATION
|
| 411 |
+
|
| 412 |
+
# A.2.1 A NAIVE APPROACH TO DATASET GENERATION
|
| 413 |
+
|
| 414 |
+
A simple way to generate an entailment dataset would be to alternate between first sampling formulas $A ^ { + }$ and $\dot { B } ^ { + }$ such that $A ^ { + } \models B ^ { + }$ , and second sampling formulas $A ^ { - }$ and $B ^ { - }$ such that $A ^ { \bar { - } } \nvDash B ^ { - }$ . Since we are alternating between $\vDash$ and $\nvDash$ , we are guaranteed to produce balanced classes. Unfortunately, this straightforward approach generates datasets that violate most of our requirements above. See Table 3 for the details.
|
| 415 |
+
|
| 416 |
+
In particular, the mean number of negations, conjunctions, and disjunctions at the top of the syntax tree $( n u m . a t ( \cdot , 0 , o p ) )$ is markedly different. $A ^ { + }$ has significantly more conjunctions at the top of the syntax tree than $A ^ { - }$ , while $B ^ { + }$ has significantly fewer than $B ^ { - }$ . Conversely, $A ^ { + }$ has significantly fewer disjunctions at the top of the syntax tree than $A ^ { - }$ , while $B ^ { + }$ has significantly more than $B ^ { - }$ .
|
| 417 |
+
|
| 418 |
+
The mean number of satisfying truth-value assignments $( s a t ( \cdot ) )$ is also markedly different: $A ^ { + }$ is true in on average 3.7 truth-value assignments (i.e. it is a very specific formula which is only true under very particular circumstances), while $A ^ { - }$ is true in 10.3 truth-value assignments (i.e. it is true in a wider range of circumstances).
|
| 419 |
+
|
| 420 |
+
If we look at the mean number of variables appearing in $B$ that do not appear in $A$ , there is also a striking difference between $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ . The mean number of new variables in $\mathnormal { v a r s } ( B ^ { + } ) ~ -$ $v a r s ( A ^ { \ + } )$ is 0.80 while the mean number of new variables in var $s ( B ^ { - } ) - v a r s ( A ^ { - } )$ is 1.39 with a $\chi ^ { 2 }$ of 3308.1 and 8 degrees of freedom.
|
| 421 |
+
|
| 422 |
+
We can use these statistics to develop simple heuristic baselines that will be unreasonably effective on the dataset described above: we can estimate whether $A \models B$ by comparing the lengths of $A$ and $B$ , or by looking at the number of variables in $B$ that do not appear in $A$ , or by looking at the topmost connective in $A$ and $B$ .
|
| 423 |
+
|
| 424 |
+
Table 3: Requirement violations in the naive approach, with $\vert \mathcal { D } \vert = 5 0 , 0 0 0$
|
| 425 |
+
|
| 426 |
+
<table><tr><td></td><td>A+</td><td>A-</td><td>x²</td><td>x² df</td><td>B+</td><td>B-</td><td>x²</td><td>x² df</td></tr><tr><td>length(.)</td><td>6.62</td><td>6.45</td><td>70.6</td><td>9</td><td>8.33</td><td>8.28</td><td>304.9</td><td>16</td></tr><tr><td>num(.,-)</td><td>1.47</td><td>1.33</td><td>309.4</td><td>8</td><td>1.77</td><td>1.91</td><td>139.0</td><td>9</td></tr><tr><td>num(·, ^)</td><td>1.52</td><td>1.33</td><td>308.6</td><td>8</td><td>1.70</td><td>1.94</td><td>134.0</td><td>11</td></tr><tr><td>num(-,v)</td><td>1.30</td><td>1.40</td><td>86.9</td><td>8</td><td>1.95</td><td>1.69</td><td>127.0</td><td>10</td></tr><tr><td>num_at(·,0,-)</td><td>0.31</td><td>0.22</td><td>532.4</td><td>1</td><td>0.18</td><td>0.30</td><td>350.9</td><td>1</td></tr><tr><td>num_at(·,1,-)</td><td>0.32</td><td>0.31</td><td>7.5</td><td>2</td><td>0.39</td><td>0.41</td><td>3.2</td><td>2</td></tr><tr><td>num_at(·,2,-)</td><td>0.31</td><td>0.31</td><td>8.8</td><td>4</td><td>0.56</td><td>0.54</td><td>5.3</td><td>4</td></tr><tr><td>num_at(-,0, ^)</td><td>0.35</td><td>0.2</td><td>1382.9</td><td>1</td><td>0.13</td><td>0.33</td><td>1076.4</td><td>1</td></tr><tr><td>num_at(.,1, ^)</td><td>0.32</td><td>0.31</td><td>36.5</td><td>2</td><td>0.39</td><td>0.40</td><td>6.5</td><td>2</td></tr><tr><td>num_at(-,2,^)</td><td>0.31</td><td>0.32</td><td>3.2</td><td>4</td><td>0.56</td><td>0.53</td><td>16.5</td><td>4</td></tr><tr><td>num_at(.,0, v)</td><td>0.16</td><td>0.28</td><td>1070.3</td><td>1</td><td>0.34</td><td>0.16</td><td>752.4</td><td>1</td></tr><tr><td>num_at(.,1, ν)</td><td>0.30</td><td>0.32</td><td>66.0</td><td>2</td><td>0.42</td><td>0.34</td><td>141.1</td><td>2</td></tr><tr><td>num_at(-,2,ν)</td><td>0.32</td><td>0.31</td><td>12.9</td><td>4</td><td>0.57</td><td>0.52</td><td>39.7</td><td>4</td></tr><tr><td>#sat(.)</td><td>3.7</td><td>10.3</td><td>11265</td><td>174</td><td>22.1</td><td>11.7</td><td>3702.8</td><td>241</td></tr></table>
|
| 427 |
+
|
| 428 |
+
# A.2.2 OUR PREFERRED APPROACH TO DATASET GENERATION
|
| 429 |
+
|
| 430 |
+
In order to satisfy our requirements above, we took a different approach to dataset generation. In order to ensure that there are no crude statistical measurements that can detect differences between $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ , we change the generation procedure so that every formula appears in both $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ . We sample 4-tuples of formulas $\left( A _ { 1 } , B _ { 1 } , A _ { 2 } , B _ { 2 } \right)$ such that:
|
| 431 |
+
|
| 432 |
+
$$
|
| 433 |
+
\begin{array} { r l r } { A _ { 1 } } & { \mapsto } & { B _ { 1 } } \\ { A _ { 2 } } & { \mapsto } & { B _ { 2 } } \\ { A _ { 1 } } & { \mapsto } & { B _ { 2 } } \\ { A _ { 2 } } & { \mapsto } & { B _ { 1 } } \end{array}
|
| 434 |
+
$$
|
| 435 |
+
|
| 436 |
+
Here, each of the four formulas appears in one positive entailment and one negative entailment∗∗.
|
| 437 |
+
|
| 438 |
+
Using this alternative approach, we are able to satisfy the requirements above. By construction, the mean length, number of operators at a certain level in the syntax tree, and the number of satisfying truth-value assignments is exactly the same for $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ . See Table 4.
|
| 439 |
+
|
| 440 |
+
The only crude difference remaining is in the number of new variables. If we look at the number of variables appearing in $B$ that do not appear in $A$ , there is a noticeable difference between $\mathcal { D } ^ { + }$ and $\mathcal { D } ^ { - }$ . The mean number of new variables in var $s ( B ^ { + } ) - v a r s ( A ^ { + } )$ is 1.25 while the mean number of new variables in var $s ( B ^ { - } ) - v a r s ( A ^ { - } )$ is 1.60 with a $\chi ^ { 2 }$ of 922.1 and 8 degrees of freedom.
|
| 441 |
+
|
| 442 |
+
Table 4: Statistics for the preferred approach that generates 4-tuples, with $\vert \mathcal { D } \vert = 5 0 , 0 0 0$
|
| 443 |
+
|
| 444 |
+
<table><tr><td></td><td>A+</td><td>A-</td><td>x²</td><td>x² df</td><td>B+</td><td>B-</td><td>X²</td><td>x² df</td></tr><tr><td>length(.)</td><td>6.33</td><td>6.33</td><td>0.0</td><td>9</td><td>6.38</td><td>6.38</td><td>0.0</td><td>16</td></tr><tr><td>num(-,-)</td><td>1.42</td><td>1.42</td><td>0.0</td><td>9</td><td>1.26</td><td>1.26</td><td>0.0</td><td>8</td></tr><tr><td>num(·,^)</td><td>1.63</td><td>1.63</td><td>0.0</td><td>7</td><td>1.16</td><td>1.16</td><td>0.0</td><td>7</td></tr><tr><td>num(., v)</td><td>1.14</td><td>1.14</td><td>0.0</td><td>7</td><td>1.53</td><td>1.53</td><td>0.0</td><td>8</td></tr><tr><td>num_at(·,0,-)</td><td>0.33</td><td>0.33</td><td>0.0</td><td>1</td><td>0.16</td><td>0.16</td><td>0.0</td><td>1</td></tr><tr><td>num_at(·,1,-)</td><td>0.29</td><td>0.29</td><td>0.0</td><td>2</td><td>0.32</td><td>0.32</td><td>0.0</td><td>2</td></tr><tr><td>num_at(·,2,-)</td><td>0.30</td><td>0.30</td><td>0.0</td><td>3</td><td>0.31</td><td>0.31</td><td>0.0</td><td>4</td></tr><tr><td>num_at(.,0, ^)</td><td>0.49</td><td>0.49</td><td>0.0</td><td>1</td><td>0.1</td><td>0.1</td><td>0.0</td><td>1</td></tr><tr><td>num_at(·,1,^)</td><td>0.34</td><td>0.34</td><td>0.0</td><td>2</td><td>0.31</td><td>0.31</td><td>0.0</td><td>2</td></tr><tr><td>num_at(.,2, ^)</td><td>0.30</td><td>0.30</td><td>0.0</td><td>4</td><td>0.30</td><td>0.30</td><td>0.0</td><td>4</td></tr><tr><td>num_at(.,0, v)</td><td>0.08</td><td>0.08</td><td>0.0</td><td>1</td><td>0.39</td><td>0.39</td><td>0.0</td><td>1</td></tr><tr><td>num_at(.,1, ν)</td><td>0.27</td><td>0.27</td><td>0.0</td><td>2</td><td>0.35</td><td>0.35</td><td>0.0</td><td>2</td></tr><tr><td>num_at(.,2,ν)</td><td>0.29</td><td>0.29</td><td>0.0</td><td>3</td><td>0.29</td><td>0.29</td><td>0.0</td><td>3</td></tr><tr><td>#sat(-)</td><td>3.86</td><td>3.86</td><td>0.0</td><td>86</td><td>14.42</td><td>14.42</td><td>0.0</td><td>157</td></tr></table>
|
| 445 |
+
|
| 446 |
+
# A.3 DATASET EXAMPLE
|
| 447 |
+
|
| 448 |
+
Our method generates 4-tuples such as the following:
|
| 449 |
+
|
| 450 |
+
$$
|
| 451 |
+
\begin{array} { r l r l } { p \vee p } & { \in } & { ( r c ) ( ( r v ) \vee p ) } \\ { ( ( g \vee p ) \vee s ) ( g g ) \wedge r } & { \in } & { r \wedge ( r r ) } \\ { p \vee p } & { \nvDash } & { r \wedge ( r r ) } \\ { ( ( g \vee p ) \vee s ) ( g g ) \wedge r } & { \nvDash } & { ( r c ) ( ( r v ) \vee p ) } \end{array}
|
| 452 |
+
$$
|
parse/train/SkZxCk-0Z/SkZxCk-0Z_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkZxCk-0Z/SkZxCk-0Z_middle.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/SkZxCk-0Z/SkZxCk-0Z_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
parse/train/UcoXdfrORC/UcoXdfrORC.md
ADDED
|
@@ -0,0 +1,413 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MODEL-BASED VISUAL PLANNING WITH SELF-SUPERVISED FUNCTIONAL DISTANCES
|
| 2 |
+
|
| 3 |
+
Stephen $\mathbf { T i a n } ^ { 1 }$ , Suraj $\mathbf { N a i r ^ { 2 } }$ , Frederik Ebert1, Sudeep Dasari3, Benjamin Eysenbach3,
|
| 4 |
+
Chelsea $\mathbf { F i n n ^ { 2 } }$ , Sergey Levine1
|
| 5 |
+
1University of California, Berkeley
|
| 6 |
+
2Stanford University
|
| 7 |
+
3Carnegie Mellon University
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
A generalist robot must be able to complete a variety of tasks in its environment. One appealing way to specify each task is in terms of a goal observation. However, learning goal-reaching policies with reinforcement learning remains a challenging problem, particularly when hand-engineered reward functions are not available. Learned dynamics models are a promising approach for learning about the environment without rewards or task-directed data, but planning to reach goals with such a model requires a notion of functional similarity between observations and goal states. We present a self-supervised method for model-based visual goal reaching, which uses both a visual dynamics model as well as a dynamical distance function learned using model-free reinforcement learning. Our approach learns entirely using offline, unlabeled data, making it practical to scale to large and diverse datasets. In our experiments, we find that our method can successfully learn models that perform a variety of tasks at test-time, moving objects amid distractors with a simulated robotic arm and even learning to open and close a drawer using a real-world robot. In comparisons, we find that this approach substantially outperforms both model-free and model-based prior methods. Videos and visualizations are available here: https://sites.google.com/berkeley.edu/mbold.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
Designing general-purpose robots that can perform a wide range of tasks remains an open problem in AI and robotics. Reinforcement learning (RL) represents a particularly promising tool for learning robotic behaviors when skills can be learned one at a time from user-defined reward functions. However, general-purpose robots will likely require large and diverse repertoires of skills, and learning individual tasks one at a time from manually-specified rewards is onerous and time-consuming. How can we design learning systems that can autonomously acquire general-purpose knowledge that allows them to solve many different downstream tasks?
|
| 16 |
+
|
| 17 |
+
To address this problem, we must resolve three questions. (1) How can the robot be commanded to perform specific downstream tasks? A simple and versatile choice is to define tasks in terms of desired outcomes, such as an example observation of the completed task. (2) What types of data should this robot learn from? In settings where modern machine learning attains the best generalization results (Deng et al., 2009; Rajpurkar et al., 2016; Devlin et al., 2018), a common theme is that excellent generalization is achieved by learning from large and diverse task-agnostic datasets. In the context of RL, this means we need offline methods that can use all sources of prior data, even in the absence of reward labels. As collecting new experience on a physical robot is often expensive, offline data is often more practical to use in real-world settings (Levine et al., 2020). (3) What should the robot learn from this data to enable goal-reaching? Similar to prior work (Botvinick & Weinstein, 2014; Watter et al., 2015; Finn & Levine, 2017; Ebert et al., 2018b), we note that policies and value functions are specific to a particular task, while a predictive model captures the physics of the environment independently of the task, and thus can be used for solving almost any task. This makes model learning particularly effective for learning from large and diverse datasets, which do not necessarily contain successful behaviors.
|
| 18 |
+
|
| 19 |
+
While model-based approaches have demonstrated promising results, including for vision-based tasks in real-world robotic systems (Ebert et al., 2018a; Finn & Levine, 2017), such methods face two major challenges. First, predictive models on raw images are only effective over short horizons, as uncertainty accumulates far into the future (Denton & Fergus, 2018; Finn et al., 2016; Hafner et al., 2019b; Babaeizadeh et al., 2017). Second, using such models for planning toward goals requires a notion of similarity between images. While prior methods have utilized latent variable models (Watter et al., 2015; Nair et al., 2018), $\ell _ { 2 }$ pixel-space distance (Nair & Finn, 2020), and other heuristic measures of similarity (Ebert et al., 2018b), these metrics only capture visual similarity. To enable reliable control with predictive models, we instead need distances that are aware of dynamics.
|
| 20 |
+
|
| 21 |
+
In this paper, we propose Model-Based RL with Offline Learned Distances (MBOLD), which aims to address both of these challenges by learning predictive models together with image-based distance functions that reflect functionality, from offline, unlabeled data. The learned distance function estimates of the number of steps that the optimal policy would take to transition from one state to another, incorporating not just visual appearance, but also an understanding of dynamics. However, to learn dynamical distances from task-agnostic data, supervised regression will lead to overestimation, since the paths in the data are not all optimal for any task. Instead, we utilize approximate dynamic programming for distance estimation. While prior work has studied such methods to learn goal-conditioned policies in online model-free RL settings (Eysenbach et al., 2019; Florensa et al., 2019), we extend it to the offline setting and show that approximate dynamic programming techniques derived from Q-learning style Bellman updates can learn effective shortest path dynamical distances. Although this procedure resembles model-free reinforcement learning, we find empirically that it does not by itself produce useful policies. Instead, our method (Fig. 1) combines the strengths of dynamics models and distance functions, using the predictive model to plan over short horizons, and using the learned distances to provide a global cost that captures progress toward distant goals.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: The robot must find actions that quickly achieve the desired goal. State transitions and the true optimal distances between states are unknown, so our method learns an approximate shortest distance function and dynamics model directly on images. These models allow the robot to find the shortest path to the goal at test-time.
|
| 25 |
+
|
| 26 |
+
The primary contribution of this work is an offline, self-supervised approach for solving arbitrary goal-reaching tasks by combining planning with predictive models and learned dynamical distances. To our knowledge, our method is the first to directly combine predictive models on images with dynamical distance estimators on images, entirely from random, offline data without reward labels. Through our experimental evaluation on challenging robotic object manipulation tasks, including simulated object relocation and real-world drawer manipulation, we find that our method can outperform previously introduced reward specification methods for visual model-based control with a relative performance improvement of at least $50 \%$ across all tasks, and compares favorably to prior work in model-based and model-free RL. We also find that combining Q-functions with planning improves dramatically over policies directly learned with model-free RL.
|
| 27 |
+
|
| 28 |
+
# 2 RELATED WORK
|
| 29 |
+
|
| 30 |
+
Offline and Model-based RL: A number of prior works have studied the problem of learning behaviors from existing offline datasets. While recent progress has been made in applying model-free RL techniques to this problem of offline or batch RL (Fujimoto et al., 2019; Wu et al., 2019; Kumar et al., 2019; 2020; Nair et al., 2020b), one approach that has shown promise is offline model-based RL (Lowrey et al., 2019; Kidambi et al., 2020; Yu et al., 2020; Argenson & Dulac-Arnold, 2020), where the agent learns a predictive model of the world from data. Such model-based methods have seen success both in the offline and online RL settings, and have a rich history of being effective for planning (Deisenroth & Rasmussen, 2011; Watter et al., 2015; McAllister & Rasmussen, 2016; Chua et al., 2018; Amos et al., 2018; Hafner et al., 2019b; Nagabandi et al., 2018; Kahn et al., 2020; Dong et al., 2020) or policy optimization (Sutton, 1991; Weber et al., 2017; Ha & Schmidhuber, 2018; Janner et al., 2019; Wang & Ba, 2019; Hafner et al., 2019a). However, the vast majority of these prior works consider the single task setting where the agent aims to maximize a single task reward. In contrast, in this work we circumvent the need for task rewards by adopting a selfsupervised multi-task approach, where a single learned model is used to perform a variety of tasks, specified in a flexible and general way by desired outcomes – i.e., goal images.
|
| 31 |
+
|
| 32 |
+
Self-supervised goal reaching: While the standard RL problem involves optimizing for a taskspecific reward, an alternative and potentially more general formulation involves learning a generic goal reaching policy, without task-specific reward labels. In fact, a number of prior works learn goal-conditioned policies using model-free RL (Kaelbling, 1993; Nair et al., 2018; Mandlekar et al., 2019; Nair et al., 2020a), or variants of goal-conditioned behavioral cloning (GCBC) (Ghosh et al., 2019; Ding et al., 2019; Lynch et al., 2020). In our experiments, we show that our method outperforms both model-free approaches and goal-conditioned behavioral cloning. A number of methods combine model-free and model-based elements by planning over a graph representation (Eysenbach et al., 2019; Nasiriany et al., 2019; Savinov et al., 2018; Liu et al., 2020). Such methods can struggle in higher dimensions, where constructing graphs that adequately cover the space may require an excessive number of samples. We compare to these methods in our experiments. Similarly to Finn & Levine (2017); Ebert et al. (2018b); Nair & Finn (2020); Yen-Chen et al. (2019); Suh & Tedrake (2020), our method uses an action-conditioned video prediction model to generate plans. However, these prior methods generally utilize hand-crafted image similarity reward measures such as $\ell _ { 2 }$ pixel-error (Ebert et al., 2018a; Nair & Finn, 2020) and pixel-flow prediction (Finn & Levine, 2017). In complex scenes, this can become a major bottleneck: predictions degrade rapidly further in the future, making an informative image similarity metric critical for effective planning. We propose to learn functional similarity metrics in terms of dynamical distances, which we find can be combined with predictive models to attain significantly improved results.
|
| 33 |
+
|
| 34 |
+
Dynamical distance learning: Our method learns dynamical distances – distances that represent shortest paths – from offline data. In the literature, dynamical distances have been learned via direct regression using online data (Hartikainen et al., 2019), representation learning (Warde-Farley et al., 2018; Yu et al., 2019b), or via Q-learning by relabeling goals (Eysenbach et al., 2019; Florensa et al., 2019). While these last two works are most similar to ours, in that they also employ approximate dynamic programming to learn distances, our method directly combines these dynamical distances with visual predictive models and planning. Lastly, while prior work has also explored combining model-based planning with value functions (Zhong et al., 2013; Lowrey et al., 2019; Hafner et al., 2019a; Schrittwieser et al., 2019; Argenson & Dulac-Arnold, 2020), these works consider the single task domain with a reward function, while our learned value function considers the multi-task goal reaching domain from entirely random, offline data without reward labels.
|
| 35 |
+
|
| 36 |
+
# 3 THE SELF-SUPERVISED OFFLINE RL PROBLEM STATEMENT
|
| 37 |
+
|
| 38 |
+
In this section, we introduce notation and define the problem setting. We will employ a Markov decision process (MDP) with state observations $s _ { t } \in S$ and actions $a _ { t } \in \mathcal A$ , both indexed by time $t \in { 0 , 1 , \cdots , H }$ , where $H$ denotes the maximum episode length. The initial state is sampled from an initial state distribution $s _ { 0 } \sim p _ { 0 } ( s _ { 0 } )$ , and subsequent states are sampled according to Markovian dynamics: $s _ { t + 1 } \sim p ( s _ { t + 1 } \mid s _ { t } , a _ { t } ) $ . Actions are sampled $a _ { t } \sim \pi ( a _ { t } \ \bar { | } \ s _ { t } , s _ { g } )$ from a policy that is conditioned on both the current state and a goal state $s _ { g } \in \mathcal S$ . In our experiments, both the state and goal are images (i.e., $\mathcal { S } = \mathbb { R } ^ { H \times W \times 3 } )$ ).
|
| 39 |
+
|
| 40 |
+
We tackle offline learning in this setting, assuming access to a fixed dataset $\mathcal { D }$ consisting of trajectories $\left\{ s _ { 0 } , a _ { 0 } , s _ { 1 } , . . . s _ { T } \right\}$ of the agent interacting with the environment. This data can include any environment interactions, from expert demonstrations to trajectories which are not particularly successful at any task. In our experiments, we use data collected using a random policy, which is inexpensive to obtain. The agent does not have access to the environment to collect additional training data. Given this dataset, the objective is to determine the optimal goal-conditioned policy $\pi ^ { \star } ( a _ { t } \mid s _ { t } , s _ { g } )$ , under which the agent is able to transition to any goal state $s _ { g }$ from any starting state $s _ { t }$ in the minimum number of time steps possible. Note that unlike in the standard formulation of the RL problem, the agent does not receive any reward signal from its environment.
|
| 41 |
+
|
| 42 |
+

|
| 43 |
+
Figure 2: Model-based visual goal reaching: (Left) During offline learning, we train an imagebased predictive model and distance function on the same random dataset. (Right) At test time, we use the learned distance model for MPC, plugging in the learned distance as a cost function.
|
| 44 |
+
|
| 45 |
+
# 4 MODEL-BASED VISUAL GOAL-REACHING
|
| 46 |
+
|
| 47 |
+
In this section we will introduce our method, MBOLD, for offline, goal-conditioned reinforcement learning. MBOLD, illustrated in Fig. 2, is composed of two neural networks: a predictive model and a learned distance function. The video-predictive dynamics model allows the agent to predict the result of hypothetical sequences of actions. However, this model cannot accurately predict far into the future, and has no notion of whether the predicted outcomes are desirable. Thus, we also learn a distance function, corresponding to a value function with a self-supervised goal-reaching reward, which will estimate the timestep length of the shortest path between a predicted state and a given goal. Both networks are trained on the same offline dataset.
|
| 48 |
+
|
| 49 |
+
At test-time, we use the learned dynamics model and distance function for model-predictive control (MPC). MBOLD predicts future states for candidate action sequences using the learned dynamics model, and uses the learned distance function to determine which action sequence will lead the agent closest to the goal. The first of the actions is then executed, and planning repeats upon receiving the subsequent observation from the environment. The remainder of this section describes how we learn the dynamics model and distance function, and use them to perform control.
|
| 50 |
+
|
| 51 |
+
Dynamics learning. Our method learns environment dynamics in order to solve for actions during test time, without an explicit task reward signal during training. MBOLD can use arbitrary imagebased forward models, including latent variable models (Hafner et al., 2019b; Lee et al., 2019). The particular choice of model is a design decision when implementing our method. In our implementation, we use a convolutional video prediction model adapted from SAVP (Lee et al., 2018). The network takes as input the current observation $s _ { t }$ and a sequence of $h$ actions $\scriptstyle a _ { t : t + h - 1 }$ and returns a prediction for the next $h$ image observations, $\hat { f } _ { \theta } ( s _ { t } , a _ { t : t + h - 1 } ) = \{ \hat { s } _ { t + 1 } , \dots , \hat { s } _ { t + h } \}$ . We train this model to minimize the $\ell _ { 2 }$ image reconstruction loss:
|
| 52 |
+
|
| 53 |
+
$$
|
| 54 |
+
\operatorname* { m i n } _ { \theta } \mathbb { E } _ { \mathcal { D } } \left[ \frac { 1 } { h } \sum _ { t ^ { \prime } = t } ^ { t + h } \| \hat { f } _ { \theta } ( s _ { t } , a _ { t : t + h - 1 } ) [ t ^ { \prime } - t ] - s _ { t ^ { \prime } } \| ^ { 2 } \right] .
|
| 55 |
+
$$
|
| 56 |
+
|
| 57 |
+
Distance learning. Our method also learns a dynamical distance function, so that it can evaluate a functional notion of distance from the predicted states to the goal state, for use as a planning cost. However, the environment does not provide a reward signal that might be used to deduce these distances. Indeed, the offline dataset is typically composed of highly suboptimal trajectories, so our method may not even have access to examples of shortest path trajectories between states. Our key observation is that a goal-conditioned Q-function trained on a modified MDP with an indicator cost function yields values that correspond to shortest path distances in the original environment. Thus, Q-learning-like methods can recover optimal distance functions even from sub-optimal data.
|
| 58 |
+
|
| 59 |
+
We therefore formulate an MDP by augmenting environment trajectories with the reward function $r ( s _ { t } , a , s _ { t + 1 } , g ) = \mathbf { 1 } _ { \mathrm { s } _ { t + 1 } = \mathrm { s } _ { \mathrm { g } } }$ , adding a discount factor of $\gamma$ , and considering episodes terminated once they reach the goal state. Note that $s _ { t }$ , $s _ { t + 1 }$ , and $g$ all represent images, and the reward is only given when the next state and goal images exactly match. During training, goals are sampled according to a distribution on $s$ , which we will discuss later. If $\gamma < 1$ , the Q-values for a policy that maximizes expected discounted returns in this MDP can be directly mapped to shortest path distances. Specifically, in discrete state environments, the optimal $\mathbf { Q }$ -function can be written as $Q ( s , a , g ) = \gamma ^ { d ( s , a , g ) }$ , where $d ( s , a , g )$ is a shortest path distance between $s$ and $g$ after taking action $a$ . Similarly, we can recover $d ( s , a , g ) = \log _ { \gamma } Q ( s , a , g )$ . Ultimately, our Q-learning approach corresponds to the following Bellman error optimization objective:
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\operatorname* { m i n } _ { \phi } \mathbb { E } _ { s _ { t } , a _ { t } , s _ { t + 1 } \sim \mathcal { D } , g \sim \mathcal { S } } \left[ Q _ { \phi } ( s _ { t } , a _ { t } , g ) - ( { \bf 1 } _ { s _ { t + 1 } = g } + \gamma { \bf 1 } _ { s _ { t + 1 } \neq g } \operatorname* { m a x } _ { a _ { t + 1 } } Q _ { \phi } ( s _ { t + 1 } , a _ { t + 1 } , g ) ) \right] ^ { 2 } .
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
In practice, we use a deep network to represent the $\mathrm { Q }$ -function. During training, we sample transitions $( s _ { t } , a _ { t } , s _ { t + 1 } , g )$ to optimize the objective in Equation 2. The first three components $( s _ { t } , a _ { t } , s _ { t + 1 } )$ can be sampled randomly from the dataset. However, trajectories in the offline dataset may not be directed towards any particular goals, so a key challenge lies in selecting which goals $g$ to choose. The next section describes our approach to sampling these goals.
|
| 66 |
+
|
| 67 |
+
Selecting goals for relabeling transitions. Na¨ıvely choosing $g$ , say by sampling random states uniformly from the dataset, will provide an extremely sparse reward signal, as two random state images will almost never be exactly identical. The sparse reward problem can be mitigated by selectively sampling as goals the states that were actually reached in future time steps along the same trajectory as $s _ { t }$ (Kaelbling, 1993; Andrychowicz et al., 2017). More precisely, to sample goals for a transition at time step $t$ , we sample a discrete time offset $\Delta \sim \mathrm { G e o m } ( p )$ , where $p \in [ 0 , 1 ]$ is a hyper-parameter, and use the state at time $t + \Delta$ as the goal. Note that if $\Delta = 1$ , the reward for this transition is 1, avoiding the sparsity issue.
|
| 68 |
+
|
| 69 |
+
However, relabeling all transitions in this way creates a major issue: since the distance function would only be trained on goals that were actually reached, it would systematically underestimate the distance to unreachable goals. Put another way, goals that were not reached from $s _ { t }$ would be out-of-distribution goals for the resulting Q-function. We found this to result in poor performance. In practice, prior work (Kaelbling, 1993; Andrychowicz et al., 2017) actually relabels with a mixture of reached goals and commanded but not necessarily reached goals.
|
| 70 |
+
|
| 71 |
+
These prior methods can obtain such “negative” goals based on the goals that were commanded during online data collection. This is impossible in our setting, since our offline data may not even have been collected with a goal-directed policy. We therefore need a procedure to select such “negative” goals that are distant yet relevant. Randomly selecting dataset states will lead to pairs of images that are clearly distant with high probability (e.g., pairs in which all objects and the robot have been moved), but not necessarily relevant. We would like a goal sampling procedure that produces less obvious examples of distant states, which are more informative for training. Hard negative mining is one example of such a procedure, where pairs are selected based on the model’s predictions, but is computationally expensive with large datasets.
|
| 72 |
+
|
| 73 |
+
Instead, we build upon the intuition that distance functions are likely to pay excessive attention to fully actuated factors in the state, such as the position of the robot’s arm, because they are strongly predictive of distances. We propose sampling “negative” goal states $g$ which have similar actuated components to reached states. When randomly sampling pairs of states under this constraint, the underactuated dimensions (e.g. the objects), which are generally not known, are likely to have distinct positions. Hence, these data points can serve as informative hard negatives that encourage the model to pay more attention to the difficult, underactuated parts of the state. Unlike hard negative mining, this sampling approach is computationally inexpensive, as it does not rely on the current distance function, and practical, as actuated components of the state can typically be measured through encoders on the actuator. In practice, we sample these “negative” goals from observations across all dataset trajectories via nearest-neighbors search, using arm joint $\ell _ { 2 }$ distance as the similarity key. Note that this does assume proprioceptive state information from the agent (e.g. robot joint angles), which is almost always available in real-world robotics settings, but does not require knowledge about object positions or other ground-truth environment information. While we use actuator information for generating training examples, the distance function and dynamics model use only image observations and actions as inputs. See Appendix A.1 for details.
|
| 74 |
+
|
| 75 |
+
Control via MBOLD. At test-time, the learned distance function and dynamics model are used together to solve control tasks via MPC. In other words, the dynamics model predicts how candidate actions will affect the environment, and the distance model rates predicted sequences based on which bring the agent closest to the user-defined goal state. This mechanism works as follows: given the current state $s _ { t }$ , goal state $s _ { g }$ , candidate actions $a _ { t : t + h - 1 }$ , and predicted future states $\hat { f } _ { \theta } \big ( s _ { t } , a _ { t : t + h - 1 } \big )$ from the learned dynamics model, the learned distance function calculates
|
| 76 |
+
|
| 77 |
+

|
| 78 |
+
Figure 3: Comparative evaluation results: (Left) Example initial states and task definitions for Sawyer object pushing and Franka door sliding simulated environments, as well as the real-world drawer closing task. Note that “hard” tasks require the arm to take detours from moving to the final arm position in order to relocate the object. Arrows indicate successful trajectories. (Right) MBOLD is consistently able to outperform prior methods on these harder manipulation tasks, and by a larger margin on the most difficult tasks (“hard” variants of object pushing and door sliding). Error bars show standard deviations over 5 seeds.
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
V ( a _ { t : t + h - 1 } ) = \operatorname* { m a x } _ { \alpha } Q _ { \phi } ( \hat { f } _ { \theta } ( s _ { t } , a _ { t : t + h - 1 } ) [ t + h ] , \alpha , s _ { g } ) .
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
In practice, the maximization over $\alpha$ is performed by an actor network learned simultaneously with the Q-function. $V \big ( a _ { t : t + h - 1 } \big )$ acts as an objective function for MPC. Plainly, the controller’s goal is to find candidate actions $a _ { t : t + h - 1 }$ which minimize the dynamical distance to the goal $h$ steps into the future. After this process completes, the best action is executed by the agent. Note that this controller re-plans after every action taken in the environment (i.e every timestep), in order to prevent errors in dynamics prediction from compounding.
|
| 85 |
+
|
| 86 |
+
MPC Algorithm. MBOLD uses the CEM algorithm (De Boer et al., 2005) to optimize the objective in Equation 3. It begins by sampling $N$ random trajectories from a prior multi-variate Gaussian distribution. Then, the top $K$ actions which score highest according to $V \big ( a _ { t : t + h - 1 } \big )$ are selected as candidates. A new Gaussian distribution is fit on these candidates, and the loop starts over again by sampling fresh actions from this distribution. After $I$ iterations, the loop finishes and returns the best action found so far. See Appendix A.2 for full CEM implementation details.
|
| 87 |
+
|
| 88 |
+
# 5 EXPERIMENTS
|
| 89 |
+
|
| 90 |
+
Our experiments aim to answer three questions: (1) How does MBOLD compare to prior modelbased and model-free methods when learning to reach goals from task-agnostic offline data? (2) Can our method perform visual robotic manipulation in real-world settings? (3) How do different dynamical distance learning methods compare to MBOLD in terms of providing effective distance functions for planning?
|
| 91 |
+
|
| 92 |
+
We first evaluate our method, prior methods, and baselines on three simulated tasks with visual observations: (1) a simple reaching task that requires moving a Sawyer 7-DoF arm to a goal location, which provides a way to validate implementations of all methods, (2) object pushing, in which a Sawyer arm must relocate an object to a particular goal location, in environments with 1 or 3 objects, and (3) door sliding, which requires repositioning a sliding door with a Franka 7-DoF arm. These tasks are challenging because they require long-horizon planning without access to intermediate rewards.
|
| 93 |
+
|
| 94 |
+
For each task, we define the action space $\mathcal { A }$ such that actions control the Cartesian position of the robot’s end-effector, as well as the robot’s gripper. We randomly generate a set of 100 test goals, consisting of a goal image and starting state, for each task, on which all methods are tested. A trial is considered successful if the final distance to the goal of each relevant object, e.g. slide position for the door sliding task, ends below a given threshold. For the object relocation task, we evaluate each method on two scenes, containing one and three objects. All evaluation goals require the robot to move one of the objects, with the others serving as distractors. We also study two levels of difficulty: “regular,” where goals are generated from random trajectories in which the object moves a certain minimum distance, and “hard,” where the arm is additionally enforced to be distant from the object in the goal observation, requiring the robot to push the object and then withdraw the arm. We depict the tasks in Fig. 3 (left) and provide full experimental details in Appendix A.3.
|
| 95 |
+
|
| 96 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>MBOLD(ours)</td><td rowspan=1 colspan=1>Visual Foresight(l2 pixel error)</td></tr><tr><td rowspan=1 colspan=1>Drawer openDrawer close</td><td rowspan=1 colspan=1>8/107/10</td><td rowspan=1 colspan=1>5/100/10</td></tr></table>
|
| 97 |
+
|
| 98 |
+

|
| 99 |
+
Figure 4: Real-world robot evaluation: (Left) Third-person view of an example task setting and (Right) results. Success rates are computed using 10 trials for each task. Each task is specified by a goal image, and as in previous experiments, the same trained models are used across tasks. Task success is determined by the final position of the drawer only.
|
| 100 |
+
|
| 101 |
+
For all tasks, we generate an offline dataset by running random policies for 1e4 episodes of 30 timesteps each. We provide only this offline dataset to all methods, with no online training. At test time, the agent only receives the goal image and current observation at each step, and no intermediate rewards besides those that it computes itself.
|
| 102 |
+
|
| 103 |
+
Comparative evaluation. We compare MBOLD to prior work in model-based and model-free RL. As MBOLD uses purely offline data and does not require rewards from the environment, we make modifications to these methods where necessary to provide a fair comparison. Many of these prior methods (though not all) require the environment to provide a ground truth reward signal. In this case, we provide these methods with simple “uninformative” rewards, following prior work (Nair et al., 2018), which consist of the MSE between the current and goal image. Many of these methods were initially presented in the online setting. The offline setting is harder for RL methods (Fujimoto et al., 2019; Wu et al., 2019; Kumar et al., 2019), partially explaining their poor performance.
|
| 104 |
+
|
| 105 |
+

|
| 106 |
+
Figure 5: Comparisons on the simple reaching task, where most methods attain good performance.
|
| 107 |
+
|
| 108 |
+
See Appendix B for details on all baselines. We compare MBOLD to the following methods:
|
| 109 |
+
|
| 110 |
+
• Reinforcement Learning with Imagined Goals (RIG) (Nair et al., 2018): RIG is a model-free RL method for visual goal-reaching. Unlike the other methods, we still allow RIG to collect additional online data to train its policy. Dreamer (Hafner et al., 2019a): Dreamer, a model-based method for image-based tasks, also uses a combination of value functions and planning, but uses online data collection and, crucially, ground truth reward signals. We adapt Dreamer for the offline, reward-free setting. Dreamer $\ell _ { 2 }$ arm distance: We additionally compare with an “oracle” version of Dreamer that uses privileged information about the ground-truth position of the arm.
|
| 111 |
+
• Search on the Replay Buffer (SoRB) (Eysenbach et al., 2019): SoRB performs planning on a graph constructed using learned distances, learned without a reward function.
|
| 112 |
+
• Goal-Conditioned Behavior Cloning: We train a behavior cloning model using goals sampled from observations achieved further in a given trajectory. This can be viewed as an offline variant of GCSL (Ghosh et al., 2019) or a non-recurrent version of Lynch et al. (2020).
|
| 113 |
+
• Visual Foresight (Ebert et al., 2018b): Visual Foresight also plans with an action-conditioned video prediction model, but uses (among other choices) $\ell _ { 2 }$ pixel error as a cost function.
|
| 114 |
+
|
| 115 |
+
Since all methods are trained from offline data with no additional environment interaction, we present final performance on the test goals as a bar graph, rather than learning curves. The comparison on the simple reaching task is shown in Figure 5, and suggests that on this task, many of the methods perform quite well. However, on the substantially more complex tasks, shown in Figure 3, we see clearer differentiation between the different algorithms. On harder object pushing tasks, MBOLD attains the best performance, by a considerable margin. Interestingly, simple goalconditioned behavioral cloning actually represents one of the strongest baselines on this task. On the hardest simulated door sliding task, our method attains the best performance by a large margin.
|
| 116 |
+
|
| 117 |
+

|
| 118 |
+
Figure 6: Heatmap visualizations of our distance functions. Each pixel in every heatmap represents the distance between a generated starting image containing the object at that $( x , y )$ coordinate and the fixed goal image (pictured on left). All three distance functions show a minimum when the object position is near the goal position of $( 0 . 1 , - 0 . 0 5 )$ . However, our Q-function produces a better-shaped signal than the direct regression model, and avoids occlusion errors - like the local minimum at high $_ y$ -values, which plague pixel-wise MSE.
|
| 119 |
+
|
| 120 |
+
Real-world evaluation. We additionally evaluate MBOLD in a real-world drawer manipulation task using a 7-DoF Franka arm. We train the dynamics model and distance function on a preexisting dataset of 1000 trajectories collected by a weakly supervised batch exploration algorithm in prior work (Chen et al., 2020). As shown in Figure 4, MBOLD outperforms visual foresight on both manipulation tasks with visual inputs, particularly on drawer closing, for which simply matching the arm position in the goal image does not solve the task. The success of our method in this domain highlights that our method can be applied to offline datasets collected using different exploration strategies. While MBOLD performs well on manipulation tasks even with complex real-world visuals, we find that the negative sampling procedure we adopt limits precision in matching highly actuated components such as the arm position. We perform additional analysis through simulated experiments detailed in Appendix E.1. Videos of both simulated and real-world task execution can be found at the project website: https://sites.google.com/berkeley.edu/mbold.
|
| 121 |
+
|
| 122 |
+
Qualitative analysis. In this section, we examine the distance functions learned by MBOLD, and show qualitatively that our learned distances better model the dependence of functional separation between two states on the relative positions of objects in their scenes. Figure 6 presents heatmaps of predicted distances for a fixed goal image on the object pushing task, as the initial observation is varied based on object position. The robot arm is set to the same position in each initial image. We see that the Qfunction is able to learn a relatively well-shaped distance which accounts for the object position.
|
| 123 |
+
|
| 124 |
+
We additionally visualize baseline distance models for comparison. First, we look at an ablation of our distance model, which is trained via re
|
| 125 |
+
|
| 126 |
+

|
| 127 |
+
Figure 7: Our learned distance function yields higher success rates than alternative approaches from prior work, such as the $\ell _ { 2 }$ distance of a VAE latent space (Nair et al., 2018) and temporal distance regression (Hartikainen et al., 2019). We also see consistent improvements from using negative transition mining, especially on “hard” tasks.
|
| 128 |
+
|
| 129 |
+
gression to map pairs of states randomly sampled from a given dataset trajectory to the number of timesteps separating them in that trajectory, and can be viewed as an offline variant of DDL (Hartikainen et al., 2019). We call this scheme that effectively predicts random walk distances “temporal distance regression.” The second baseline we compare to is pixel-wise mean-squared error.
|
| 130 |
+
|
| 131 |
+
We find that the temporal distance regression model produces more sharply peaked distances than the Q-function, and performed worse as a reward signal during planning, as we find through our ablation experiments. The pixel-wise MSE metric produces low distances near the goal object position, but is impacted by occlusions of the objects as well as the position of the visually pronounced arm. While this analysis does not necessarily directly correspond to control performance, as it ignores the movement of the robot, it demonstrates that our learned distances are aware of the functional similarity of nearby object positions, despite the fact that they are learned entirely from images with actions corresponding to the movement of the arm, not the object.
|
| 132 |
+
|
| 133 |
+
Ablations. Our ablation studies aim to answer three questions: (1) How does Q-learning for learning dynamical distances compare to alternative distance metrics, such as distance in the latent space of a VAE, or dynamical distances learned using direct regression on temporal distances found in random data? (2) How important is mining negative transitions to the performance of our method? (3) How beneficial is it to combine the learned distance function with planning through a predictive model, as compared to directly acting using the learned policy, as in standard model-free offline RL?
|
| 134 |
+
|
| 135 |
+
To answer the first two questions, we perform experiments in the object pushing domain. We evaluate alternative distance metrics for visual planning, by duplicating the planning setup, using the same dynamics model, and only modifying the metric used for scoring candidate trajectories. The first distance we consider is Euclidean distance in the latent space of a VAE, that is, $d ( s , g ) = \lVert e ( s ) - e ( g ) \rVert _ { 2 }$ , where $e$ is a learned encoder, which resembles the reward function used in prior work on image-based goal reaching (Nair et al., 2018). The second is the direct temporal distance regression model described previously. As shown in Figure 7, Q-function distances outperform alternative distances on all of the object pushing tasks. While the temporal distance regression scheme provides competitive performance in some settings, it often provides overestimates of distances between states rather than shortest paths, as shown qualitatively in Figure 6.
|
| 136 |
+
|
| 137 |
+
We also find that the negative transition mining scheme also consistently improves performance, and is particularly important for the “hard” tasks. We hypothesize this is because augmenting the training data in this way causes learned distance functions to better take into account the positions of objects in the scene, rather than just visually prominent components such as arm position.
|
| 138 |
+
|
| 139 |
+
Table 1: Comparison of success rates $\pm$ standard deviation across 5 random training seeds for our method, which combines Q-functions and planning with a model, to a baseline that uses the Q-function to choose actions directly without planning.
|
| 140 |
+
|
| 141 |
+
To address the third question, we compare our method, which uses learned distances for planning, to the policy discovered when performing Q-learning to learn dynamical distances. As shown in Table 1, the policy learned directly
|
| 142 |
+
|
| 143 |
+
<table><tr><td></td><td>Q-function + planning</td><td>Q-function only</td></tr><tr><td>1 object push 3 object push Reach</td><td>55.2± 4.3% 44.8± 2.9% 94.4 ± 3.3%</td><td>19.2 ±3.6% 15.6 ± 3.6% 31.8± 5.2%</td></tr></table>
|
| 144 |
+
|
| 145 |
+
from offline RL alone is greatly outperformed by MBOLD. We hypothesize that this is due to challenges in advantage learning from offline data with extremely sparse rewards.
|
| 146 |
+
|
| 147 |
+
# 6 CONCLUSION
|
| 148 |
+
|
| 149 |
+
We presented a self-supervised approach to tackling goal-reaching tasks, which learns to reach unseen visual goals given only an offline, random dataset without reward labels. Our method combines the strengths of predictive models and learned dynamical distances, where a predictive model can provide effective predictions for planning actions over short horizons, while dynamical distances can provide a useful planning cost that captures distance to goals over longer horizons. By performing visual model predictive control with a learned visual dynamics model and a goal conditioned Q-function as the planning cost, we find that our method is able to perform goal reaching tasks more effectively than model-based planning approaches that utilize other reward specification techniques, as well as purely model-free methods. We show that MBOLD can also scale to real-world manipulation settings and learn from offline datasets collected with various exploration strategies, outperforming visual foresight on a drawer manipulation task. By leveraging offline data collected without a specific goal in mind, our method may make it possible to utilize large, unstructured, openworld robotic manipulation datasets. Scaling up this method to more complex real-world systems and large data sources therefore represents a particularly exciting direction for future work, which may broaden the capabilities and generality of robotic systems.
|
| 150 |
+
|
| 151 |
+
Acknowledgements. We thank students from the Robotic AI and Learning Lab for insightful feedback on earlier drafts of this paper and Aurick Zhou and Danijar Hafner for helpful discussions. This work was supported in part by Schmidt Futures, the Fannie and John Hertz Foundation, the Office of Naval Research (grants N00014-20-1-2675, N00014-16-1-2420, & N00014-19-1-2042), and the National Science Foundation (DGE-1745016 and through an NSF GRFP (GRFP 2018259676)). This research used the Savio computational cluster resource provided by the Berkeley Research Computing program at the University of California, Berkeley.
|
| 152 |
+
|
| 153 |
+
# REFERENCES
|
| 154 |
+
|
| 155 |
+
Brandon Amos, Laurent Dinh, Serkan Cabi, Thomas Rothorl, Sergio G ¨ omez Colmenarejo, Alistair ´ Muldal, Tom Erez, Yuval Tassa, Nando de Freitas, and Misha Denil. Learning awareness models, 2018.
|
| 156 |
+
|
| 157 |
+
Marcin Andrychowicz, Filip Wolski, Alex Ray, Jonas Schneider, Rachel Fong, Peter Welinder, Bob McGrew, Josh Tobin, OpenAI Pieter Abbeel, and Wojciech Zaremba. Hindsight experience replay. In Advances in neural information processing systems, pp. 5048–5058, 2017.
|
| 158 |
+
|
| 159 |
+
Arthur Argenson and Gabriel Dulac-Arnold. Model-based offline planning. arXiv preprint arXiv:2008.05556, 2020.
|
| 160 |
+
|
| 161 |
+
Mohammad Babaeizadeh, Chelsea Finn, Dumitru Erhan, Roy H Campbell, and Sergey Levine. Stochastic variational video prediction. arXiv preprint arXiv:1710.11252, 2017.
|
| 162 |
+
|
| 163 |
+
Matthew Botvinick and Ari Weinstein. Model-based hierarchical reinforcement learning and human action control. Philosophical Transactions of the Royal Society B: Biological Sciences, 369 (1655):20130480, 2014.
|
| 164 |
+
|
| 165 |
+
Annie S. Chen, HyunJi Nam, Suraj Nair, and Chelsea Finn. Batch exploration with examples for scalable robotic reinforcement learning, 2020.
|
| 166 |
+
|
| 167 |
+
Kurtland Chua, Roberto Calandra, Rowan McAllister, and Sergey Levine. Deep reinforcement learning in a handful of trials using probabilistic dynamics models. In Advances in Neural Information Processing Systems, pp. 4754–4765, 2018.
|
| 168 |
+
|
| 169 |
+
Pieter-Tjerk De Boer, Dirk P Kroese, Shie Mannor, and Reuven Y Rubinstein. A tutorial on the cross-entropy method. Annals of operations research, 134(1):19–67, 2005.
|
| 170 |
+
|
| 171 |
+
M. Deisenroth and C. Rasmussen. Pilco: A model-based and data-efficient approach to policy search. In ICML, 2011.
|
| 172 |
+
|
| 173 |
+
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR09, 2009.
|
| 174 |
+
|
| 175 |
+
Emily Denton and Rob Fergus. Stochastic video generation with a learned prior. arXiv preprint arXiv:1802.07687, 2018.
|
| 176 |
+
|
| 177 |
+
Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
|
| 178 |
+
|
| 179 |
+
Yiming Ding, Carlos Florensa, Pieter Abbeel, and Mariano Phielipp. Goal-conditioned imitation learning. In Advances in Neural Information Processing Systems, pp. 15324–15335, 2019.
|
| 180 |
+
|
| 181 |
+
Kefan Dong, Yuping Luo, Tianhe Yu, Chelsea Finn, and Tengyu Ma. On the expressivity of neural networks for deep reinforcement learning. In International Conference on Machine Learning, pp. 2627–2637. PMLR, 2020.
|
| 182 |
+
|
| 183 |
+
Frederik Ebert, Sudeep Dasari, Alex X. Lee, S. Levine, and Chelsea Finn. Robustness via retrying: Closed-loop robotic manipulation with self-supervised learning. In Conference on Robot Learning, 2018a.
|
| 184 |
+
|
| 185 |
+
Frederik Ebert, Chelsea Finn, Sudeep Dasari, Annie Xie, Alex Lee, and Sergey Levine. Visual foresight: Model-based deep reinforcement learning for vision-based robotic control. arXiv preprint arXiv:1812.00568, 2018b.
|
| 186 |
+
|
| 187 |
+
Ben Eysenbach, Russ R Salakhutdinov, and Sergey Levine. Search on the replay buffer: Bridging planning and reinforcement learning. In Advances in Neural Information Processing Systems, pp. 15246–15257, 2019.
|
| 188 |
+
|
| 189 |
+
Chelsea Finn and Sergey Levine. Deep visual foresight for planning robot motion. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pp. 2786–2793. IEEE, 2017.
|
| 190 |
+
|
| 191 |
+
Chelsea Finn, Ian Goodfellow, and Sergey Levine. Unsupervised learning for physical interaction through video prediction. In Advances in neural information processing systems, pp. 64–72, 2016.
|
| 192 |
+
|
| 193 |
+
Carlos Florensa, Jonas Degrave, Nicolas Heess, Jost Tobias Springenberg, and Martin Riedmiller. Self-supervised learning of image embedding for continuous control, 2019.
|
| 194 |
+
|
| 195 |
+
Scott Fujimoto, Herke Hoof, and David Meger. Addressing function approximation error in actorcritic methods. In International Conference on Machine Learning, pp. 1582–1591, 2018.
|
| 196 |
+
|
| 197 |
+
Scott Fujimoto, David Meger, and Doina Precup. Off-policy deep reinforcement learning without exploration. In International Conference on Machine Learning, pp. 2052–2062, 2019.
|
| 198 |
+
|
| 199 |
+
Dibya Ghosh, Abhishek Gupta, Ashwin Reddy, Justin Fu, Coline Devin, Benjamin Eysenbach, and Sergey Levine. Learning to reach goals via iterated supervised learning, 2019.
|
| 200 |
+
|
| 201 |
+
David Ha and Jurgen Schmidhuber. World models, 2018. ¨
|
| 202 |
+
|
| 203 |
+
Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. arXiv preprint arXiv:1912.01603, 2019a.
|
| 204 |
+
|
| 205 |
+
Danijar Hafner, Timothy Lillicrap, Ian Fischer, Ruben Villegas, David Ha, Honglak Lee, and James Davidson. Learning latent dynamics for planning from pixels. In International Conference on Machine Learning, pp. 2555–2565. PMLR, 2019b.
|
| 206 |
+
|
| 207 |
+
Kristian Hartikainen, Xinyang Geng, Tuomas Haarnoja, and Sergey Levine. Dynamical distance learning for semi-supervised and unsupervised skill discovery. In International Conference on Learning Representations, 2019.
|
| 208 |
+
|
| 209 |
+
Michael Janner, Justin Fu, Marvin Zhang, and Sergey Levine. When to trust your model: Modelbased policy optimization. In Advances in Neural Information Processing Systems, pp. 12519– 12530, 2019.
|
| 210 |
+
|
| 211 |
+
Jeff Johnson, Matthijs Douze, and Herve J ´ egou. Billion-scale similarity search with gpus. ´ arXiv preprint arXiv:1702.08734, 2017.
|
| 212 |
+
|
| 213 |
+
Leslie Pack Kaelbling. Learning to achieve goals. In IN PROC. OF IJCAI-93, pp. 1094–1098. Morgan Kaufmann, 1993.
|
| 214 |
+
|
| 215 |
+
Gregory Kahn, Pieter Abbeel, and Sergey Levine. Badgr: An autonomous self-supervised learningbased navigation system. arXiv preprint arXiv:2002.05700, 2020.
|
| 216 |
+
|
| 217 |
+
Rahul Kidambi, Aravind Rajeswaran, Praneeth Netrapalli, and Thorsten Joachims. Morel: Modelbased offline reinforcement learning. In Advances in neural information processing systems, 2020.
|
| 218 |
+
|
| 219 |
+
Aviral Kumar, Justin Fu, Matthew Soh, George Tucker, and Sergey Levine. Stabilizing off-policy q-learning via bootstrapping error reduction. In Advances in Neural Information Processing Systems, pp. 11784–11794, 2019.
|
| 220 |
+
|
| 221 |
+
Aviral Kumar, Aurick Zhou, George Tucker, and Sergey Levine. Conservative q-learning for offline reinforcement learning. arXiv preprint arXiv:2006.04779, 2020.
|
| 222 |
+
|
| 223 |
+
Alex X Lee, Richard Zhang, Frederik Ebert, Pieter Abbeel, Chelsea Finn, and Sergey Levine. Stochastic adversarial video prediction. arXiv preprint arXiv:1804.01523, 2018.
|
| 224 |
+
|
| 225 |
+
Alex X. Lee, Anusha Nagabandi, Pieter Abbeel, and Sergey Levine. Stochastic latent actor-critic: Deep reinforcement learning with a latent variable model, 2019.
|
| 226 |
+
|
| 227 |
+
Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu. Offline reinforcement learning: Tutorial, review, and perspectives on open problems. arXiv preprint arXiv:2005.01643, 2020.
|
| 228 |
+
|
| 229 |
+
Kara Liu, Thanard Kurutach, Christine Tung, Pieter Abbeel, and Aviv Tamar. Hallucinative topological memory for zero-shot visual planning. 2020.
|
| 230 |
+
|
| 231 |
+
Kendall Lowrey, Aravind Rajeswaran, Sham Kakade, Emanuel Todorov, and Igor Mordatch. Plan Online, Learn Offline: Efficient Learning and Exploration via Model-Based Control. In International Conference on Learning Representations (ICLR), 2019.
|
| 232 |
+
|
| 233 |
+
Corey Lynch, Mohi Khansari, Ted Xiao, Vikash Kumar, Jonathan Tompson, Sergey Levine, and Pierre Sermanet. Learning latent plans from play. In Conference on Robot Learning, pp. 1113– 1132, 2020.
|
| 234 |
+
|
| 235 |
+
Ajay Mandlekar, Fabio Ramos, Byron Boots, Li Fei-Fei, Animesh Garg, and Dieter Fox. Iris: Implicit reinforcement without interaction at scale for learning control from offline robot manipulation data. arXiv preprint arXiv:1911.05321, 2019.
|
| 236 |
+
|
| 237 |
+
Rowan McAllister and C. Rasmussen. Improving pilco with bayesian neural network dynamics models. 2016.
|
| 238 |
+
|
| 239 |
+
Anusha Nagabandi, Gregory Kahn, Ronald S Fearing, and Sergey Levine. Neural network dynamics for model-based deep reinforcement learning with model-free fine-tuning. In 2018 IEEE International Conference on Robotics and Automation (ICRA), pp. 7559–7566. IEEE, 2018.
|
| 240 |
+
|
| 241 |
+
Anusha Nagabandi, Kurt Konolige, Sergey Levine, and Vikash Kumar. Deep dynamics models for learning dexterous manipulation. In Conference on Robot Learning, pp. 1101–1112, 2020.
|
| 242 |
+
|
| 243 |
+
Ashvin Nair, Shikhar Bahl, Alexander Khazatsky, Vitchyr Pong, Glen Berseth, and Sergey Levine. Contextual imagined goals for self-supervised robotic learning. In Conference on Robot Learning, pp. 530–539, 2020a.
|
| 244 |
+
|
| 245 |
+
Ashvin Nair, Murtaza Dalal, Abhishek Gupta, and Sergey Levine. Accelerating online reinforcement learning with offline datasets. arXiv preprint arXiv:2006.09359, 2020b.
|
| 246 |
+
|
| 247 |
+
Ashvin V Nair, Vitchyr Pong, Murtaza Dalal, Shikhar Bahl, Steven Lin, and Sergey Levine. Visual reinforcement learning with imagined goals. In Advances in Neural Information Processing Systems, pp. 9191–9200, 2018.
|
| 248 |
+
|
| 249 |
+
Suraj Nair and Chelsea Finn. Hierarchical foresight: Self-supervised learning of long-horizon tasks via visual subgoal generation. In International Conference on Learning Representations (ICLR), 2020.
|
| 250 |
+
|
| 251 |
+
Soroush Nasiriany, Vitchyr Pong, Steven Lin, and Sergey Levine. Planning with goal-conditioned policies. In Advances in Neural Information Processing Systems, pp. 14843–14854, 2019.
|
| 252 |
+
|
| 253 |
+
Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. Squad: $1 0 0 { , } 0 0 0 { + }$ questions for machine comprehension of text. arXiv preprint arXiv:1606.05250, 2016.
|
| 254 |
+
|
| 255 |
+
Nikolay Savinov, Alexey Dosovitskiy, and Vladlen Koltun. Semi-parametric topological memory for navigation. In International Conference on Learning Representations (ICLR), 2018.
|
| 256 |
+
|
| 257 |
+
Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, Timothy Lillicrap, and David Silver. Mastering atari, go, chess and shogi by planning with a learned model, 2019.
|
| 258 |
+
|
| 259 |
+
H. J. Terry Suh and Russ Tedrake. The surprising effectiveness of linear models for visual foresight in object pile manipulation, 2020.
|
| 260 |
+
|
| 261 |
+
Richard S Sutton. Dyna, an integrated architecture for learning, planning, and reacting. ACM Sigart Bulletin, 2(4):160–163, 1991.
|
| 262 |
+
|
| 263 |
+
Tingwu Wang and Jimmy Ba. Exploring model-based planning with policy networks, 2019.
|
| 264 |
+
|
| 265 |
+
David Warde-Farley, Tom Van de Wiele, Tejas Kulkarni, Catalin Ionescu, Steven Hansen, and Volodymyr Mnih. Unsupervised control through non-parametric discriminative rewards, 2018.
|
| 266 |
+
|
| 267 |
+
Manuel Watter, Jost Springenberg, Joschka Boedecker, and Martin Riedmiller. Embed to control: A locally linear latent dynamics model for control from raw images. In Advances in neural information processing systems, pp. 2746–2754, 2015.
|
| 268 |
+
|
| 269 |
+
Theophane Weber, S ´ ebastien Racani ´ ere, David P. Reichert, Lars Buesing, Arthur Guez, \` Danilo Jimenez Rezende, Adria Puigdomenech Badia, Oriol Vinyals, Nicolas Heess, Yujia Li, \` Razvan Pascanu, Peter Battaglia, Demis Hassabis, David Silver, and Daan Wierstra. Imaginationaugmented agents for deep reinforcement learning, 2017.
|
| 270 |
+
|
| 271 |
+
Yifan Wu, George Tucker, and Ofir Nachum. Behavior regularized offline reinforcement learning. arXiv preprint arXiv:1911.11361, 2019.
|
| 272 |
+
|
| 273 |
+
Lin Yen-Chen, Maria Bauza, and Phillip Isola. Experience-embedded visual foresight. In Conference on Robot Learning, 2019.
|
| 274 |
+
|
| 275 |
+
Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on Robot Learning (CoRL), 2019a. URL https://arxiv.org/abs/1910. 10897.
|
| 276 |
+
|
| 277 |
+
Tianhe Yu, Gleb Shevchuk, Dorsa Sadigh, and Chelsea Finn. Unsupervised visuomotor control through distributional planning networks. Robotics: Science and Systems XV, Jun 2019b. doi: 10.15607/rss.2019.xv.020. URL http://dx.doi.org/10.15607/RSS.2019.XV.020.
|
| 278 |
+
|
| 279 |
+
Tianhe Yu, Garrett Thomas, Lantao Yu, Stefano Ermon, James Zou, Sergey Levine, Chelsea Finn, and Tengyu Ma. Mopo: Model-based offline policy optimization. In Advances in neural information processing systems, 2020.
|
| 280 |
+
|
| 281 |
+
Mingyuan Zhong, Mikala Johnson, Yuval Tassa, Tom Erez, and Emanuel Todorov. Value function approximation and model predictive control. In 2013 IEEE symposium on adaptive dynamic programming and reinforcement learning (ADPRL), pp. 100–107. IEEE, 2013.
|
| 282 |
+
|
| 283 |
+
# A MBOLD IMPLEMENTATION DETAILS
|
| 284 |
+
|
| 285 |
+
# A.1 DISTANCE FUNCTION
|
| 286 |
+
|
| 287 |
+
This section explains the implementation details for our distance function. Following prior work (Fujimoto et al., 2018), we learn two independent Q-functions and use the minimum for performing Bellman backups. Recall that we sampled goals from two distributions: future states in the same trajectories, and states from different trajectories where the robot arm was in a similar position. To implement the second strategy, we fit a $k$ -nearest neighbors graph on 200000 (about $6 0 \%$ of total) dataset observations, and use the $\ell _ { 2 }$ arm joint distance as the similarity key. Each batch contains equal numbers of transitions generated from each goal sampling method. For computational efficiency, we implement the $k$ -NN search using the GPU-enabled FAISS library (Johnson et al., 2017).
|
| 288 |
+
|
| 289 |
+
We relabel half of the transitions in each training batch with reached goals and the other half with “negative” goals with similar actuated components, finding through ablation experiments that this combination achieves stronger performance compared to using just reached goals in our evaluation environments. In other domains, more careful consideration is required to determine if the assumptions which motivate this “negative” goal sampling strategy are satisfied.
|
| 290 |
+
|
| 291 |
+
We also modify the reward specification scheme by providing a small positive reward at each step where the goal is not reached, and then a large positive reward upon reaching the goal. Specifically, we choose to give a reward of 1 by default and 10 when the goal is reached (compared to 0 and 1 respectively as presented in the discussion in Section 4), although we do not extensively tune this parameter. We find that it does not affect performance in a statistically significant way (results for each reward choice are within 1 standard deviation of one another) to choose this reward over the $( 0 , 1 )$ rewards. Note that this does not change the interpretation of the Q-function as a shortest path distance, merely slightly complicating the conversion calculations from Q-values to distances in timesteps.
|
| 292 |
+
|
| 293 |
+
Finally, we add an additional loss term to perform conservative Q-learning (CQL) (Kumar et al., 2020), a method for offline model-free RL, which penalizes Q-values of randomly selected actions and increases Q-values of in-dataset actions. We use the Lagrangian version of CQL to automatically tune the weighting term, and detail the parameters below. We find using CQL improves performance on the door sliding task from a mean success rate of $4 1 \%$ to $5 8 \%$ , but does not significantly impact performance on the others.
|
| 294 |
+
|
| 295 |
+
The Q-function network architecture consists of convolutional and fully connected layers. We define a network called the convolutional encoder, which will be used throughout the appendix. This takes as input an image of shape $6 4 \times 6 4 \times 6$ , containing the starting and goal images concatenated channelwise, and consists of 4 2D convolutional layers, with [8, 16, 32, 64] filters, respectively, with all with kernel size $( 4 , 4 )$ and strides of $( 2 , 2 )$ . We use Leaky ReLU activations after each intermediate convolutional layer, and batch-norm layers after the second and third Leaky ReLUs.
|
| 296 |
+
|
| 297 |
+
We flatten the output of the convolutional encoder, concatenate the inputted actions, and feed the features through 6 fully-connected linear layers of 128 units each, with the final layer outputting a single value. Each intermediate fully-connected layer is followed by a ReLU activation and a batch-norm layer.
|
| 298 |
+
|
| 299 |
+
The actor network architecture first contains the above “convolutional encoder”, whose outputs are flattened and input into a 10 layer MLP with 128 fully connected units each, and ReLU activations and batch-norm layers in between. The final output, of dimension 4, is passed through a tanh activation to constrain it to the normalized action space $[ - 1 , 1 ]$ .
|
| 300 |
+
|
| 301 |
+
Additional training hyperparameters are detailed in Table 2.
|
| 302 |
+
|
| 303 |
+
# A.2 MODEL-PREDICTIVE CONTROL
|
| 304 |
+
|
| 305 |
+
In Table 3, we describe the parameters for model-based planning in our experiments. These parameters are shared across all tasks and planning costs (in ablation experiments). Most values are selected based on prior work (Ebert et al., 2018b). We find that replanning every 6 steps produces slightly better performance than replanning every 13 steps, but not by a large margin, and we do not tune this further due to computation constraints. We sample actions using the filtering scheme described in Nagabandi et al. (2020) to make sequences smoother in time. We initialize sampling distributions using each environment’s data collection parameters, as shown in Table 4.
|
| 306 |
+
|
| 307 |
+
Table 2: Hyperparameters for distance learning
|
| 308 |
+
|
| 309 |
+
<table><tr><td rowspan=1 colspan=1>Parameter</td><td rowspan=1 colspan=1>Value</td></tr><tr><td rowspan=1 colspan=1>Dataset size</td><td rowspan=1 colspan=1>10000 trajectories</td></tr><tr><td rowspan=1 colspan=1>Train/test/val split</td><td rowspan=1 colspan=1>0.9/0.05/0.05</td></tr><tr><td rowspan=1 colspan=1>Trajectory length</td><td rowspan=1 colspan=1>30 steps</td></tr><tr><td rowspan=1 colspan=1>Observation dimensions</td><td rowspan=1 colspan=1>64×64×3</td></tr><tr><td rowspan=1 colspan=1>Stateobservations inkNN graph</td><td rowspan=1 colspan=1>200000</td></tr><tr><td rowspan=1 colspan=1>Goal relabeling sampling parameter (p)</td><td rowspan=1 colspan=1>0.3 (tuned over [0.2, 0.3])</td></tr><tr><td rowspan=1 colspan=1>Discount factor (y)</td><td rowspan=1 colspan=1>0.8</td></tr><tr><td rowspan=1 colspan=1>Learning rate</td><td rowspan=1 colspan=1>3e-4</td></tr><tr><td rowspan=1 colspan=1>Target network update Polyak factor</td><td rowspan=1 colspan=1>0.995</td></tr><tr><td rowspan=1 colspan=1>Batch size</td><td rowspan=1 colspan=1>64</td></tr><tr><td rowspan=1 colspan=1>Actor network noise o</td><td rowspan=1 colspan=1>0.1</td></tr><tr><td rowspan=1 colspan=1>Actor network maximum noise magnitude</td><td rowspan=1 colspan=1>0.2</td></tr><tr><td rowspan=1 colspan=1>Training iterations</td><td rowspan=1 colspan=1>93750 (300 epochs)</td></tr><tr><td rowspan=1 colspan=1>Optimizer</td><td rowspan=1 colspan=1>Adam</td></tr><tr><td rowspan=1 colspan=1>CQL Lagrange multiplier learning rate</td><td rowspan=1 colspan=1>1e-3</td></tr><tr><td rowspan=1 colspan=1>CQL slack parameter T (object pushing)</td><td rowspan=1 colspan=1>3.0</td></tr><tr><td rowspan=1 colspan=1>CQL slack parameter T (reaching)</td><td rowspan=1 colspan=1>3.0</td></tr><tr><td rowspan=1 colspan=1>CQL slack parameter 7 (door sliding)</td><td rowspan=1 colspan=1>10.0</td></tr><tr><td rowspan=1 colspan=1>CQL number of randomly selected actions</td><td rowspan=1 colspan=1>10</td></tr></table>
|
| 310 |
+
|
| 311 |
+
To compute the planning cost described in Equation 3, we maximize over $\alpha$ by feeding in the final predicted state to the policy network learned by TD3, and using the outputted action as the maximizer.
|
| 312 |
+
|
| 313 |
+
Table 3: Hyperparameters for model-based planning
|
| 314 |
+
|
| 315 |
+
<table><tr><td rowspan=1 colspan=1>Parameter</td><td rowspan=1 colspan=1>Value</td></tr><tr><td rowspan=1 colspan=1>Planning horizon (h)</td><td rowspan=1 colspan=1>13 steps</td></tr><tr><td rowspan=1 colspan=1>Actions executed per planning step (k)</td><td rowspan=1 colspan=1>6 actions</td></tr><tr><td rowspan=1 colspan=1>CEMIterations</td><td rowspan=1 colspan=1>3iterations</td></tr><tr><td rowspan=1 colspan=1>Elite sample fraction</td><td rowspan=1 colspan=1>0.05 (10 samples)</td></tr><tr><td rowspan=1 colspan=1>Samplesper CEMiteration</td><td rowspan=1 colspan=1>200 samples</td></tr></table>
|
| 316 |
+
|
| 317 |
+
# A.3 ENVIRONMENTS
|
| 318 |
+
|
| 319 |
+
The Sawyer environments are adapted from the Meta-World benchmark (Yu et al., 2019a), and the door sliding environment is based off of the environment presented by Lynch et al. (2020). For each task, we define the 4-dimensional action space $\mathcal { A }$ such that actions control the Cartesian position of the robot’s end-effector, as well as the robot’s gripper.
|
| 320 |
+
|
| 321 |
+
We randomly generate a set of 100 different test goals for each setting. Each task is defined by a goal image and starting state, on which all methods are tested. We define success for each task in terms of the final distance to the goal of each relevant object, e.g. object position for the object repositioning task. A trial is considered successful if the final distance is below a certain threshold $\epsilon$ manually chosen for each task, listed in the table below. We evaluate the success rate of each method over 5 different random training seeds.
|
| 322 |
+
|
| 323 |
+
We generate offline datasets for each task by running random policies for $1 e 4$ episodes of 30 timesteps each. In the beginning of each episode, object positions are reset uniformly randomly over the range of possible positions across each joint. The random policy actions are drawn using a filtering technique, which smooths random zero-mean Gaussian samples across time. We apply the
|
| 324 |
+
|
| 325 |
+
correlated noise scheme described by Nagabandi et al. (2020), setting the hyperparameter $\beta = 0 . 5$ .
|
| 326 |
+
The parameters of the multi-variate Gaussian samples in each dimension are listed in Table 4.
|
| 327 |
+
|
| 328 |
+
Table 4: Environment and task details
|
| 329 |
+
|
| 330 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Reaching</td><td rowspan=1 colspan=1>Object pushing</td><td rowspan=1 colspan=1>Door sliding</td></tr><tr><td rowspan=1 colspan=1>Data colln. stdev (diag(Σ))</td><td rowspan=1 colspan=1>[0.6, 0.6, 0.3, 0.3]</td><td rowspan=1 colspan=1>[0.6, 0.6, 0.3, 0.3]</td><td rowspan=1 colspan=1>[0.3, 0.3, 0.3, 0.15]</td></tr><tr><td rowspan=1 colspan=1>Object compared in success threshold</td><td rowspan=1 colspan=1>Arm end effector</td><td rowspan=1 colspan=1>Block</td><td rowspan=1 colspan=1>Slide</td></tr><tr><td rowspan=1 colspan=1>Success distance threshold</td><td rowspan=1 colspan=1>0.05m</td><td rowspan=1 colspan=1>0.05m</td><td rowspan=1 colspan=1>0.075m</td></tr></table>
|
| 331 |
+
|
| 332 |
+
# B COMPARATIVE EVALUATION IMPLEMENTATION DETAILS
|
| 333 |
+
|
| 334 |
+
B.1 REINFORCEMENT LEARNING WITH IMAGINED GOALS (NAIR ET AL., 2018)
|
| 335 |
+
|
| 336 |
+
In this section, we will discuss implementation details of our adaptation of Reinforcement Learning with Imagined Goals (RIG). We begin by training a $\beta$ -VAE with latent dimension 8. The VAE is trained on randomly sampled states from the entire offline dataset. For the loss, we use a combination of a maximum likelihood term and a KL divergence term which constrains the latent space to a unit Gaussian. In particular, we compute the mean pixel error, that is, $\frac { 1 } { H W } \| s - \hat { s } \| _ { 2 } ^ { 2 }$ , where $s$ is the original image, and $\hat { s }$ is the reconstruction, both normalized to be in $[ 0 , 1 ]$ . We add this to the KL divergence between the latent distribution and the unit Gaussian, with a weighting factor of $1 e ^ { - 3 }$ on the KL penalty.
|
| 337 |
+
|
| 338 |
+
The architecture of the VAE encoder consists of the “convolutional encoder” described in section A.1, whose features are passed through two FC layers with 128 units with a ReLU activation and batch-norm layer in between. The VAE decoder takes as input latent states into two FC layers with 128 units with a batch-norm layer and ReLU activation after each. This is followed by the inverted architecture of the encoder, consisting of transposed 2D convolutions.
|
| 339 |
+
|
| 340 |
+
Then, we perform model-free RL in a modified MDP, using encoded observations as a substitute for environment observations, and computing rewards as negative $\ell _ { 2 }$ distances in latent space. We sample random goals from the multivariate Gaussian prior $( \mathcal { N } ( 0 , I ) )$ at the beginning of every episode. We use the open-source implementation of soft actor-critic (SAC) in RLKit, and use the default SAC parameters and architecture found in the implementation, making the following modifications: We increase the number of layers of all MLP networks from 2 to 6. We use a maximum path length of 30 steps for consistency with our other experiments, and a discount factor of 0.95. Along with the goal sampled from the prior at the beginning of each episode, we find that relabeling goals with the achieved observation at the end of the trajectory improves performance, and add these transitions to the replay buffer as well. Note that unlike in the original RIG formulation, we do not update the weights of the learned VAE using data collected online. We evaluate the learned policy after 600 epochs of training, long after environment returns plateau.
|
| 341 |
+
|
| 342 |
+
# B.2 DREAMER (HAFNER ET AL., 2019A)
|
| 343 |
+
|
| 344 |
+
Dreamer, a model-based method for image-based tasks, also uses a combination of value functions and planning. We adapt Dreamer from its original single-task setting to learn a goal-conditioned policy, reward predictor, and value function; however, we do not condition the dynamics model on the goal. Dreamer has been previously demonstrated only in settings where the environment provides rewards to the agent, so we modify the method to learn from unlabeled, offline data by using experience replay. We find that using an indicator reward function as in our method or a heuristically defined reward function, image MSE, causes Dreamer to struggle to learn. We thus additionally demonstrate the performance of Dreamer using a manually specified arm distance reward for the Sawyer reaching task.
|
| 345 |
+
|
| 346 |
+
We build off of the open source implementation of Dreamer by the original authors, written in TensorFlow2 and found at https://github.com/danijar/dreamer. Specifically, to modify the networks to support goal-conditioning, we add independent convolutional encoders which take the goal image as input to each network. Each encoder consists of 2D convolution layers with [32, 64, 128, 256] filters and kernel sizes of 4 to each network, and we concatenate the flattened features to the inputs of each network. We additionally increase the number of fully-connected layers for the value and actor networks from 3 and 2 respectively to 10. We use a discount factor of $\gamma = 0 . 9 5$ . All other hyperparameter values are defaults from the public implementation.
|
| 347 |
+
|
| 348 |
+
For training, we relabel trajectories sampled from the fixed, offline dataset with a uniformly randomly selected observation from the trajectory as the goal. In most of our experiments, we compute the negative pixel-wise MSE as the reward, but in one reaching experiment, we use the negative $\ell _ { 2 }$ Euclidean distance between the arm end-effector position and the goal end-effector position. We train for 2000 iterations for each experiment, although initial experiments in which we trained for $2 0 \mathbf { x }$ longer did not yield improved results.
|
| 349 |
+
|
| 350 |
+
# B.3 GOAL-CONDITIONED BEHAVIOR CLONING
|
| 351 |
+
|
| 352 |
+
To train a goal-conditioned behavior cloning policy, we begin by relabeling random transitions from the dataset with goals which are later achieved in those trajectories. Specifically, we sample stategoal pairs from trajectories in the dataset by first selecting the initial state index $t _ { i }$ uniformly from all timesteps, and then selecting the goal state index $t _ { g }$ uniformly from timesteps greater than $t _ { i }$ . We then train a neural network to predict the transition action $a _ { i }$ given the state $s _ { i }$ and the relabeled goal $s _ { g }$ , using a mean-squared error loss.
|
| 353 |
+
|
| 354 |
+
The network architecture is the same as that of the actor network used in Q-learning for MBOLD, described in Appendix A.1. We train the model for 3125000 iterations (1000 epochs) using a batch size of 32, and use the same optimizer and learning rate as the distance learned for MBOLD.
|
| 355 |
+
|
| 356 |
+
B.4 SEARCH ON THE REPLAY BUFFER (EYSENBACH ET AL., 2019)
|
| 357 |
+
|
| 358 |
+
For Search on the Replay Buffer (SoRB), we train a distributional Q-function to represent distances as in the original paper. Distributional RL discretizes possible value estimates into a set of bins – we use 10 for all of our experiments. We train this distributional Q-function for 300 epochs, as in the distance function training for MBOLD. We also use the same architecture and training scheme, altering the number of outputs to 10 bins and using the KL-divergence loss for the distributional Q-function as in Eysenbach et al. (2019). However, unlike in Eysenbach et al. (2019), we train on just the fixed, offline dataset. We then perform the planning portion of SoRB with the “maxdist” parameter set to 4, after manual tuning. We use a graph size of 2000 states for all experiments, due to computational constraints.
|
| 359 |
+
|
| 360 |
+
We find that the policy learned through Q-learning performs very poorly at reaching subgoals, so we instead substitute the goal-conditioned behavior cloning policy for this purpose. We find that this greatly improves performance across all tasks.
|
| 361 |
+
|
| 362 |
+
# B.5 VISUAL FORESIGHT (EBERT ET AL., 2018B)
|
| 363 |
+
|
| 364 |
+
To compare MBOLD to visual foresight, we use the same dynamics model and planning setup as in MBOLD, however, we substitute the learned dynamical distance function with the $\ell _ { 2 }$ pixel error cost used in visual foresight.
|
| 365 |
+
|
| 366 |
+
# C ABLATION EXPERIMENTS IMPLEMENTATION DETAILS
|
| 367 |
+
|
| 368 |
+
# C.1 VAE DISTANCE
|
| 369 |
+
|
| 370 |
+
We use the same architecture as the VAE used in the RIG comparison described in Appendix B. We set the latent space dimension to 256 and weight the KL divergence term using a factor of $1 e ^ { - 5 }$ . We train the model for 3125000 iterations (1000 epochs) using a batch size of 32, and use the same optimizer and learning rate as the distance learned for MBOLD.
|
| 371 |
+
|
| 372 |
+
# C.2 TEMPORAL DISTANCE REGRESSION
|
| 373 |
+
|
| 374 |
+
To train the temporal distance regression model, we sample state-goal pairs from trajectories in the dataset by first selecting the initial state index $t _ { i }$ uniformly from all timesteps, and then selecting the goal state index $t _ { g }$ uniformly from timesteps greater than $t _ { i }$ . We compute the label for this pair as $\operatorname* { m i n } ( t _ { g } - t _ { i } , m a \bar { x } d i s t )$ , where maxdist is a hyperparameter we set to 10. The maxdist parameter helps to improve the optimality of distances on average. We train the neural network to regress this target label using an $\ell _ { 2 }$ error loss. We train the network for 3125000 iterations (1000 epochs) with a batch size of 32, and use the same optimizer and learning rate as the distance learned for MBOLD.
|
| 375 |
+
|
| 376 |
+
The architecture for the temporal distance regression model begins with the convolutional encoder described in Appendix B. Its flattened outputs are fed into 5 fully-connected layers of 256 units each, with batch-norm and ReLU activations after each intermediate layer.
|
| 377 |
+
|
| 378 |
+
# C.3 Q-FUNCTION POLICY
|
| 379 |
+
|
| 380 |
+
We find that the policy directly learned by our method when learning distances performs extremely poorly. However, performing Q-learning using random shooting over 100 uniformly random actions selected from $[ - 1 , \bar { 1 } ] ^ { 4 }$ to optimize over actions to compute target values produces much better results when used directly as a policy, compared to using an actor network to perform this optimization as in our method. Therefore, we report results from acting according to this random shooting method. At test time, we estimate the optimal action $a ^ { \star } = \arg \operatorname* { m a x } _ { a } Q ( s _ { t } , a , g )$ by again sampling 100 uniformly random actions, and selecting the best one.
|
| 381 |
+
|
| 382 |
+
# D COMPUTATIONAL COMPLEXITY ANALYSIS
|
| 383 |
+
|
| 384 |
+
In this section, we discuss the computation complexity of training and acting using MBOLD.
|
| 385 |
+
|
| 386 |
+
Training: Training the dynamics model takes about $3 0 \mathrm { h r }$ while training the distance function takes about $5 \mathrm { h r }$ . These training times are dwarfed by the cost of collecting data in the real world, which could take on the order of 3-4 days in the real world (but can be reused for various tasks). In contrast, a single RL approach only requires learning the distance function. While this means that it takes MBOLD significantly longer to train than the single RL approach, note that the dynamics model can be shared across many tasks. We train the dynamics model for $2 0 0 \mathrm { k }$ and distance function for 94k training steps. A training step for the dynamics model involves one forward and backward pass through the dynamics model. A training step for the distance function requires sampling positive and negative goals, two Q-function forward passes and a policy network forward pass to compute target values and current Q-values, and a backward pass to update model parameters. In contrast, a single RL approach would just learn the distance function, not the dynamics model. From the above estimates, this means that training steps for the dynamics model are around 3 times slower than training steps for the distance model. Because the dynamics model can be used to perform many tasks, this cost is amortized over these tasks, as compared to a single RL approach.
|
| 387 |
+
|
| 388 |
+
Acting: Selecting a sequence of actions (6 actions in our experiments) using MBOLD requires one forward pass of the dynamics model for each CEM iteration (3 total in our experiments), and one forward pass through the distance function and policy network. Amortized over a trajectory, this amounts to about 2 seconds wall clock time per action, which can be sped up by around $2 \mathbf { x }$ with similar performance by replanning less frequently. For a single RL approach, each action would require just one forward pass through the policy network.
|
| 389 |
+
|
| 390 |
+
# E ABLATION EXPERIMENTS
|
| 391 |
+
|
| 392 |
+
# E.1 NEGATIVE MINING & ACTUATED STATE COMPONENTS
|
| 393 |
+
|
| 394 |
+
The ablation experiments presented in Section 5 demonstrate that the negative mining technique can improve performance on manipulation tasks, as evaluated by the final position of the object being manipulated. However, in experiments performed in the real-world Franka drawer setting which only required the robot arm to “reach” to a particular location to match the goal, we found that MBOLD achieved a mean final Euclidean distance to goal of $0 . 1 4 \mathrm { { m } }$ , while Visual Foresight achieved 0.066m over 10 trials. Here, we conduct additional experiments in simulation to investigate the effect of negative mining on reaching goals based on accuracy of matching the highly actuated components, for example, the robot arm. In the single-object block pushing setting, we evaluate the performance of distance functions trained with and without negative mining on reaching the desired goal arm position. We perform the evaluation using (1) the set of test goals used in our original experiments, which include object movement, and (2) an additional set of test goals which only require robot arm movement. We present the results in Table 6. We find that training without negative mining improves the planner’s ability to reach goal arm positions when goals also require object movement, but note that this results in weaker performance in actually relocating those objects, establishing a trade-off. When goals are selected to require just arm movement, performance is comparable with and without the negative sampling scheme.
|
| 395 |
+
|
| 396 |
+
# E.2 PLANNING HORIZON ABLATIONS
|
| 397 |
+
|
| 398 |
+
In this section, we investigate the effect of the planning horizon $h$ on control performance. After training distance functions according to Appendix A.1, we perform planning with three different settings for $h$ on the simulated block pushing tasks. We present the results in Figure 8. We find that a longer planning horizon is beneficial, especially for solving more difficult tasks. We hypothesize that this is because longer planning horizons allow the planner and distance function to better distinguish promising predicted states, while the fidelity of state predictions remains relatively high.
|
| 399 |
+
|
| 400 |
+
# E.3 RANDOM OBJECT RESET ABLATIONS
|
| 401 |
+
|
| 402 |
+
In this section, we perform experiments to evaluate the impact of the distribution of initial object position on task performance. In particular, we look at the single-object Sawyer pushing task. We collect an additional dataset with the same policy and other parameters as that used in the main comparative evaluations, but restrict the random object initialization position to be within $[ - 0 . 0 5 , 0 . 0 5 ] ^ { 2 }$ as opposed to $[ - 0 . 2 , 0 . 2 ] ^ { 2 }$ . This represents a 16x reduction in the area of possible initializations. We then train a new dynamics model and distance function from scratch and compare the control performance on the same benchmark tasks from the main comparisons. We present the results in Table 5. We find that the control performance on these tasks remain within one standard deviation despite the restriction in reset position.
|
| 403 |
+
|
| 404 |
+

|
| 405 |
+
Figure 8: Results for planning horizon ablations.
|
| 406 |
+
|
| 407 |
+
Table 5: Comparison of success rates for our method when trained using a dataset where object positions at the start of each episode were greatly restricted, compared to uniform over the entire space. Standard deviations are over 5 random seeds.
|
| 408 |
+
|
| 409 |
+
<table><tr><td rowspan=1 colspan=1></td><td rowspan=1 colspan=1>Uniform reset</td><td rowspan=1 colspan=1>Restricted reset</td></tr><tr><td rowspan=1 colspan=1>1 object push (regular)1 object push (hard)</td><td rowspan=1 colspan=1>55.2 ± 4.3%40.2 ± 7.2%</td><td rowspan=1 colspan=1>54.5 ± 3.9%43.2 ± 7.2%</td></tr></table>
|
| 410 |
+
|
| 411 |
+
Table 6: Effect of training using negative mining on final arm position matching performance. A final $\ell _ { 2 }$ distance to goal arm position of $0 . 0 5 \mathrm { m }$ or less is considered a success. Standard deviations of success rates are computed over 5 random seeds.
|
| 412 |
+
|
| 413 |
+
<table><tr><td rowspan=1 colspan=1>Test goals</td><td rowspan=1 colspan=1>MBOLD</td><td rowspan=1 colspan=1>MBOLD (nonegative mining)</td></tr><tr><td rowspan=1 colspan=1>No object movementObject movement</td><td rowspan=1 colspan=1>89.2 ±1.9%64.4± 5.9%</td><td rowspan=1 colspan=1>91.6 ± 2.3%83.4± 4.0%</td></tr></table>
|
parse/train/UcoXdfrORC/UcoXdfrORC_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|